/* ===================================================
   OuViePo — Landing page v1.7
   - Barlow Condensed pour le titre
   - Ligne pleine largeur collée au titre
   - Panel inline pour C'est quoi / Pourquoi / Comment
   =================================================== */

/* Google Fonts — chargé ici via @import pour la landing */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@900&family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Header masqué */
body.ouviepo-landing-page header#masthead,
body.ouviepo-landing-page .generate-back-to-top {
    display: none !important;
}

/* Body flex colonne */
body.ouviepo-landing-page {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Barre d'admin WP : margin-top:32px sur html réduit la hauteur utile */
.admin-bar body.ouviepo-landing-page {
    height: calc(100vh - 32px) !important;
}

/* Wrappers GeneratePress */
body.ouviepo-landing-page div#page {
    flex: 1 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.ouviepo-landing-page .site-content,
body.ouviepo-landing-page .content-area,
body.ouviepo-landing-page .site-main {
    flex: 1 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
}
body.ouviepo-landing-page div.site-footer {
    flex-shrink: 0 !important;
}

/* ================================================
   Conteneur landing
   ================================================ */
.ouviepo-landing {
    flex: 1;
    min-height: 0;
    position: relative;
    z-index: 10;
    width: 100%;
    overflow: hidden;
    background: #f2f2f2;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Grand O */
.landing-big-o {
    position: absolute;
    top: -0.05em;
    left: -0.02em;
    font-family: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
    font-weight: 900;
    font-size: clamp(260px, 42vw, 600px);
    color: transparent;
    -webkit-text-stroke: 2px rgba(0,0,0,0.06);
    line-height: 0.85;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

/* Carré rouge */
.landing-accent-dot {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 12px;
    height: 12px;
    background: #002FA7;
    z-index: 10;
}

/* Numérotation droite */
.landing-num-col {
    position: absolute;
    top: 18px;
    right: 18px;
    font-family: 'Courier New', monospace;
    font-size: 9px;
    color: rgba(0,0,0,0.22);
    line-height: 1.7;
    letter-spacing: 0.04em;
    z-index: 10;
    pointer-events: none;
    text-align: right;
}

/* Lignes verticales de fond */
.ouviepo-landing::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(0,0,0,0.03) 0px,
        rgba(0,0,0,0.03) 1px,
        transparent 1px,
        transparent calc(100% / 9)
    );
    pointer-events: none;
    z-index: 0;
}

/* ================================================
   Contenu — padding horizontal mais titre sans
   ================================================ */
.landing-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 7vh;
}

