/*
 * GUIDE-V2 : gabarit « guide v2 » des guides et des apercus, charge
 * seulement avec ?v2=1 (pages/seo/render.php, pages/seo/apercu.php).
 * Balisage : pages/seo/guide-v2.php et includes/guide-v2.php ; ce qui est
 * construit dans la page (sommaire, rail, « En une phrase », cartes, barre
 * basse, « A retenir ») : assets/js/guide-v2.js.
 *
 * Mobile d'abord : 390 px est la reference, les regles min-width etendent
 * au desktop. Corps 18 px, interligne 1.6, colonne de texte de 30 em,
 * cibles tactiles de 48 px, jamais de defilement horizontal de la page.
 *
 * Charte : variables de theme.min.css (--primary or, --secondary bleu nuit,
 * --secondary-strong, --light, --text, --muted, --radius, --shadow), Manrope.
 * Aucun bloc n'est a opacity:0 au repos : seuls les blocs hors ecran au
 * chargement portent .g2-pending / .g2-sec-wait / .g2-zoom-wait, poses et
 * retires par le script.
 */

.g2 {
    --g2-gold-soft: rgba(192, 158, 13, 0.12);
    --g2-gold-dark: #8a7106;
    --g2-red: #b42318;
    --g2-line: rgba(32, 48, 74, 0.1);
    --g2-header: 84px;
    --g2-gutter: 1.25rem;
    /* Colonne de texte (GUIDE-V2-3) : 30 em, soit ~70 caracteres en Manrope. */
    --g2-measure: 30em;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-family: "Manrope", "Manrope repli", sans-serif;
    color: var(--text);
    overflow-x: clip;
}

@media (min-width: 769px) {
    .g2 { --g2-header: 120px; }
}

@media (min-width: 1025px) {
    .g2 { --g2-header: 88px; }
}

.g2 h1,
.g2 h2,
.g2 h3,
.g2 h4 {
    overflow-wrap: break-word;
}

.g2 p:empty {
    display: none;
}

/* ---------- Barre de progression ---------- */

.g2-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 60;
    pointer-events: none;
}

.g2-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #e2c440);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.15s linear;
}

/* ---------- Hero ---------- */

.g2-hero {
    position: relative;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(192, 158, 13, 0.22), transparent 42%),
        radial-gradient(circle at 10% 110%, rgba(255, 255, 255, 0.06), transparent 40%),
        linear-gradient(140deg, var(--secondary-strong), var(--secondary));
    padding: 2.25rem 0 2.5rem;
    /* clip horizontal seulement : la fenetre de partage deborde vers le bas. */
    overflow-x: clip;
    overflow-y: visible;
    z-index: 2;
}

.g2-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192, 158, 13, 0.6), transparent);
}

.g2-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
}

/* Mobile : la video d'abord, pleine largeur, le titre dessous. */
.g2-hero--video {
    padding-top: 0;
}

.g2-hero--video .g2-hero-media {
    order: -1;
    margin: 0 calc(-1 * var(--g2-gutter));
}

.g2-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin: 0 calc(-1 * var(--g2-gutter)) 1.1rem 0;
    padding-right: var(--g2-gutter);
    overflow-x: auto;
    scrollbar-width: none;
}

.g2-chips::-webkit-scrollbar {
    display: none;
}

.g2-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
    white-space: nowrap;
}

.g2-chip[data-label]::before {
    content: attr(data-label);
}

.g2-chip--gold {
    border-color: rgba(192, 158, 13, 0.55);
    background: rgba(192, 158, 13, 0.16);
    color: #f0d76a;
}

.g2-chip--video::after {
    content: "";
    order: -1;
    border-left: 7px solid var(--primary);
    border-top: 4.5px solid transparent;
    border-bottom: 4.5px solid transparent;
}

.g2-hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.85rem, 4.4vw, 3.35rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.02em;
    color: #fff;
}

.g2-chapo {
    max-width: var(--g2-measure);
    font-size: max(18px, 1.125rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

@media (min-width: 960px) {
    .g2-hero,
    .g2-hero--video {
        padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.25rem);
    }

    .g2-hero-inner {
        gap: clamp(2rem, 4vw, 3.5rem);
    }

    .g2-hero--video .g2-hero-inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }

    .g2-hero--video .g2-hero-media {
        order: 0;
        margin: 0;
    }

    .g2-hero:not(.g2-hero--video) .g2-hero-text {
        max-width: 50rem;
    }

    .g2-chips {
        flex-wrap: wrap;
        margin-right: 0;
        padding-right: 0;
        margin-bottom: 1.4rem;
    }

    .g2-chapo {
        font-size: clamp(1.125rem, 1.4vw, 1.2rem);
    }
}

/* Entree du hero, une fois au chargement ; etat final visible. */
@keyframes g2-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes g2-zoom {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

.g2-chips,
.g2-hero h1,
.g2-chapo,
.g2-hero-media {
    animation: g2-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.g2-hero h1 { animation-delay: 0.08s; }
.g2-chapo { animation-delay: 0.16s; }
.g2-hero-media { animation-name: g2-zoom; animation-duration: 0.9s; animation-delay: 0.05s; }

/* Video du hero */

.g2-video {
    position: relative;
    margin: 0;
}

.g2-video .seo-video-frame {
    position: relative;
    overflow: hidden;
    background: var(--secondary-strong);
}

@media (min-width: 960px) {
    .g2-video .seo-video-frame {
        border-radius: var(--radius);
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
    }
}

.g2-video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--secondary-strong);
}

.g2-video figcaption {
    margin-top: 0.75rem;
    padding: 0 var(--g2-gutter);
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 960px) {
    .g2-video figcaption {
        padding: 0;
    }
}

.g2-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    border: 0;
    padding: 0;
    background: linear-gradient(180deg, rgba(24, 34, 53, 0.05), rgba(24, 34, 53, 0.35));
    cursor: pointer;
}

.g2-play span {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 14px 34px rgba(192, 158, 13, 0.45);
    transition: transform 0.25s ease;
}

.g2-play span::before {
    content: "";
    margin-left: 5px;
    border-left: 21px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.g2-play span::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(192, 158, 13, 0.6);
    animation: g2-pulse 2.2s ease-out infinite;
}

@keyframes g2-pulse {
    from { transform: scale(0.9); opacity: 1; }
    to { transform: scale(1.35); opacity: 0; }
}

.g2-play:hover span,
.g2-play:focus-visible span {
    transform: scale(1.07);
}

.g2-play:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: -3px;
}

.g2-video.is-playing .g2-play {
    display: none;
}

/* ---------- Sommaire : cartes a balayer (mobile), bandeau (desktop) ---------- */

.g2-band {
    position: relative;
    background: #fff;
    border-bottom: 1px solid var(--g2-line);
}

.g2-band:empty {
    display: none;
}

