/* =========================================================
   Julien Gérin — refonte du 19/11/2026 (Heteractis)
   Complète he-julien-gerin.css, ne le remplace pas.
   Trois univers : proximité · préparation · entreprises.
   ========================================================= */

:root {
    --sage: #9fbf8f;
    --sage-soft: rgba(159, 191, 143, 0.12);
    --card-hover: #1b1b1b;
}

/* ---------- Logo : sous-titre plus court ---------- */
.he-logo-sub { letter-spacing: 0.04em; }

/* ---------- Menu : 7 entrées, rester lisible ---------- */
@media (min-width: 1201px) {
    .he-nav-links { gap: 20px; }
    .he-nav-links a { font-size: 0.82rem; }
    .he-nav-links a.is-active:not(.he-nav-cta) { color: var(--white); }
    .he-nav-links a.is-active:not(.he-nav-cta)::after { width: 100%; }
}

/* ---------- Hero accueil ---------- */
.jg-hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}
.jg-hero-signature {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    color: var(--white-off);
    font-style: italic;
    margin: 6px 0 22px;
}
.jg-hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 32px 0 26px;
}
.jg-hero-ctas .he-btn { padding: 15px 26px; }
.he-btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.he-btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Bande de réassurance ---------- */
.jg-proof {
    background: var(--black-light);
    border-top: 1px solid var(--black-border);
    border-bottom: 1px solid var(--black-border);
    padding: 26px 0;
}
.jg-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    text-align: center;
}
.jg-proof-grid strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold);
    line-height: 1.1;
}
.jg-proof-grid span { font-size: 0.85rem; color: var(--gray-light); }

/* ---------- Cartes univers / offres ---------- */
.jg-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.jg-cards.two { grid-template-columns: repeat(2, 1fr); }
.jg-cards.four { grid-template-columns: repeat(4, 1fr); }
.jg-card {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), transform var(--transition), background var(--transition);
    height: 100%;
}
.jg-card:hover { border-color: rgba(201, 168, 76, 0.45); transform: translateY(-3px); background: var(--card-hover); }
.jg-card-photo {
    margin: -32px -28px 24px;
    height: 190px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius) var(--radius) 0 0;
    position: relative;
}
.jg-card-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 40%, rgba(21, 21, 21, 1) 100%);
    border-radius: inherit;
}
.jg-card-letter {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.jg-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.25;
}
.jg-card p { color: var(--gray-light); font-size: 0.93rem; line-height: 1.7; }
.jg-card ul { list-style: none; margin: 14px 0 0; color: var(--gray-light); font-size: 0.92rem; }
.jg-card ul li { padding: 5px 0 5px 22px; position: relative; }
.jg-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); }
.jg-card .jg-card-link {
    margin-top: auto;
    padding-top: 22px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
}
.jg-card .jg-card-link::after { content: ' →'; transition: margin var(--transition); }
.jg-card:hover .jg-card-link::after { margin-left: 4px; }

/* ---------- Tarifs ---------- */
.jg-prices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 8px;
}
.jg-price {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    position: relative;
}
.jg-price.featured { border-color: var(--gold); box-shadow: var(--gold-glow); }
.jg-price .jg-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-gradient);
    color: var(--black);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    white-space: nowrap;
}
.jg-price h3 { color: var(--white); font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.jg-price .amount { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.jg-price .amount small { font-family: var(--font-body); font-size: 0.9rem; color: var(--gray-light); }
.jg-price p { color: var(--gray-light); font-size: 0.88rem; margin-top: 10px; }
.jg-price-extra {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
}
.jg-chip {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 0.9rem;
    color: var(--white-off);
}
.jg-chip strong { color: var(--gold); }
.jg-note { color: var(--gray); font-size: 0.83rem; text-align: center; margin-top: 18px; line-height: 1.6; }

/* ---------- Mise en page 2 colonnes texte / image ---------- */
.jg-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}
.jg-split.reverse > :first-child { order: 2; }
.jg-split-img {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--black-border);
    min-height: 340px;
    background-size: cover;
    background-position: center;
}
.jg-split h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 18px;
}
.jg-split p { color: var(--gray-light); line-height: 1.85; margin-bottom: 14px; }
.jg-checks { list-style: none; margin: 18px 0 26px; }
.jg-checks li { padding: 7px 0 7px 28px; position: relative; color: var(--white-off); font-size: 0.97rem; }
.jg-checks li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---------- Étapes ---------- */
.jg-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.jg-step {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius);
    padding: 28px 22px;
    counter-increment: step;
}
.jg-step::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.jg-step h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.jg-step p { color: var(--gray-light); font-size: 0.9rem; line-height: 1.65; }

