/* ==========================================================================
   SEO Pages — Styles dédiés v2
   Chargé uniquement sur le template page-seo.php

   Design system :
   - Fond     : #000 (hero + sections 1/2) / rgba(0,0,0,0.85) (section 3)
   - Titres   : "Tan Pearl", #f5f5f5, uppercase — identique page CGV
   - Corps    : "Antic Didone", rgba(245,245,245,0.85)
   - Breakpoints : 1024px (tablette) / 768px (mobile)

   Structure :
   - seo-hero               : H1 pleine largeur, centré
   - seo-section-1          : H2 centré en haut + layout flex (duo imgs gauche / texte droite)
   - seo-section-2          : H3 + texte pleine largeur + 4 imgs horizontales (quad-row)
   - seo-section-3          : H3 + texte seul, fond sombre — AUCUNE image
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO — H1 pleine largeur
   -------------------------------------------------------------------------- */
.page-seo {
    padding-top: 100px;
}

.seo-hero {
    padding: 60px 20px 40px;
    text-align: center;
    background-color: #000;
}

.seo-h1 {
    font-family: "Tan Pearl", serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 2.5vw, 1.6rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f5f5f5;
    line-height: 1.2;
    margin: 0 auto;
    max-width: 900px;
}

/* --------------------------------------------------------------------------
   SECTIONS — Conteneur commun
   -------------------------------------------------------------------------- */
.seo-section {
    display: flex;
    flex-direction: column;
    padding: 80px 60px;
    background-color: #000;
    width: 100%;
    box-sizing: border-box;
    gap: 40px;
}

/* --------------------------------------------------------------------------
   TITRES H2 / H3
   -------------------------------------------------------------------------- */
.seo-h2 {
    font-family: "Tan Pearl", serif;
    font-weight: 400;
    font-size: clamp(1.4rem, 3vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f5f5f5;
    line-height: 1.3;
    margin: 0;
    text-align: center;
}

.seo-h3 {
    font-family: "Tan Pearl", serif;
    font-weight: 400;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f5f5f5;
    line-height: 1.3;
    margin: 0;
    text-decoration: underline;
    text-underline-offset: 0.3em;
    text-decoration-thickness: 1px;
}

/* --------------------------------------------------------------------------
   TEXTE CORPS — Antic Didone
   -------------------------------------------------------------------------- */
.seo-text {
    font-family: "Antic Didone", serif;
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(245, 245, 245, 0.85);
}

.seo-text p {
    margin: 0 0 1em 0;
}

.seo-text p:last-child {
    margin-bottom: 0;
}

.seo-text ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1em 0;
}

.seo-text ul li {
    padding-left: 1.6em;
    position: relative;
    margin-bottom: 0.5em;
}

.seo-text ul li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: #f5f5f5;
    font-size: 0.65em;
    top: 5px;
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   SECTION 1 — H2 centré + layout : 2 images gauche (~40%) + texte droite (~60%)
   -------------------------------------------------------------------------- */
.seo-section-1 .seo-section__layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* Colonne gauche : 2 images portrait empilées verticalement */
.seo-section__images--duo {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.seo-section__images--duo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

/* Colonne droite : texte */
.seo-section-1 .seo-section__content {
    flex: 1;
}

/* --------------------------------------------------------------------------
   SECTION 2 — H3 + texte pleine largeur + 4 images alignées sur 1 ligne
   -------------------------------------------------------------------------- */
.seo-section-2 .seo-section__content {
    width: 100%;
}

/* 4 images portrait sur la MÊME ligne horizontale — PAS en grille 2×2 */
.seo-section__images--quad-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
}

.seo-section__images--quad-row img {
    flex: 1;
    min-width: 0;
    max-width: 25%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

/* --------------------------------------------------------------------------
   SECTION 3 — H3 + texte seul, fond sombre renforcé, AUCUNE image
   -------------------------------------------------------------------------- */
.seo-section--fullwidth {
    background-color: rgba(0, 0, 0, 0.85);
    padding: 80px 60px;
    gap: 32px;
}

.seo-section--fullwidth .seo-h3,
.seo-section--fullwidth .seo-text {
    max-width: 860px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE — Tablette (≤ 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .seo-section {
        padding: 60px 40px;
        gap: 32px;
    }

    .seo-section-1 .seo-section__layout {
        gap: 2rem;
    }

    .seo-section__images--quad-row {
        gap: 0.75rem;
    }

    .seo-section--fullwidth {
        padding: 60px 40px;
    }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — Mobile (≤ 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .seo-hero {
        padding: 50px 20px 36px;
    }

    .seo-section {
        padding: 40px 20px;
        gap: 24px;
    }

    /* Section 1 : empiler colonne (images au-dessus, texte en-dessous) */
    .seo-section-1 .seo-section__layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .seo-section__images--duo {
        flex: none;
        width: 100%;
    }

    .seo-section-1 .seo-section__content {
        flex: none;
        width: 100%;
    }

    /* Section 2 : 4 images passent en grille 2×2 */
    .seo-section__images--quad-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .seo-section__images--quad-row img {
        flex: 0 0 calc(50% - 0.25rem);
        max-width: calc(50% - 0.25rem);
    }

    .seo-section--fullwidth {
        padding: 40px 20px;
        gap: 20px;
    }

    .seo-section--fullwidth .seo-h3,
    .seo-section--fullwidth .seo-text {
        max-width: 100%;
    }
}