/* VM-8 : sommaire mobile rempli par guide-v2.js (defer) ; sa place est
   reservee des le premier affichage (hauteur d'une rangee de cartes a titre
   court sur 2 lignes : bordure + marges de l'ol + carte), pour que le corps
   du guide ne descende pas a l'arrivee du script. Classe posee par PHP
   quand le guide a au moins 2 sections. */
@media (max-width: 959.98px) {
    html.js-enhanced .g2-band.g2-band--attendu:empty {
        display: block;
        min-height: calc(1px + 1.8rem + 2px + 1.45rem + 28px + 0.45rem + 2 * 0.95rem * 1.2);
    }
}

.g2-band ol {
    display: flex;
    gap: 0.6rem;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0.9rem var(--g2-gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--g2-gutter);
    scrollbar-width: none;
}

.g2-band ol::-webkit-scrollbar {
    display: none;
}

.g2-band li {
    flex: none;
    scroll-snap-align: start;
}

.g2-band a {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "ico ico" "n w";
    align-items: baseline;
    gap: 0.45rem 0.4rem;
    width: 8.25rem;
    min-height: 48px;
    padding: 0.75rem 0.8rem 0.7rem;
    border: 1px solid var(--g2-line);
    border-radius: 14px;
    background: #fff;
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

.g2-band .g2-ico {
    grid-area: ico;
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.g2-band a b {
    grid-area: n;
    color: var(--primary);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.g2-band a .w {
    grid-area: w;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.g2-band a .t {
    display: none;
}

.g2-band a:hover,
.g2-band a.is-active {
    border-color: var(--primary);
    background: var(--g2-gold-soft);
    box-shadow: 0 6px 18px rgba(192, 158, 13, 0.18);
}

@media (min-width: 960px) {
    .g2-band ol {
        width: min(100% - 2.5rem, var(--container));
        margin: 0 auto;
        padding: 0.85rem 0;
        gap: 0.5rem;
    }

    .g2-band a {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        width: auto;
        padding: 0.5rem 1rem;
        border-radius: 999px;
        font-size: 0.88rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .g2-band .g2-ico,
    .g2-band a .w {
        display: none;
    }

    .g2-band a .t {
        display: inline;
    }
}

/* ---------- Corps : rail + contenu ---------- */

.g2-body {
    width: min(100% - 2.5rem, 1200px);
    margin: 0 auto;
    padding: 1.25rem 0 2rem;
}

.g2-rail {
    display: none;
}

@media (min-width: 960px) {
    .g2-body {
        padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 4rem);
    }

    html.js-enhanced .g2-body {
        display: grid;
        grid-template-columns: 230px minmax(0, 1fr);
        gap: clamp(2rem, 4vw, 4rem);
        align-items: start;
    }

    html.js-enhanced .g2-rail {
        display: block;
        position: sticky;
        top: calc(var(--g2-header) + 0.5rem);
        max-height: calc(100vh - var(--g2-header) - 1.5rem);
        overflow-y: auto;
        padding: 1.25rem 0 1rem;
    }
}

.g2-rail-title {
    margin: 0 0 0.75rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.g2-rail ol {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    border-left: 2px solid var(--g2-line);
}

.g2-rail ol a {
    display: grid;
    grid-template-columns: 1.7rem minmax(0, 1fr);
    gap: 0.25rem;
    align-items: center;
    min-height: 40px;
    margin-left: -2px;
    padding: 0.4rem 0.5rem 0.4rem 0.8rem;
    border-left: 2px solid transparent;
    border-radius: 0 10px 10px 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.45s ease, border-color 0.45s ease, background-color 0.45s ease;
}

@media (pointer: coarse) {
    .g2-rail ol a { min-height: 48px; }
}

.g2-rail ol a b {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: rgba(32, 48, 74, 0.35);
    transition: color 0.45s ease;
}

.g2-rail ol a:hover {
    color: var(--secondary);
}

.g2-rail ol a.is-active {
    border-left-color: var(--primary);
    background: linear-gradient(90deg, var(--g2-gold-soft), transparent);
    color: var(--secondary);
}

.g2-rail ol a.is-active b {
    color: var(--primary);
}

.g2-rail .g2-pill {
    width: 100%;
    font-size: 0.88rem;
    padding: 0.75rem 1rem;
    text-align: center;
}

/* ---------- Sections ---------- */

.g2-main {
    min-width: 0;
}

.g2-main .container {
    width: auto;
    margin: 0;
}

.g2 .pt,
.g2 .g2-intro,
.g2 .g2-related,
.g2 .g2-faq {
    scroll-margin-top: calc(var(--g2-header) + 1rem);
    padding: 2rem 0;
    background: none;
}

@media (min-width: 960px) {
    .g2 .pt,
    .g2 .g2-intro,
    .g2 .g2-related,
    .g2 .g2-faq {
        padding: clamp(2rem, 4vw, 2.75rem) 0;
    }
}

.g2 .pt + .pt,
.g2 .pt + .g2-related,
.g2 .g2-intro + .pt,
.g2 .pt + .g2-faq,
.g2 .g2-related + .g2-faq {
    border-top: 1px solid var(--g2-line);
}

.g2 .g2-intro {
    padding-top: 0.5rem;
}

.g2 .pt-inner {
    max-width: 46rem;
}

/* Grand numero (CSS, depuis data-n) et pictogramme cote a cote. */
.g2 .pt-inner[data-n]::before {
    content: attr(data-n);
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.75rem 0.4rem 0;
    font-size: clamp(3rem, 6vw, 4.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--primary);
    background: linear-gradient(180deg, var(--primary), rgba(192, 158, 13, 0.15));
    -webkit-background-clip: text;
    background-clip: text;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.g2-picto {
    display: inline-grid;
    place-items: center;
    vertical-align: middle;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.4rem;
    border-radius: 50%;
    background: var(--g2-gold-soft);
}

.g2-picto-svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.g2-picto-svg path {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.6s ease;
}

.g2 .pt-inner > h2,
.g2 .g2-faq h2 {
    margin: 0 0 1.1rem;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.015em;
    color: var(--secondary);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.g2 .pt-inner h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--secondary);
}

.g2 .pt-inner h4 {
    margin: 0 0 0.3rem;
    font-size: max(18px, 1.125rem);
    font-weight: 700;
    color: var(--secondary);
}

/* Corps : 18 px, interligne 1.6, 60 caracteres par ligne au plus. */
.g2 .pt-inner p,
.g2 .pt-inner li {
    font-size: max(18px, 1.125rem);
    line-height: 1.6;
    color: var(--text);
}

.g2 .pt-inner p {
    max-width: var(--g2-measure);
    margin: 0 0 1rem;
}

.g2 .pt-inner > :last-child,
.g2 .pt-inner .content > :last-child {
    margin-bottom: 0;
}

.g2 .pt-inner .content,
.g2 .pt-inner .service-text,
.g2 .pt-inner .service-links {
    margin: 0 0 1rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.g2 .pt-inner a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(192, 158, 13, 0.6);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.g2 .pt-inner a:hover {
    color: var(--primary);
    text-decoration-color: var(--primary);
}

.g2 .pt-inner strong {
    color: var(--secondary);
}

/* Listes a puces sans JS (avec JS : cartes) */
.g2 .pt-inner ul:not(.traps):not(.g2-cards) {
    margin: 0 0 1.1rem;
    padding: 0;
    list-style: none;
}

.g2 .pt-inner ul:not(.traps):not(.g2-cards) > li {
    position: relative;
    max-width: var(--g2-measure);
    margin: 0 0 0.45rem;
    padding-left: 1.4rem;
}

.g2 .pt-inner ul:not(.traps):not(.g2-cards) > li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.68em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--primary);
    transform: rotate(45deg);
}

.g2 .g2-related .pt-inner > h2 {
    font-size: 1.25rem;
}

/* ---------- « En une phrase » ---------- */

.g2 .g2-one {
    margin: 0 0 1.4rem;
    padding: 1.1rem 1.2rem 1.2rem;
    border: 1px solid rgba(192, 158, 13, 0.35);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(192, 158, 13, 0.14), rgba(192, 158, 13, 0.04));
    transition: opacity 0.5s ease 0.45s, transform 0.5s ease 0.45s;
}

.g2 .pt-inner .g2-one-label {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--g2-gold-dark);
}

.g2 .pt-inner .g2-one-text {
    margin: 0;
    font-size: clamp(1.25rem, 2.3vw, 1.45rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--secondary);
}

/* ---------- Regle / chiffre cle ---------- */

.g2 .pt-inner p.g2-rule {
    max-width: 34em;
    margin: 1.25rem 0;
    padding: 0.95rem 1.2rem 1rem;
    border-left: 4px solid var(--g2-red);
    border-radius: 0 14px 14px 0;
    background: linear-gradient(90deg, rgba(180, 35, 24, 0.08), rgba(192, 158, 13, 0.12));
    font-weight: 700;
    color: var(--secondary);
}

.g2 .pt-inner p.g2-rule::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--g2-red);
}