/* ---------- Encadré vision / info ---------- */
.jg-callout {
    border: 1px solid rgba(159, 191, 143, 0.35);
    background: var(--sage-soft);
    border-radius: var(--radius);
    padding: 34px 36px;
    max-width: 900px;
    margin: 0 auto;
}
.jg-callout .jg-status {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sage);
    border: 1px solid rgba(159, 191, 143, 0.5);
    border-radius: 50px;
    padding: 4px 12px;
    margin-bottom: 14px;
}
.jg-callout h2, .jg-callout h3 { font-family: var(--font-display); color: var(--white); margin-bottom: 12px; }
.jg-callout p { color: var(--gray-light); line-height: 1.8; }

/* ---------- FAQ ---------- */
.jg-faq { max-width: 860px; margin: 0 auto; }
.jg-faq details {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    padding: 0 24px;
}
.jg-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 28px 20px 0;
    color: var(--white);
    font-weight: 600;
    position: relative;
}
.jg-faq summary::-webkit-details-marker { display: none; }
.jg-faq summary::after { content: '+'; position: absolute; right: 0; top: 16px; color: var(--gold); font-size: 1.4rem; }
.jg-faq details[open] summary::after { content: '–'; }
.jg-faq details p { color: var(--gray-light); padding: 0 0 20px; line-height: 1.75; }

/* ---------- Zone / carte ---------- */
.jg-zone { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.jg-zone span {
    border: 1px solid var(--black-border);
    background: var(--black-card);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: var(--gray-light);
}
.jg-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--black-border);
    min-height: 320px;
    background: var(--black-card);
}
.jg-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(0.6) invert(0.9) hue-rotate(180deg); }
.jg-map-consent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 320px;
    padding: 30px;
    color: var(--gray-light);
    gap: 14px;
}

/* ---------- Bandeau d'appel final ---------- */
.jg-cta-band {
    background: linear-gradient(135deg, #15120a 0%, #0a0a0a 60%);
    border-top: 1px solid rgba(201, 168, 76, 0.25);
    border-bottom: 1px solid rgba(201, 168, 76, 0.25);
    padding: 80px 0;
    text-align: center;
}
.jg-cta-band h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--white); margin-bottom: 14px; }
.jg-cta-band p { color: var(--gray-light); max-width: 620px; margin: 0 auto 28px; }

/* ---------- Hero des pages intérieures ---------- */
.jg-page-hero {
    position: relative;
    padding: 170px 0 90px;
    background-size: cover;
    background-position: center;
    text-align: center;
}
.jg-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.88), rgba(10, 10, 10, 0.78) 50%, rgba(10, 10, 10, 1));
}
.jg-page-hero .container { position: relative; z-index: 1; }
.jg-page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    color: var(--white);
    line-height: 1.15;
    margin: 6px auto 18px;
    max-width: 900px;
}
.jg-page-hero p { color: var(--gray-light); max-width: 700px; margin: 0 auto; font-size: 1.07rem; line-height: 1.8; }
.jg-page-hero .jg-hero-ctas { margin-bottom: 0; }
.jg-breadcrumb { font-size: 0.8rem; color: var(--gray); margin-bottom: 10px; }
.jg-breadcrumb a { color: var(--gray-light); }
.jg-breadcrumb a:hover { color: var(--gold); }

/* ---------- Barre d'action mobile (appel / essai) ---------- */
.jg-mobile-bar { display: none; }
@media (max-width: 768px) {
    .jg-mobile-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: rgba(10, 10, 10, 0.97);
        border-top: 1px solid rgba(201, 168, 76, 0.35);
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        gap: 10px;
    }
    .jg-mobile-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 13px 10px;
        border-radius: var(--radius-sm);
        font-weight: 600;
        font-size: 0.92rem;
    }
    .jg-mobile-bar .call { border: 1.5px solid var(--gold); color: var(--gold); }
    .jg-mobile-bar .go { background: var(--gold-gradient); color: var(--black); }
    body { padding-bottom: 76px; }
    .back-to-top { bottom: 90px !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .jg-cards, .jg-cards.four { grid-template-columns: 1fr 1fr; }
    .jg-steps { grid-template-columns: 1fr 1fr; }
    .jg-split { grid-template-columns: 1fr; gap: 32px; }
    .jg-split.reverse > :first-child { order: 0; }
    .jg-proof-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .jg-cards, .jg-cards.two, .jg-cards.four, .jg-prices, .jg-steps { grid-template-columns: 1fr; }
    .jg-hero-ctas { flex-direction: column; align-items: stretch; }
    .jg-hero-ctas .he-btn { width: 100%; }
    .jg-page-hero { padding: 140px 0 60px; }
    .jg-callout { padding: 26px 22px; }
    .he-section { padding: 80px 0; }
}

