/* ==========================================================================
   TOILE DIGITALE - Pages d'offre (design de l'accueil, mise en page façon artgp.fr)
   Chargée après home.css et projet.css. Réutilisable pour les autres offres.
   ========================================================================== */

/* ---------- Hero : vidéo plein cadre ---------- */
.o-hero {
    position: relative;
    min-height: 92svh;
    display: flex;
    align-items: flex-end;
    background: var(--nuit);
    color: var(--alabaster);
    overflow: hidden;
    isolation: isolate;
}

.o-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.o-hero-veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(43, 35, 39, .6) 0%, rgba(43, 35, 39, 0) 25%),
        linear-gradient(0deg, rgba(43, 35, 39, .95) 0%, rgba(43, 35, 39, .6) 45%, rgba(43, 35, 39, .15) 80%);
}

.o-hero-inner {
    padding-top: 8rem;
    padding-bottom: clamp(3rem, 7vh, 5rem);
}

.p-cat span {
    display: inline-block;
    padding: .4rem .9rem;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    font-size: .85rem;
    color: var(--taupe);
}

.o-hero h1 {
    margin-top: 1.25rem;
    font-size: clamp(3rem, 8.5vw, 8rem);
    line-height: .92;
    letter-spacing: -0.02em;
}

.o-hero-tagline {
    margin-top: .75rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.6rem);
    line-height: 1.15;
    color: var(--vanilla);
}

.o-hero-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 4rem;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: 2rem;
    border-top: 1px solid var(--line-dark);
}

.o-hero-foot > p {
    max-width: 30rem;
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(242, 236, 224, .88);
}

.o-hero-actions {
    display: grid;
    justify-items: start;
    gap: .7rem;
}

.o-note {
    font-size: .85rem;
    color: var(--vanilla);
}

/* ---------- Titre à gauche, texte à droite (façon artgp) ---------- */
.o-split {
    padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.o-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.o-split-tight {
    align-items: end;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.o-statement {
    font-size: clamp(2.4rem, 4.6vw, 4.2rem);
    line-height: 1.02;
    color: var(--nuit);
}

.o-split-text {
    display: grid;
    gap: 1.1rem;
    max-width: 36rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--liver);
}

.o-kicker {
    font-size: .85rem;
    font-weight: 500;
    color: var(--cinereous);
}

.o-lead {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.1vw, 1.75rem);
    line-height: 1.3;
    color: var(--nuit);
}

.o-list {
    display: grid;
    border-top: 1px solid var(--line-light);
}

.o-list li {
    display: grid;
    gap: .1rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line-light);
    font-size: .95rem;
    line-height: 1.5;
}

.o-list strong {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--nuit);
}

/* Chiffres sous le titre des enjeux de direction */
.o-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--line-light);
}

.o-kpis div {
    padding: 1.25rem 1rem 0 0;
}

.o-kpis div + div {
    padding-left: 1rem;
    border-left: 1px solid var(--line-light);
}

.o-kpis dt {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1;
    color: var(--liver);
    font-variant-numeric: tabular-nums;
}

.o-kpis dd {
    margin-top: .5rem;
    font-size: .88rem;
    line-height: 1.45;
}

/* ---------- Le Réveil des Tableaux ---------- */
.o-tableaux {
    padding-bottom: clamp(4.5rem, 9vw, 7.5rem);
}

.o-tableaux .o-split-text {
    font-size: 1.05rem;
}

.reveil-teaser {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(20rem, 44vw, 34rem);
    overflow: hidden;
    border-radius: 4px;
    background: var(--nuit);
    color: var(--alabaster);
    text-decoration: none;
    isolation: isolate;
}

.reveil-teaser video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 1.2s var(--ease);
}

.reveil-teaser::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(43, 35, 39, .9) 0%, rgba(43, 35, 39, .45) 40%, rgba(43, 35, 39, 0) 70%);
}

.reveil-teaser:hover video {
    transform: scale(1.03);
}

.reveil-teaser-text {
    display: grid;
    justify-items: start;
    gap: .6rem;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.reveil-teaser-count {
    font-size: .9rem;
    color: var(--vanilla);
}

.reveil-teaser-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.8rem);
    line-height: 1.15;
}

.reveil-teaser-btn {
    margin-top: .6rem;
    padding: .9rem 1.5rem;
    border-radius: 999px;
    background: var(--alabaster);
    color: var(--nuit);
    font-size: .95rem;
    font-weight: 500;
    transition: background-color .3s var(--ease);
}

.reveil-teaser:hover .reveil-teaser-btn,
.reveil-teaser:focus-visible .reveil-teaser-btn {
    background: var(--taupe);
}

/* ---------- Dispositifs ---------- */
.o-dispositifs {
    padding-block: clamp(4.5rem, 9vw, 7.5rem);
    background: var(--cultured);
}

.o-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.o-card-img {
    overflow: hidden;
    border: 1px solid var(--line-light);
    border-radius: 4px;
    background: var(--alabaster);
    cursor: zoom-in;
}