/* ---------- « Lire le détail » ---------- */

.g2 .g2-more {
    margin: 0 0 1.25rem;
}

.g2 .g2-more > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.6rem 1.1rem;
    border: 1px solid rgba(192, 158, 13, 0.5);
    border-radius: 999px;
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s ease;
}

.g2 .g2-more > summary::-webkit-details-marker {
    display: none;
}

.g2 .g2-more > summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.g2 .g2-more[open] > summary::after {
    margin-top: 3px;
    transform: rotate(-135deg);
}

.g2 .g2-more > summary:hover {
    background: var(--g2-gold-soft);
}

.g2 .g2-more > summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.g2 .g2-more-body {
    padding-top: 1rem;
}

.g2 .g2-more[open] > summary {
    margin-bottom: 0;
}

/* ---------- Cartes (listes a puces) ---------- */

.g2 .pt-inner ul.g2-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
    margin: 1.1rem 0 1.4rem;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .g2 .pt-inner ul.g2-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.g2 .pt-inner .g2-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 48px;
    margin: 0;
    padding: 0.8rem 1rem 0.8rem 1.15rem;
    border: 1px solid var(--g2-line);
    border-left: 3px solid var(--primary);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(32, 48, 74, 0.05);
}

.g2 .pt-inner .g2-card:has(.g2-card-more:not([hidden])) {
    padding-right: 3.25rem;
    cursor: pointer;
}

.g2 .g2-card-title {
    display: block;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.35;
}

.g2 .g2-card-rest {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
    margin-top: 0.15rem;
    color: var(--muted);
    font-size: max(18px, 1.125rem);
}

.g2 .g2-card.is-open .g2-card-rest {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: none;
    overflow: visible;
}

.g2 .g2-card-more {
    position: absolute;
    top: 50%;
    right: 0.15rem;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.g2 .g2-card-more::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 9px;
    margin: -7px 0 0 -5px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform 0.25s ease, margin 0.25s ease;
}

.g2 .g2-card.is-open .g2-card-more::before {
    margin-top: -2px;
    transform: rotate(-135deg);
}

.g2 .g2-card-more:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -4px;
}

/* ---------- Figures ---------- */

.g2 .fig {
    margin: 1.5rem 0;
    padding: 0;
    max-width: none;
    background: none;
    border: 0;
    box-shadow: none;
}

.g2 .fig-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #e9ecf2;
    box-shadow: var(--shadow);
    transform: translate3d(0, var(--g2-py, 0px), 0);
}

.g2 .fig-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    transform: scale(1);
    transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.g2 .fig.g2-zoom-wait .fig-frame img {
    transform: scale(1.04);
}

.g2 .fig figcaption {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--muted);
    text-align: left;
}

.g2 .fig figcaption::before {
    content: "";
    flex: 0 0 1.4rem;
    height: 2px;
    margin-top: 0.7em;
    background: var(--primary);
}

/* ---------- Encadre (note) ---------- */

.g2 .note {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
    align-items: start;
    margin: 1.5rem 0;
    padding: 1.05rem 1.15rem;
    border: 1px solid rgba(192, 158, 13, 0.28);
    border-left: 4px solid var(--primary);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(192, 158, 13, 0.09), rgba(192, 158, 13, 0.03));
}

@media (min-width: 640px) {
    .g2 .note {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.9rem;
        padding: 1.1rem 1.25rem;
    }
}

.g2 .note .note-icon {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    margin: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 16px rgba(192, 158, 13, 0.2);
    font-size: 1.15rem;
    line-height: 1;
}

.g2 .note .note-body > * {
    margin: 0;
}

.g2 .note strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--g2-gold-dark);
}

.g2 .note strong span {
    display: none;
}

.g2 .note a {
    text-decoration-color: var(--primary);
}

/* ---------- Etapes ---------- */

.g2 .steps-block {
    margin: 1.5rem 0;
}

.g2 .steps {
    --g2-fill: 0;
    position: relative;
    display: block;
    margin: 1.5rem 0;
    padding: 0 0 0 3.1rem;
    list-style: none;
    counter-reset: g2-step;
}

.g2 .steps::before,
.g2 .steps::after {
    content: "";
    position: absolute;
    left: 1.05rem;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 2px;
    border-radius: 2px;
    background: var(--g2-line);
}

.g2 .steps::after {
    background: var(--primary);
    transform: scaleY(var(--g2-fill));
    transform-origin: 50% 0;
}

.g2 .steps > .step {
    position: relative;
    margin: 0 0 1.35rem;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    counter-increment: g2-step;
}

.g2 .steps > .step:last-child {
    margin-bottom: 0;
}