/* Titre — Ubuntu Mono, centré, collé à la ligne */
.landing-title {
  font-family: 'Ubuntu Mono', monospace;
  font-weight: 700;
  font-size: clamp(80px, 13vw, 180px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #111;
  margin: 60px 0 -0.19em 0;
  padding: 0 40px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.landing-title a { color: inherit; text-decoration: none; }
.landing-title a:hover { color: #002FA7; }

/* Ligne pleine largeur — le texte repose dessus */
.landing-divider {
    width: 100%;
    height: 7px;
    background: #111;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;             /* passe devant le titre pour un vrai appui */
}

/* Tagline / sous-titre — avec padding */
.landing-subtitle-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 40px 4px;
    box-sizing: border-box;
}
.landing-tagline {
    font-family: 'Courier New', monospace;
    font-size: clamp(9px, 1vw, 13px);
    color: #002FA7;
    letter-spacing: 0.04em;
}
.landing-subtitle {
  font-family: 'Ubuntu Mono', monospace;
  font-size: clamp(11px, 1.3vw, 17px);
  color: #444;
  letter-spacing: 0.02em;
}

/* Domaines */
.landing-domaines {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    border-top: 1px solid rgba(0,0,0,0.12);
    border-bottom: 1px solid rgba(0,0,0,0.12);
    padding: 4px 40px;
    box-sizing: border-box;
    margin-bottom: 3px;
}
.landing-domaines a {
    font-family: 'Courier New', monospace;
    font-size: clamp(9px, 0.85vw, 12px);
    color: #555;
    text-decoration: none;
    padding: 2px 10px;
    border-right: 1px solid rgba(0,0,0,0.15);
    letter-spacing: 0.03em;
    transition: color 0.15s;
}
.landing-domaines a:last-child { border-right: none; }
.landing-domaines a:hover { color: #002FA7; }

/* Compteur */
.landing-counter {
    font-family: 'Courier New', monospace;
    font-size: clamp(9px, 0.85vw, 12px);
    color: #888;
    text-align: center;
    letter-spacing: 0.04em;
    padding: 0 40px;
}
.landing-counter a { color: inherit; text-decoration: none; }
.landing-counter a:hover { color: var(--noir, #1D3557); }
.counter-sep { margin: 0 8px; color: #bbb; }

/* Rangée 4 liens */
.landing-main-row {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
    margin: auto 0;
    padding-top: 100px;     /* espace entre compteur et liens */
}

/* Grands liens */
.landing-big-link {
    font-family: 'Ubuntu Mono', monospace;
    font-weight: 700;
    font-size: 36px;
    color: #111;
    text-decoration: none;
    letter-spacing: 0em;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.15s;
}
.landing-big-link:hover { color: #002FA7; }

/* Lien générateur — mis en valeur */
.landing-big-link.link-generateur {
    color: #002FA7;
    border: 2px solid #002FA7;
    padding: 3px 16px;
}
.landing-big-link.link-generateur:hover {
    background: #002FA7;
    color: #f2f2f2;
}

/* ================================================
   Panel de contenu inline
   ================================================ */
.landing-panel {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 20;
    overflow-y: auto;
    padding: 0 max(40px, 10vw);
    box-sizing: border-box;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: panelIn 0.25s ease;
}
.landing-panel > .landing-panel-close,
.landing-panel > .landing-panel-title,
.landing-panel > .landing-panel-content {
    background: #f2f2f2;
}
.landing-panel > .landing-panel-close {
    padding-top: 20px;
    border-radius: 6px 6px 0 0;
}
.landing-panel > .landing-panel-content {
    padding-bottom: 40px;
    border-radius: 0 0 6px 6px;
    flex: 1;
}
.landing-panel.active { display: flex; flex-direction: column; }

@keyframes panelIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.landing-panel-close {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
    padding: 20px 60px 10px;
    z-index: 5;
}
.landing-panel-close button {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 0.05em;
    background: #111;
    color: #f2f2f2;
    border: none;
    padding: 6px 16px;
    cursor: pointer;
    text-transform: uppercase;
}
.landing-panel-close button:hover { background: #002FA7; }

.landing-panel-title {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-weight: 900;
    font-size: clamp(36px, 5vw, 64px);
    color: #111;
    margin: 0;
    border-bottom: 3px solid #111;
    padding: 0 60px 8px;
}

.landing-panel-content {
    font-family: Georgia, serif;
    font-size: clamp(14px, 1.1vw, 17px);
    color: #333;
    line-height: 1.75;
    max-width: none;
    margin: 0;
    padding: 16px 60px 40px;
}
.landing-panel-content p { margin-bottom: 1.2em; }
.landing-panel-content h2, .landing-panel-content h3 {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-weight: 900;
    color: #111;
    margin: 1.5em 0 0.5em;
}

.landing-panel-loading {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #888;
    text-align: center;
    padding: 60px 0;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
    body.ouviepo-landing-page { overflow-y: auto !important; height: auto !important; }
    .ouviepo-landing { flex: none; min-height: 70vh; }
    .landing-main-row { flex-wrap: wrap; justify-content: center; gap: 10px; margin: 10px 0; padding: 0 20px; }
    .landing-big-link { font-size: clamp(28px, 7vw, 44px) !important; }
    .landing-subtitle-row { flex-direction: column; gap: 2px; padding: 4px 20px; }
    .landing-panel { padding: 20px; }
}

/* ================================================
   Panel générateur — iframe
   ================================================ */
.landing-panel-iframe {
    width: 100%;
    flex: 1;
    border: none;
    background: transparent;
    min-height: 400px;
}

/* Panel générateur : plus de padding pour laisser de la place */
.landing-panel.panel-generateur {
    padding: 20px 40px;
}
.landing-panel.panel-generateur .landing-panel-close {
    margin-bottom: 10px;
}


/* === Timeline Mosaïque === */
.ouviepo-timeline-section {
    padding: 16px 0 12px;
    text-align: center;
    background: transparent;
    margin-top: 0;
    border-top: 1px solid rgba(29,53,87,0.2);
    position: relative;
    z-index: 1;
}

.timeline-title {
    font-family: "Ubuntu Mono", monospace;
    font-size: 0.8rem;
    font-weight: 400;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.timeline-track {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 20px;
    -webkit-overflow-scrolling: touch;
}

.timeline-track::-webkit-scrollbar {
    height: 6px;
}

.timeline-track::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.timeline-pixels {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-pixel {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 2px;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.timeline-pixel:hover {
    transform: scale(1.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    z-index: 2;
}

.timeline-link {
    margin-top: 8px;
}

.timeline-link a {
    font-family: "Ubuntu Mono", monospace;
    color: rgba(29,53,87,0.5);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.timeline-link a:hover {
    color: #1D3557;
}