.o-card-img img {
    width: 100%;
    height: auto;
    transition: transform .8s var(--ease);
}

.o-card-img:hover img {
    transform: scale(1.03);
}

.o-card-kicker {
    margin-top: 1.25rem;
    font-size: .85rem;
    color: var(--cinereous);
}

.o-card h3 {
    margin: .25rem 0 .6rem;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.o-card p:last-child {
    font-size: .98rem;
}

/* Reconnaissance internationale : encart discret, pas une grande image */
.o-award {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    margin-top: clamp(3rem, 6vw, 5rem);
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid var(--line-light);
    border-radius: 4px;
    background: var(--alabaster);
}

/* recadrée au-dessus du texte incrusté en bas de l'image (redondant avec l'encart) */
.o-award img {
    width: 100%;
    height: auto;
    aspect-ratio: 1280 / 575;
    object-fit: cover;
    object-position: top;
    border-radius: 2px;
}

.o-award-text {
    display: grid;
    gap: .75rem;
    max-width: 32rem;
}

.o-award-kicker {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--cinereous);
}

.o-award-kicker svg {
    width: 20px;
    height: 20px;
    color: var(--taupe);
}

.o-award-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    line-height: 1.1;
    color: var(--nuit);
}

/* ---------- Bandeaux vidéo plein cadre (texte incrusté dans la vidéo) ---------- */
.o-band {
    background: var(--nuit);
    line-height: 0;
}

.o-band video {
    width: 100%;
    aspect-ratio: 1920 / 528;
    object-fit: cover;
}

/* ---------- Sections sombres à cases (approche, pack) ---------- */
.o-approche,
.o-pack {
    padding: 1px 0 clamp(4.5rem, 9vw, 7.5rem);
    background: var(--nuit);
    color: var(--alabaster);
}

.o-value {
    margin-top: .3rem;
    font-size: .82rem;
    font-weight: 500;
    color: var(--taupe);
}

.o-stat-link {
    display: inline-block;
    margin-top: .8rem;
    font-size: .92rem;
    font-weight: 500;
    color: var(--alabaster);
    text-decoration: underline;
    text-decoration-color: var(--taupe);
    text-underline-offset: .3em;
}

/* ---------- Méthode : une vraie suite d'étapes ---------- */
.o-methode {
    padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.o-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    counter-reset: etape;
    border-top: 1px solid var(--liver);
}

.o-steps li {
    position: relative;
    padding: 1.75rem 1.5rem 0 0;
    counter-increment: etape;
}

.o-steps li + li {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line-light);
}

.o-steps li::before {
    content: counter(etape);
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
    color: var(--taupe);
}

.o-step-when {
    font-size: .85rem;
    font-weight: 500;
    color: var(--cinereous);
}

.o-steps h3 {
    margin: .2rem 0 .6rem;
}

.o-steps p {
    font-size: .95rem;
}

/* ---------- FAQ ---------- */
.o-faq {
    padding-block: clamp(4.5rem, 9vw, 7.5rem);
    background: var(--cultured);
}

.o-faq-list {
    border-top: 1px solid var(--liver);
}

.o-faq-list details {
    border-bottom: 1px solid var(--line-light);
}

.o-faq-list summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 0;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.9vw, 1.55rem);
    color: var(--nuit);
    cursor: pointer;
    list-style: none;
}

.o-faq-list summary::-webkit-details-marker {
    display: none;
}

.o-faq-list summary::after {
    content: '+';
    flex: none;
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--taupe);
    transition: transform .3s var(--ease);
}

.o-faq-list details[open] summary::after {
    transform: rotate(45deg);
}

.o-faq-list details p {
    max-width: 38rem;
    padding-bottom: 1.3rem;
}

.o-cta-sub {
    margin-top: .8rem;
    max-width: 34rem;
    color: var(--vanilla);
}

/* ---------- Agrandissement des images (main.js) ---------- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(28, 22, 25, .94);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: min(92vw, 1000px);
    max-height: 88vh;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(242, 236, 224, .4);
    border-radius: 50%;
    background: none;
    color: var(--alabaster);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .o-split-grid,
    .o-award {
        grid-template-columns: 1fr;
    }

    .o-cards {
        grid-template-columns: 1fr;
        max-width: 34rem;
    }

    .o-steps {
        grid-template-columns: 1fr 1fr;
        row-gap: 2rem;
    }

    .o-steps li:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 560px) {
    .o-kpis {
        grid-template-columns: 1fr;
    }

    .o-kpis div + div {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--line-light);
    }

    .o-steps {
        grid-template-columns: 1fr;
    }

    .o-steps li + li {
        padding-left: 0;
        border-left: 0;
    }

    .o-hero-actions .btn {
        white-space: normal;
        text-align: center;
    }
}

/* ==========================================================================
   Variantes pour Book trailer et Film publicitaire
   ========================================================================== */

/* Hero en deux colonnes : texte + vidéo verticale façon écran de téléphone */
.o-hero-split {
    min-height: auto;
    align-items: stretch;
}