.g2 .steps > .step:not(.step--num)::before,
.g2 .steps .step-num {
    position: absolute;
    left: -3.1rem;
    top: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 2px solid var(--g2-line);
    border-radius: 50%;
    background: #fff;
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.g2 .steps > .step:not(.step--num)::before {
    content: counter(g2-step);
}

.g2 .steps > .step.is-done::before,
.g2 .steps > .step.is-done .step-num {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    animation: g2-pop 0.45s ease;
}

@keyframes g2-pop {
    50% { transform: scale(1.18); }
}

.g2 .steps > .step > h4,
.g2 .steps > .step > p {
    margin: 0;
}

.g2 .steps > .step > h4 {
    padding-top: 0.25rem;
    margin-bottom: 0.2rem;
}

@media (min-width: 640px) {
    .g2 .steps {
        padding-left: 3.4rem;
    }

    .g2 .steps::before,
    .g2 .steps::after {
        left: 1.2rem;
    }

    .g2 .steps > .step:not(.step--num)::before,
    .g2 .steps .step-num {
        left: -3.4rem;
        width: 2.4rem;
        height: 2.4rem;
    }
}

/* ---------- Pieges ---------- */

.g2 .traps {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin: 1.25rem 0 1.5rem;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .g2 .traps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
}

@media (min-width: 1100px) {
    .g2 .traps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.g2 .pt-inner .traps > li {
    position: relative;
    margin: 0;
    padding: 1rem 1.1rem 1.1rem 3.3rem;
    border: 1px solid var(--g2-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(32, 48, 74, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 1100px) {
    .g2 .pt-inner .traps > li {
        padding: 3.1rem 1.1rem 1.1rem;
    }
}

.g2 .pt-inner .traps > li {
    font-size: 15px;
    line-height: 1.55;
}

.g2 .traps .g2-trap-title {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--secondary);
}

.g2 .traps .g2-trap-rest {
    display: block;
    font-size: 15px;
    color: var(--text);
}

.g2 .traps > li::before {
    content: "\2715";
    position: absolute;
    left: 1rem;
    top: 1.05rem;
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: rgba(180, 35, 24, 0.1);
    color: var(--g2-red);
    font-size: 0.8rem;
    font-weight: 800;
}

.g2 .traps > li:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(32, 48, 74, 0.1);
}

.g2 .traps > li > strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* ---------- Tableaux ---------- */

.g2 .g2-table {
    max-width: 100%;
    margin: 1.25rem 0 1.5rem;
    overflow-x: auto;
    border: 1px solid var(--g2-line);
    border-radius: 14px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.g2 .g2-table table {
    width: 100%;
    min-width: 30rem;
    border-collapse: collapse;
    margin: 0;
    font-size: 1rem;
}

.g2 .g2-table thead th {
    background: var(--secondary);
    color: #fff;
    font-weight: 700;
    text-align: left;
}

.g2 .g2-table th,
.g2 .g2-table td {
    padding: 0.8rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--g2-line);
    vertical-align: top;
}

.g2 .g2-table tbody tr:nth-child(even) {
    background: var(--light);
}

.g2 .g2-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Mobile : 1 ligne = 1 carte (libelles poses par le script). */
@media (max-width: 639px) {
    .g2 .g2-table.is-cards {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: none;
    }

    .g2 .g2-table.is-cards table,
    .g2 .g2-table.is-cards tbody,
    .g2 .g2-table.is-cards tr,
    .g2 .g2-table.is-cards td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .g2 .g2-table.is-cards thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .g2 .g2-table.is-cards tbody tr,
    .g2 .g2-table.is-cards tbody tr:nth-child(even) {
        margin-bottom: 0.7rem;
        padding: 0.85rem 1rem;
        border: 1px solid var(--g2-line);
        border-left: 3px solid var(--primary);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(32, 48, 74, 0.05);
    }

    .g2 .g2-table.is-cards td {
        padding: 0.2rem 0;
        border: 0;
        font-size: 1.05rem;
    }

    .g2 .g2-table.is-cards td:first-child {
        font-weight: 800;
        color: var(--secondary);
        font-size: max(18px, 1.125rem);
    }

    .g2 .g2-table.is-cards td:not(:first-child)[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--muted);
    }
}

/* ---------- Video restee dans le corps (2e video eventuelle) ---------- */

.g2 .pt-inner .seo-video {
    max-width: none;
    margin: 1.5rem 0;
}

/* ---------- FAQ ---------- */

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

.g2-faq-item {
    border-bottom: 1px solid var(--g2-line);
}

.g2-faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 1rem 2.75rem 1rem 0;
    cursor: pointer;
    list-style: none;
}

.g2-faq-item summary::-webkit-details-marker {
    display: none;
}

.g2-faq-item summary strong {
    font-size: max(18px, 1.125rem);
    font-weight: 700;
    line-height: 1.45;
    color: var(--secondary);
}

.g2-faq-item summary::before,
.g2-faq-item summary::after {
    content: "";
    position: absolute;
    right: 0.6rem;
    top: 50%;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transition: transform 0.25s ease;
}

.g2-faq-item summary::after {
    transform: rotate(90deg);
}

.g2-faq-item[open] summary::after {
    transform: rotate(0deg);
}

.g2-faq-item summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.g2-faq-a {
    max-width: var(--g2-measure);
    padding: 0 0 1.2rem;
    color: var(--text);
    font-size: max(18px, 1.125rem);
    line-height: 1.6;
}

/* ---------- A retenir + partager ---------- */

.g2-recap {
    padding: 0 0 2.5rem;
}

.g2-recap-inner {
    width: min(100% - 2.5rem, 1200px);
    padding: 1.5rem 1.25rem;
    border: 1px solid rgba(192, 158, 13, 0.35);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

@media (min-width: 960px) {
    .g2-recap-inner {
        padding: 2rem 2.25rem;
    }
}

.g2-recap-title {
    margin: 0 0 1rem;
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    font-weight: 800;
    color: var(--secondary);
}

.g2-checks {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

@media (min-width: 960px) {
    .g2-checks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem 2rem;
    }
}

.g2-checks li {
    position: relative;
    max-width: var(--g2-measure);
    padding-left: 2.4rem;
    font-size: max(18px, 1.125rem);
    line-height: 1.6;
    color: var(--text);
}

.g2-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--primary);
}