/* Les grilles inline existantes passent en une colonne sur mobile */
@media (max-width: 768px) {
    .he-section [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* Accessibilité : focus visible, mouvement réduit */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Corrections du gabarit (titres décalés, hero trop clair) ---------- */
.he-section-header .he-section-title {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}
#hero .he-hero-overlay {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.62) 35%, rgba(10, 10, 10, 0.9) 100%);
}
#hero { padding-top: 160px; }
#hero .he-hero-subtitle { color: var(--white-off); }
@media (max-width: 640px) {
    .he-hero-credibility { flex-direction: column; gap: 4px; }
    .he-hero-credibility span:nth-child(even) { display: none; }
}

/* Menu : 7 entrées → burger jusqu'à 1200 px (au lieu de 1023 px) pour éviter les libellés sur deux lignes */
.he-nav-links a { white-space: nowrap; }
@media (max-width: 1200px) {
  .he-nav-burger { display: flex; }
  .he-nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(82vw, 330px);
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: rgba(10, 10, 10, 0.98); backdrop-filter: blur(14px);
    padding: 104px 30px 40px; margin: 0;
    transform: translateX(100%); transition: transform .35s ease;
    box-shadow: -12px 0 48px rgba(0, 0, 0, 0.55);
  }
  .he-nav-links.open { transform: translateX(0); }
  .he-nav-links li { width: 100%; }
  .he-nav-links a { display: block; width: 100%; padding: 13px 0; font-size: 1.05rem; }
  .he-nav-links .he-nav-cta { margin-top: 14px; text-align: center; }
}

/* === Finitions 20/11/2026 : menu mobile, accessibilité, retour en haut === */
/* retour en haut : caché tant qu'on n'a pas défilé (main.js l'affiche après 300 px) */
.back-to-top { display: none; }
/* logo : sous-titre sur une ligne entre 1201 et 1366 px, menu un peu plus serré */
.he-logo-sub { white-space: nowrap; }
@media (min-width: 1201px) and (max-width: 1366px) {
    .he-nav-links { gap: 14px; }
    .he-nav-links a { font-size: 0.78rem; }
    .he-logo-sub { font-size: 0.6rem; letter-spacing: 0.06em; }
}
@media (max-width: 1200px) {
    /* panneau fermé : hors de la tabulation */
    .he-nav-links { visibility: hidden; transition: transform .35s ease, visibility 0s linear .35s; }
    .he-nav-links.open { visibility: visible; transition: transform .35s ease, visibility 0s; }
    /* voile derrière le panneau, page figée, barre d'appel et retour en haut masqués */
    body.he-menu-ouvert { overflow: hidden; }
    body.he-menu-ouvert::before {
        content: ""; position: fixed; inset: 0; z-index: 999;
        background: rgba(0, 0, 0, 0.65);
    }
    body.he-menu-ouvert .jg-mobile-bar, body.he-menu-ouvert .back-to-top { display: none !important; }
}
@media (max-width: 480px) {
    .he-nav-links { width: 100%; padding-left: 28px; padding-right: 28px; }
}
/* lien d'évitement : invisible, apparaît au premier appui sur Tab */
.he-skip { position: absolute; left: -9999px; top: 10px; z-index: 2000; }
.he-skip:focus { left: 16px; padding: 10px 18px; border-radius: 6px; background: var(--gold); color: var(--black); font-weight: 600; text-decoration: none; }
main:focus { outline: none; }

/* ---------- Images en <img loading="lazy"> (20/11/2026) : même cadrage que les anciens fonds ---------- */
.jg-split-img { position: relative; }
.jg-card-photo > img,
.jg-split-img > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    display: block;
}