.o-hero-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
    padding-top: 7rem;
    padding-bottom: clamp(3rem, 7vh, 5rem);
}

.o-hero-split .o-hero-inner {
    padding: 0;
}

.o-hero-split h1 {
    font-size: clamp(2.8rem, 6.5vw, 6.5rem);
}

.o-phone {
    position: relative;
    display: block;
    width: clamp(14rem, 22vw, 20rem);
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border: 6px solid var(--nuit-2);
    border-radius: 1.6rem;
    background: #000;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
    color: var(--alabaster);
    text-decoration: none;
}

.o-phone video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.o-phone-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem .9rem .8rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
    font-size: .8rem;
}

.o-phone:hover .o-phone-caption {
    text-decoration: underline;
}

/* Réalisations d'une offre : même galerie que l'accueil */
.o-realisations .gallery .work-cta {
    opacity: 1;
    transform: none;
}

/* Étapes en 5 colonnes */
.o-steps.o-steps-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Grille de cases en 2 colonnes (bordures recalculées) */
.stat-grid.o-stat-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-grid.o-stat-2 .stat {
    border-right: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
}

.stat-grid.o-stat-2 .stat:nth-child(2n) {
    border-right: 0;
}

.stat-grid.o-stat-2 .stat:nth-last-child(-n+2) {
    border-bottom: 0;
}

/* Témoignages */
.o-temoignages {
    padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.o-quotes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: clamp(2rem, 4vw, 3rem);
}

.o-quotes-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.o-quote {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    border-radius: 4px;
    background: #fff;
}

.o-quote::before {
    content: '«';
    font-family: var(--font-display);
    font-size: 3.2rem;
    line-height: .6;
    color: var(--taupe);
}

.o-quote blockquote {
    flex: 1;
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.45;
    color: var(--liver);
}

.o-quote figcaption {
    font-size: .9rem;
    font-weight: 500;
}

@media (max-width: 1080px) {
    .o-steps.o-steps-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 2rem;
    }

    .o-steps.o-steps-5 li:nth-child(4) {
        padding-left: 0;
        border-left: 0;
    }

    .o-quotes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .o-hero-split-grid {
        grid-template-columns: 1fr;
    }

    .o-phone {
        justify-self: center;
        width: min(16rem, 70vw);
    }

    .stat-grid.o-stat-2 {
        grid-template-columns: 1fr;
    }

    .stat-grid.o-stat-2 .stat {
        border-right: 0;
    }

    .stat-grid.o-stat-2 .stat:nth-last-child(2) {
        border-bottom: 1px solid var(--line-dark);
    }

    .o-steps.o-steps-5 {
        grid-template-columns: 1fr 1fr;
    }

    .o-steps.o-steps-5 li:nth-child(4) {
        padding-left: 1.5rem;
        border-left: 1px solid var(--line-light);
    }

    .o-steps.o-steps-5 li:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 560px) {
    .o-steps.o-steps-5 {
        grid-template-columns: 1fr;
    }

    .o-steps.o-steps-5 li {
        padding-left: 0;
        border-left: 0;
    }
}

/* Grille de 5 cases sur 3 colonnes : la dernière s'étale sur 2 colonnes */
.stat-grid.o-stat-5 .stat:nth-child(3) {
    border-bottom: 1px solid var(--line-dark);
}

.stat-grid.o-stat-5 .stat:last-child {
    grid-column: span 2;
    border-right: 0;
}

@media (max-width: 1080px) {
    .stat-grid.o-stat-5 .stat:nth-child(4) {
        border-bottom: 1px solid var(--line-dark);
    }
}

@media (max-width: 560px) {
    .stat-grid.o-stat-5 .stat:last-child {
        grid-column: auto;
    }
}

/* ---------- Option charte graphique : encart (styles dans home.css) et page dédiée ---------- */
.o-option {
    padding-block: clamp(3rem, 6vw, 5rem);
}

.o-charte-hero {
    width: clamp(18rem, 34vw, 32rem);
    height: auto;
    border-radius: 4px;
    justify-self: end;
}

@media (max-width: 860px) {
    .o-charte-hero {
        width: 100%;
    }
}

/* ---------- Comparatif : logo généré / charte graphique ---------- */
.o-compare .o-lead {
    max-width: 52ch;
    margin-top: 1.25rem;
}

.o-compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: clamp(2rem, 4vw, 3rem);
    align-items: start;
}

.o-compare-grid .o-kicker {
    margin-bottom: .75rem;
}

.o-compare-grid > div:first-child .panel-list strong {
    color: var(--liver);
}

.o-compare-fin {
    max-width: 60ch;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-light);
}

.o-compare-fin .text-link {
    margin-left: .35rem;
}

@media (max-width: 860px) {
    .o-compare-grid {
        grid-template-columns: 1fr;
    }
}

/* En-tête de l'option charte : texte seul */
.o-hero-simple {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: clamp(3rem, 7vh, 5rem);
}

.o-compare-liste {
    max-width: 52rem;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