.g2-checks li::after {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 0.45rem;
    width: 0.4rem;
    height: 0.75rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.g2-share {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.7rem 1.3rem;
    border: 1px solid var(--secondary);
    border-radius: 999px;
    background: #fff;
    color: var(--secondary);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.g2-share:hover {
    background: var(--secondary);
    color: #fff;
}

.g2-share:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.g2-share-ico {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Bandeau final ---------- */

.g2-cta {
    position: relative;
    overflow: hidden;
    padding: 2.75rem 0;
    color: #fff;
    background:
        radial-gradient(circle at 90% 0%, rgba(192, 158, 13, 0.25), transparent 45%),
        linear-gradient(140deg, var(--secondary), var(--secondary-strong));
}

@media (min-width: 960px) {
    .g2-cta { padding: clamp(3rem, 6vw, 4.5rem) 0; }
}

.g2-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem 3rem;
}

.g2-cta-text {
    flex: 1 1 26rem;
    min-width: 0;
}

.g2-cta h2 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.g2-cta p {
    max-width: var(--g2-measure);
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: max(18px, 1.125rem);
    line-height: 1.6;
}

.g2-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
}

.g2-cta-actions .g2-pill {
    width: 100%;
}

@media (min-width: 640px) {
    .g2-cta-actions {
        width: auto;
    }

    .g2-cta-actions .g2-pill {
        width: auto;
    }
}

.g2-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.8rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.g2-pill:hover {
    transform: translateY(-1px);
}

.g2-pill--gold {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 30px rgba(192, 158, 13, 0.32);
}

.g2-pill--gold:hover {
    color: #fff;
    box-shadow: 0 16px 36px rgba(192, 158, 13, 0.42);
}

.g2-pill--ghost {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.g2-pill--ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.g2-pill:focus-visible {
    outline: 3px solid #f0d76a;
    outline-offset: 3px;
}

/* ---------- Barre basse mobile : chapitre + etude ---------- */

.g2-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 78;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 1rem calc(0.55rem + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--g2-line);
    box-shadow: 0 -4px 20px rgba(32, 48, 74, 0.12);
    font-family: "Manrope", "Manrope repli", sans-serif;
    transform: translateY(105%);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.g2-bar.is-on {
    transform: none;
}

@media (min-width: 960px) {
    .g2-bar { display: none; }
}

.g2-bar-chap {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

/* Le mot du chapitre sur sa propre ligne : jamais tronque en « … ». */
.g2-bar-chap .g2-bar-sep {
    display: none;
}

.g2-bar-chap .g2-bar-mot {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.g2-bar-n {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.g2-bar-mot {
    color: var(--muted);
    font-weight: 600;
}

.g2-bar.is-tick .g2-bar-n,
.g2-bar.is-tick .g2-bar-mot {
    animation: g2-tick 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes g2-tick {
    from { opacity: 0.15; transform: translateY(55%); }
    to { opacity: 1; transform: none; }
}


.g2-bar .g2-pill {
    flex: none;
    padding: 0.7rem 1.1rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* ---------- Entrees au defilement ---------- */

/* Section : pictogramme dessine, numero depuis la gauche, titre, phrase. */
.g2 .pt.g2-sec-wait .g2-picto-svg path {
    stroke-dashoffset: 1;
}

.g2 .pt.g2-sec-wait .pt-inner[data-n]::before {
    opacity: 0;
    transform: translateX(-40px);
}

.g2 .pt.g2-sec-wait .pt-inner > h2,
.g2 .pt.g2-sec-wait .g2-one {
    opacity: 0;
    transform: translateY(14px);
}

.g2-pending {
    opacity: 0;
    transform: translateY(22px);
}

.g2-in {
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Mouvement reduit, impression ---------- */


/* ==========================================================================
   GUIDE-V2-4
   ========================================================================== */

/* ---------- Phrase-surprise du hero (p.hero-accroche) ---------- */

.g2-hero .g2-hero-accroche {
    max-width: 22em;
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    line-height: 1.3;
    color: #f0d76a;
    animation: g2-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both;
}

/* ---------- Partage (hero et fin de guide) ---------- */

.g2-share-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.g2-hero .g2-share-wrap {
    margin-top: 1.25rem;
}

.g2-share--hero {
    border-color: rgba(255, 255, 255, 0.45);
    background: transparent;
    color: #fff;
}

.g2-share--hero:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.g2-share-pop {
    position: absolute;
    left: 0;
    top: calc(100% + 0.5rem);
    z-index: 40;
    width: min(20rem, calc(100vw - 2.5rem));
    padding: 1rem;
    border: 1px solid var(--g2-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    color: var(--text);
}

.g2-share-status {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
}

.g2-share-status input {
    display: block;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--g2-line);
    border-radius: 8px;
    font: inherit;
    font-size: 0.9rem;
}

.g2-share-nets {
    display: grid;
    gap: 0.4rem;
}

.g2-share-net {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 1rem;
    border: 1px solid var(--g2-line);
    border-radius: 10px;
    color: var(--secondary);
    font-weight: 700;
    text-decoration: none;
}

.g2-share-net:hover,
.g2-share-net:focus-visible {
    border-color: var(--primary);
    background: var(--g2-gold-soft);
}

/* ---------- Encadre d'ouverture (bande d'introduction) ---------- */

.g2-open {
    padding: 1.5rem 0 0.5rem;
}

.g2-open-inner {
    padding: 1.25rem 1.25rem 1.35rem;
    border: 1px solid rgba(192, 158, 13, 0.35);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(192, 158, 13, 0.14), rgba(192, 158, 13, 0.04));
}

@media (min-width: 960px) {
    .g2-open {
        padding-top: 2rem;
    }

    .g2-open-inner {
        width: min(100% - 2.5rem, 1200px);
        padding: 1.6rem 2rem 1.75rem;
    }
}

.g2-open-inner > * {
    max-width: var(--g2-measure);
    margin: 0 0 0.75rem;
}

.g2-open-inner > :last-child {
    margin-bottom: 0;
}

.g2-open-kicker {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--g2-gold-dark);
}

.g2-open-kicker + .g2-open-kicker {
    font-size: max(18px, 1.125rem);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--secondary);
}

.g2-open-text,
.g2-open-inner > p:not([class]) {
    font-size: max(18px, 1.125rem);
    line-height: 1.6;
    color: var(--text);
}

.g2-open .g2-open-phrase {
    max-width: 26em;
    font-size: clamp(1.3rem, 2.4vw, 1.55rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--secondary);
}

.g2-open.has-phrase .g2-open-phrase::before {
    content: "En une phrase";
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--g2-gold-dark);
}

/* ---------- Pages associees : 1 lien par ligne, puce or, cible 48 px ---------- */

.g2 .g2-related .pt-inner p,
.g2 .g2-related-body p {
    margin: 0;
    font-size: 0;
    max-width: none;
}

.g2 .g2-related a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.35rem 0 0.35rem 1.5rem;
    border-bottom: 1px solid var(--g2-line);
    font-size: max(18px, 1.125rem);
    line-height: 1.4;
    text-decoration: none;
}

.g2 .g2-related a::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 2px;
    background: var(--primary);
    transform: rotate(45deg);
}

.g2 .g2-related a:hover {
    color: var(--primary);
}

.g2 .g2-related a:empty {
    display: none;
}

.g2 .g2-related-more > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    cursor: pointer;
    list-style: none;
}

.g2 .g2-related-more > summary::-webkit-details-marker {
    display: none;
}

.g2 .g2-related-more > summary h2 {
    margin: 0;
}

.g2 .g2-related-more > summary::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    margin: -4px 0.6rem 0 1rem;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.g2 .g2-related-more[open] > summary::after {
    margin-top: 4px;
    transform: rotate(-135deg);
}

.g2 .g2-related-body {
    padding-top: 0.5rem;
}

/* ---------- Fil de continuite ---------- */

.g2-main {
    position: relative;
    --g2-thread-x: calc(var(--g2-gutter) * -0.55);
}

@media (min-width: 960px) {
    html.js-enhanced .g2-main {
        --g2-thread-x: calc(clamp(2rem, 4vw, 4rem) / -2);
    }
}

.g2-thread {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--g2-thread-x);
    width: 2px;
    border-radius: 2px;
    background: var(--g2-line);
    pointer-events: none;
}

.g2-thread-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: var(--g2-thread, 0px);
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(192, 158, 13, 0.35), var(--primary));
}

.g2-thread-dot {
    position: absolute;
    left: 1px;
    top: var(--g2-thread, 0px);
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(192, 158, 13, 0.22);
    transform: translate(-50%, -50%);
}

/* Numero et pastille : neutres tant que le fil ne les a pas atteints. */
.g2.g2-thread-on .pt .pt-inner[data-n]::before {
    background: none;
    color: rgba(32, 48, 74, 0.08);
    -webkit-text-stroke-color: rgba(32, 48, 74, 0.28);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.5s ease, -webkit-text-stroke-color 0.5s ease;
}

.g2.g2-thread-on .pt.is-reached .pt-inner[data-n]::before {
    color: var(--primary);
    -webkit-text-stroke-color: var(--primary);
}

.g2.g2-thread-on .pt .g2-picto {
    background: rgba(32, 48, 74, 0.06);
    transition: background-color 0.5s ease;
}

.g2.g2-thread-on .pt .g2-picto-svg {
    stroke: rgba(32, 48, 74, 0.4);
    transition: stroke 0.5s ease;
}

.g2.g2-thread-on .pt.is-reached .g2-picto {
    background: var(--primary);
}

.g2.g2-thread-on .pt.is-reached .g2-picto-svg {
    stroke: #fff;
}

/* ---------- Contrat JABAT : titre court (masque) ---------- */

.g2 h2 .titre-court {
    display: none;
}

/* ---------- Contrat JABAT : « Vu sur chantier » ---------- */

.g2 .vu-chantier {
    position: relative;
    max-width: calc(var(--g2-measure) + 3rem);
    margin: 1.5rem 0;
    padding: 1.1rem 1.25rem 1.2rem 4rem;
    border-left: 4px solid var(--primary);
    border-radius: 0 14px 14px 0;
    background: #faf6ec;
    box-shadow: 0 6px 18px rgba(32, 48, 74, 0.05);
}

.g2 .vu-chantier::before {
    content: "Vu sur chantier";
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--g2-gold-dark);
}

/* Icone chantier (casque), trait or, en SVG inline. */
.g2 .vu-chantier::after {
    content: "";
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c09e0d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18h18'/%3E%3Cpath d='M5 18v-3a7 7 0 0 1 14 0v3'/%3E%3Cpath d='M10 8.5V6h4v2.5'/%3E%3C/svg%3E") center / 1.3rem no-repeat;
    box-shadow: 0 4px 12px rgba(192, 158, 13, 0.2);
}

.g2 .pt-inner .vu-chantier p {
    margin: 0 0 0.6rem;
}

.g2 .pt-inner .vu-chantier > :last-child {
    margin-bottom: 0;
}

/* ---------- Contrat JABAT : « Et chez vous ? » ---------- */

.g2 .et-chez-vous {
    margin: 1.75rem 0;
    padding: 1.4rem 1.25rem 1.5rem;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 90% 0%, rgba(192, 158, 13, 0.22), transparent 45%),
        linear-gradient(140deg, var(--secondary), var(--secondary-strong));
    color: #fff;
}

@media (min-width: 640px) {
    .g2 .et-chez-vous {
        padding: 1.75rem 2rem 1.9rem;
    }
}

.g2 .pt-inner .et-chez-vous h4 {
    margin: 0 0 1rem;
    font-size: clamp(1.2rem, 2.2vw, 1.4rem);
    line-height: 1.35;
    color: #fff;
}

.g2 .et-chez-vous button[data-a] {
    min-height: 48px;
    margin: 0 0.5rem 0.6rem 0;
    padding: 0.6rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.g2 .et-chez-vous button[data-a]:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.g2 .et-chez-vous button[data-a][aria-pressed="true"] {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.g2 .et-chez-vous button[data-a]:focus-visible {
    outline: 3px solid #f0d76a;
    outline-offset: 3px;
}

.g2 .et-chez-vous .ans {
    margin-top: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.g2 .et-chez-vous.is-js .ans:not(.is-on) {
    display: none;
}

.g2 .et-chez-vous.is-js .ans.is-on {
    animation: g2-up 0.4s ease both;
}

.g2 .pt-inner .et-chez-vous .ans b {
    display: block;
    margin-bottom: 0.3rem;
    color: #f0d76a;
    font-size: max(18px, 1.125rem);
}

.g2 .pt-inner .et-chez-vous .ans span {
    display: block;
    color: rgba(255, 255, 255, 0.86);
    font-size: max(18px, 1.125rem);
    line-height: 1.6;
}

.g2 .pt-inner .et-chez-vous .ans a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: #f0d76a;
    text-decoration-color: #f0d76a;
}

/* ---------- Contrat JABAT : « À lire ensuite » ---------- */

.g2 .g2-next {
    padding: 2rem 0 1rem;
}

.g2 .g2-next-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--g2-line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    color: var(--secondary);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 640px) {
    .g2 .g2-next-card {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    }
}

.g2 .g2-next-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 70px rgba(32, 48, 74, 0.22);
}

.g2 .g2-next-card:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.g2 .g2-next-img {
    display: block;
    min-height: 10rem;
    background: #e9ecf2;
}

.g2 .g2-next-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

@media (min-width: 640px) {
    .g2 .g2-next-img {
        order: -1;
    }
}

.g2 .g2-next-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.4rem 1.4rem 1.5rem;
}

.g2 .g2-next-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--g2-gold-dark);
}

.g2 .g2-next-title {
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    font-weight: 800;
    line-height: 1.25;
}

.g2 .g2-next-duree {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

/* ---------- Contrat JABAT : chapitres de la video dans le sommaire ---------- */

.g2-band li.has-chap,
.g2-rail li.has-chap {
    position: relative;
}

.g2-chap {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(192, 158, 13, 0.3);
}

.g2-chap-ico {
    width: 12px;
    height: 12px;
    fill: #fff;
    stroke: none;
}

.g2-chap:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Carte du sommaire : le bouton prend la place du numero (colonne
   elargie a la taille du bouton, numero + icone lecture). */
.g2-band li.has-chap a {
    grid-template-columns: 2.9rem minmax(0, 1fr);
    width: 10rem;
}

.g2-band li.has-chap a b {
    visibility: hidden;
}

.g2-band .g2-chap {
    left: 0.35rem;
    bottom: 0.2rem;
    min-width: 48px;
    height: 48px;
    padding: 0 0.6rem;
    font-size: 0.95rem;
    background: transparent;
    color: var(--primary);
    box-shadow: none;
}

.g2-band .g2-chap .g2-chap-ico {
    fill: var(--primary);
}

@media (min-width: 960px) {
    .g2-band li.has-chap a {
        padding-left: 3.4rem;
    }

    .g2-band li.has-chap a b {
        display: none;
    }

    .g2-band .g2-chap {
        left: 0.3rem;
        top: 50%;
        bottom: auto;
        height: 30px;
        min-width: 0;
        margin-top: -15px;
        background: var(--primary);
        color: #fff;
        font-size: 0.8rem;
    }

    .g2-band .g2-chap .g2-chap-ico {
        fill: #fff;
    }
}

.g2-rail li.has-chap a b {
    visibility: hidden;
}

.g2-rail .g2-chap {
    left: 0.45rem;
    top: 50%;
    height: 26px;
    margin-top: -13px;
    padding: 0 0.4rem;
    font-size: 0.72rem;
}

/* ---------- Contrat JABAT : glossaire ---------- */

.g2 span.gl[data-def] {
    border-bottom: 2px dotted var(--primary);
    cursor: help;
}

.g2 span.gl[data-def]:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

.g2-gl-bubble {
    position: absolute;
    z-index: 90;
    max-width: min(20rem, calc(100vw - 1.5rem));
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: var(--secondary);
    box-shadow: 0 14px 34px rgba(24, 34, 53, 0.3);
    color: #fff;
    font-family: "Manrope", "Manrope repli", sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}

.g2-gl-bubble[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .g2 *,
    .g2 *::before,
    .g2 *::after,
    .g2-bar,
    .g2-bar *,
    .g2-progress span,
    .g2-gl-bubble {
        animation: none !important;
        transition: none !important;
    }

    .g2 .fig-frame {
        transform: none;
    }
}

@media print {
    .g2-pending,
    .g2 .pt.g2-sec-wait .pt-inner > h2,
    .g2 .pt.g2-sec-wait .g2-one {
        opacity: 1;
        transform: none;
    }

    .g2-rail,
    .g2-band,
    .g2-progress,
    .g2-play,
    .g2-bar,
    .g2-share,
    .g2-share-pop,
    .g2-thread,
    .g2-chap {
        display: none !important;
    }

    .g2 .et-chez-vous.is-js .ans:not(.is-on) {
        display: block;
    }

    .g2 .g2-card-rest {
        display: block;
        -webkit-line-clamp: unset;
    }
}

/* ==========================================================================
   SEO128b : lecture « scrollytelling » (maquette guide-liaison-moderne)
   Hero plein ecran sur la couverture, video dans son bloc, panneau fixe
   (desktop), barre collante (mobile), numero en or sur la section active.
   Manrope seule ; couleurs : --primary, --secondary, --secondary-strong,
   --light et --g2-*.
   ========================================================================== */

/* ---------- Hero plein ecran ---------- */

.g2-hero--cover {
    display: flex;
    align-items: flex-end;
    min-height: min(80svh, 760px);
    padding: 5rem 0 2.25rem;
    background: var(--secondary-strong);
}

.g2-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.g2-hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    will-change: transform;
}

.g2-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24, 34, 53, 0.35) 0%, rgba(24, 34, 53, 0.7) 40%, rgba(24, 34, 53, 0.94) 70%, rgba(24, 34, 53, 0.98) 100%);
}

.g2-hero--cover .g2-hero-inner {
    position: relative;
    z-index: 1;
    width: min(100% - 2.5rem, var(--container));
}

.g2-hero--cover .g2-hero-text {
    max-width: 52rem;
}

.g2-hero--cover h1 {
    max-width: 16ch;
    font-size: clamp(2.3rem, 6vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
}

.g2-hero .hero-accroche {
    max-width: 22em;
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    line-height: 1.3;
    color: #f0d76a;
    animation: g2-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both;
}

.g2-hero--cover .g2-chapo {
    color: rgba(255, 255, 255, 0.86);
}

.g2-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.6rem;
    animation: g2-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.24s both;
}

.g2-hero .g2-hero-actions .g2-share-wrap {
    margin-top: 0;
}

@media (min-width: 960px) {
    .g2-hero--cover {
        min-height: min(92svh, 900px);
        padding: 7rem 0 4rem;
    }
}

/* GUIDE-V2-129a : sans image_hero de JABAT, fond bleu nuit uni (degrade
   --secondary -> --secondary-strong) et halo dore discret en bas a droite.
   Aucune image : ni la couverture, ni l'affiche de la video. */
.g2-hero--cover.g2-hero--uni {
    background:
        radial-gradient(ellipse 55% 45% at 92% 100%, rgba(192, 158, 13, 0.16), transparent 70%),
        linear-gradient(160deg, var(--secondary) 0%, var(--secondary-strong) 75%);
}

/* GUIDE-V2-130 : sans image, le hero prend la hauteur de son contenu, texte
   en haut (48 px mobile, 72 px desktop). Avec image_hero : plein ecran. */
.g2-hero--cover.g2-hero--uni {
    align-items: flex-start;
    min-height: 0;
    padding-block: 48px;
}

html.g2-sous-entete .g2-hero--cover.g2-hero--uni {
    padding-top: calc(var(--g2-hh, 0px) + 48px);
}

@media (min-width: 960px) {
    .g2-hero--cover.g2-hero--uni {
        padding-block: 72px;
    }

    html.g2-sous-entete .g2-hero--cover.g2-hero--uni {
        padding-top: calc(var(--g2-hh, 0px) + 72px);
    }
}

/* Le hero glisse sous l'en-tete du site, qui reste givre sur l'image (son
   logo est une image opaque : pas de version transparente) et se resserre
   au defilement comme partout (main.js). Classe posee par guide-v2.js. */
html.g2-sous-entete .g2-hero--cover {
    margin-top: calc(-1 * var(--g2-hh, 0px));
    padding-top: calc(var(--g2-hh, 0px) + 3rem);
}

/* ---------- Video et chapitres ---------- */

.g2-vsec {
    position: relative;
    padding: 0 0 2.5rem;
    background: var(--secondary-strong);
    color: #fff;
}

.g2-vsec-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

.g2-vsec .g2-video .seo-video-frame {
    border-radius: 14px;
}

.g2-vchap {
    display: grid;
    align-content: start;
    gap: 0.3rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
}

.g2-vchap-title {
    margin: 0 0 0.35rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.g2-vchap button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.g2-vchap button:hover,
.g2-vchap button.is-on {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.g2-vchap button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.g2-vchap button span {
    flex: none;
    min-width: 3rem;
    color: var(--primary);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 960px) {
    .g2-vsec {
        padding-bottom: 3.5rem;
    }

    .g2-vsec-inner.has-chap {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
        align-items: start;
    }

    .g2-vsec-inner:not(.has-chap) .g2-video {
        width: min(100%, 860px);
    }
}

/* ---------- Panneau fixe (desktop) : remplace le bandeau de sommaire ---------- */

@media (min-width: 960px) {
    html.js-enhanced .g2-band {
        display: none;
    }

    html.js-enhanced .g2-body {
        grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
        gap: clamp(2.5rem, 5vw, 4.5rem);
    }

    /* Fil de lecture : toujours au milieu de l'espace panneau / texte. */
    html.js-enhanced .g2-main {
        --g2-thread-x: calc(clamp(2.5rem, 5vw, 4.5rem) / -2);
    }

    html.js-enhanced .g2-rail {
        top: calc(var(--g2-hh, var(--g2-header)) + 1rem);
        max-height: none;
        overflow: visible;
        padding: 0;
    }
}

.g2-panel {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--g2-hh, var(--g2-header)) - 2rem);
    overflow: hidden;
    border: 1px solid var(--g2-line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 30px 60px -40px rgba(24, 34, 53, 0.5);
}

.g2-panel-media {
    position: relative;
    flex: none;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--secondary-strong);
}

.g2-panel-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.g2-panel-media img.is-on {
    opacity: 1;
}

.g2-panel-media::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(180deg, transparent, rgba(24, 34, 53, 0.75));
}

.g2-panel-num {
    position: absolute;
    left: 1rem;
    bottom: 0.55rem;
    z-index: 1;
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.g2-panel-cap {
    position: absolute;
    left: 6.5rem;
    right: 1rem;
    bottom: 1.05rem;
    z-index: 1;
    overflow: hidden;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: right;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--primary);
}

.g2-rail .g2-panel-rail {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0.6rem;
    overflow-y: auto;
    border-left: 0;
    scrollbar-width: thin;
}

.g2-rail .g2-panel-rail a {
    grid-template-columns: 1.6rem minmax(0, 1fr);
    gap: 0.6rem;
    min-height: 38px;
    margin-left: 0;
    padding: 0.3rem 0.6rem;
    border-left: 2px solid transparent;
    border-radius: 9px;
    font-size: 0.9rem;
}

.g2-rail .g2-panel-rail a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g2-rail .g2-panel-rail a b {
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 6px;
    background: var(--g2-line);
    color: var(--secondary);
    font-size: 0.72rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.g2-rail .g2-panel-rail a b:empty {
    visibility: hidden;
}

/* Section avec chapitre video : la pastille lecture prend la place du numero. */
.g2-rail .g2-panel-rail li.has-chap a {
    grid-template-columns: 2.6rem minmax(0, 1fr);
}

.g2-rail .g2-panel-rail .g2-chap {
    left: 0.55rem;
}

.g2-rail .g2-panel-rail a.is-done b {
    background: var(--secondary);
    color: var(--primary);
}

.g2-rail .g2-panel-rail a.is-active {
    border-left-color: var(--primary);
    background: var(--light);
    color: var(--secondary);
}

.g2-rail .g2-panel-rail a.is-active b {
    background: var(--primary);
    color: #fff;
}

.g2-panel-cta {
    flex: none;
    margin: 0.25rem 0.75rem 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--secondary);
    color: #fff;
}

.g2-panel-cta b {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.g2-panel-cta p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    margin: 0 0 0.8rem;
    overflow: hidden;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.g2-rail .g2-panel-cta .g2-pill {
    min-height: 44px;
    padding: 0.6rem 1rem;
}

/* ---------- Barre collante (mobile) ---------- */

.g2-mbar {
    display: none;
}

html.js-enhanced .g2-mbar {
    display: block;
    position: sticky;
    top: var(--g2-hh, var(--g2-header));
    z-index: 5;
    margin: 0 calc(-1 * var(--g2-gutter));
    padding: 0.6rem var(--g2-gutter);
    border-bottom: 1px solid var(--g2-line);
    background: var(--light);
}

@media (min-width: 960px) {
    html.js-enhanced .g2-mbar {
        display: none;
    }
}

.g2-mbar-in {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.g2-mbar-n {
    flex: none;
    color: var(--g2-gold-dark);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}

.g2-mbar-mot {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g2-mbar-dots {
    display: flex;
    flex: 0 1 8.5rem;
    gap: 3px;
}

.g2-mbar-dots i {
    flex: 1 1 0;
    min-width: 3px;
    max-width: 14px;
    height: 4px;
    border-radius: 2px;
    background: var(--g2-line);
    transition: background-color 0.3s ease;
}

.g2-mbar-dots i.is-on {
    background: var(--primary);
}

/* La barre basse garde l'appel ; le chapitre est dans la barre du haut. */
.g2-bar .g2-bar-chap {
    display: none;
}

.g2-bar .g2-pill {
    flex: 1 1 auto;
}

/* ---------- Grand numero : gris, en or sur la section active ---------- */

.g2 .pt-inner[data-n]::before {
    font-size: clamp(4rem, 8vw, 6.5rem);
    line-height: 0.85;
}

.g2.g2-thread-on .pt .pt-inner[data-n]::before,
.g2.g2-thread-on .pt.is-reached .pt-inner[data-n]::before {
    color: rgba(32, 48, 74, 0.1);
    -webkit-text-stroke-color: transparent;
}

.g2.g2-thread-on .pt.is-live .pt-inner[data-n]::before {
    color: var(--primary);
}

/* ---------- « Vu sur le chantier » en citation ---------- */

.g2 .vu-chantier {
    padding: 1.1rem 1.4rem 1.2rem;
    border-left-width: 3px;
    background: #fff;
    box-shadow: none;
}

.g2 .vu-chantier::before {
    content: "Vu sur le chantier";
}

.g2 .vu-chantier::after {
    display: none;
}

.g2 .pt-inner .vu-chantier p {
    font-size: max(18px, 1.15rem);
    font-style: italic;
    line-height: 1.55;
    color: var(--secondary);
}

/* ---------- « Et chez vous ? » ---------- */

.g2 .et-chez-vous {
    position: relative;
    overflow: hidden;
}

.g2 .et-chez-vous::before {
    content: "Et chez vous ?";
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.g2 .et-chez-vous button[data-a] {
    max-width: 100%;
    white-space: normal;
    text-align: left;
}

/* Question de FAQ tres longue : elle passe a la ligne au lieu de deborder. */
.g2-faq-item summary strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* ---------- Appel final centre ---------- */

.g2-cta {
    text-align: center;
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.g2-cta::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192, 158, 13, 0.24), transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.g2-cta-inner {
    position: relative;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
}

.g2-cta-text {
    flex: none;
    max-width: 42rem;
}

.g2-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.g2-cta p {
    margin: 0 auto;
}

.g2-cta-actions {
    justify-content: center;
}

@media print {
    .g2-mbar,
    .g2-hero-actions,
    .g2-vchap,
    .g2-panel {
        display: none !important;
    }
}
