/* =====================================================================
   N4CC — refonte des SECTIONS de l'accueil (11/2026), servie avec ?accueil=2 seulement.
   Chargee apres hj-kit.css et hj-home.css, sur html.n4a2. Jetons du kit « L'Heure Juste ».
   Les anciennes feuilles posent des regles en !important (theme-mer, n4cc-head-inline) :
   les regles ci-dessous sont donc plus specifiques et en !important la ou il le faut.
   ===================================================================== */

/* ---------- 1. Tarifs et simulateurs : l'ordre de la page est celui du code ---------- */
html.n4a2 #combien-coute > .container > * { order: 0 !important; }
html.n4a2 .n4a2-anchor { display: block; height: 0; scroll-margin-top: 96px; }
html.n4a2 #n4a2-prix .v34-simple-grid { margin-top: 8px; }
html.n4a2 #combien-coute .v39-tarifs-extras { margin-bottom: 8px; }

/* ---------- 2. Blocs repliables (telephone seulement ; ouverts partout ailleurs et sans JavaScript) ---------- */
html.n4a2 .n4a2-fold { display: none; }
html.n4a2 .n4a2-fold__body { display: contents; }

@media (max-width: 760px) {
  html.n4a2.n4a2-ready .n4a2-fold {
    display: flex !important; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; min-height: 56px; margin: 14px 0 0; padding: 12px 18px;
    font: 600 1.0625rem/1.3 var(--f-body, 'DM Sans', system-ui, sans-serif); text-align: left;
    color: var(--ink, #0A2540); background: var(--white, #FFFDF8);
    border: 1px solid var(--line, #E2DACA); border-bottom-width: 3px; border-radius: var(--r, 12px);
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  html.n4a2.n4a2-ready .n4a2-fold:focus-visible { outline: 3px solid var(--sun-2, #F2B21B); outline-offset: 2px; }
  html.n4a2.n4a2-ready .n4a2-fold svg { flex: none; width: 18px !important; height: 18px !important; transition: transform .2s ease; }
  html.n4a2.n4a2-ready .n4a2-fold[aria-expanded="true"] svg { transform: rotate(180deg); }
  html.n4a2.n4a2-ready .n4a2-fold__body { display: none; }
  html.n4a2.n4a2-ready .n4a2-fold__body.is-open { display: block; margin-top: 14px; }

  /* les cinq tarifs : prix visibles tout de suite, detail de chaque tarif a la demande */
  html.n4a2.n4a2-ready #n4a2-prix:not(.is-open) .v34-simple-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  html.n4a2.n4a2-ready #n4a2-prix:not(.is-open) .v34-card { padding: 14px 12px 12px !important; min-height: 0 !important; }
  html.n4a2.n4a2-ready #n4a2-prix:not(.is-open) .v34-card-list,
  html.n4a2.n4a2-ready #n4a2-prix:not(.is-open) .v52-card-ribbon { display: none !important; }
  html.n4a2.n4a2-ready #n4a2-prix:not(.is-open) .v34-card-price { font-size: 26px !important; }
  html.n4a2.n4a2-ready #n4a2-prix:not(.is-open) .v34-card:last-child { grid-column: 1 / -1; }
}

/* ---------- 3. Textes repris des sections masquees ---------- */
html.n4a2 .n4a2-premier,
html.n4a2 .n4a2-velo {
  max-width: 760px; margin: 28px auto 0; padding: 20px 22px; text-align: left;
  background: var(--white, #FFFDF8); border: 1px solid var(--line, #E2DACA); border-radius: var(--r-panel, 20px);
  box-shadow: var(--sh-paper, 0 10px 26px -18px rgba(10, 37, 64, .35));
  color: var(--ink-2, #33445C); font: 400 1.0625rem/1.6 var(--f-body, 'DM Sans', system-ui, sans-serif);
}
html.n4a2 .n4a2-premier h3,
html.n4a2 .n4a2-velo h3 {
  margin: 0 0 8px !important; font: 600 1.3rem/1.25 var(--f-display, 'Fraunces', Georgia, serif) !important;
  color: var(--ink, #0A2540) !important; text-align: left !important;
}
html.n4a2 .n4a2-premier p,
html.n4a2 .n4a2-velo p { margin: 0 !important; color: var(--ink-2, #33445C) !important; font-size: 1.0625rem !important; line-height: 1.6 !important; text-align: left !important; max-width: none !important; }
html.n4a2 .n4a2-premier a,
html.n4a2 .n4a2-velo a { color: var(--coral-ink, #B83A0E) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 6px 0; }
html.n4a2 .n4a2-velo ul { margin: 10px 0 6px !important; padding: 0 0 0 1.2em !important; list-style: disc; }
html.n4a2 .n4a2-velo li { margin: 4px 0; }
html.n4a2 .n4a2-premier { margin-bottom: 28px; }

/* ---------- 4. L'aire en bref, puis la FAQ unique ---------- */
html.n4a2 .n4a2-faq { padding: 24px 0 40px; }
html.n4a2 .n4a2-faq .n4cc-eb { margin-top: 0; }
html.n4a2 .n4a2-faq .eb-faqh { margin-top: 0 !important; font-size: clamp(1.65rem, 1.25rem + 1.6vw, 2.55rem) !important; justify-content: center; text-align: center; }
html.n4a2 .n4a2-faq .ans a { color: var(--coral-ink, #B83A0E); font-weight: 700; text-underline-offset: 3px; }
html.n4a2 .n4a2-faq summary { min-height: 56px; }

/* ---------- 5. Galerie : les trois videos en une rangee a faire defiler, sur telephone ---------- */
@media (max-width: 760px) {
  html.n4a2 .v31-gallery .videos-grid {
    display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 16px -16px 0 !important; padding: 0 16px 10px; -webkit-overflow-scrolling: touch;
  }
  html.n4a2 .v31-gallery .videos-grid > .video-card { flex: 0 0 80%; scroll-snap-align: center; }
  html.n4a2 .v31-gallery .v32-videos { margin-top: 20px !important; }
}
html.n4a2 .n4a2-faq .n4cc-eb { padding: 0; }

/* =====================================================================
   ETAPE 4 — Habillage : animations decoratives arretees, sections resserrees sur telephone,
   pied de page en accordeon. Rien n'est retire de la page.
   ===================================================================== */

/* ---------- 6. Animations : ne restent que la mer, la jauge et le bandeau des services ---------- */
/* meme methode que le bouton de pause (animation figee sur sa premiere image) */
html.n4a2 .n4r-stars i,
html.n4a2 .maxi-footer-stars-overlay,
html.n4a2 #hero.hero,
html.n4a2 #hero .hero-bubble,
html.n4a2 .v53-step::after,
html.n4a2 .v31-gallery .video-thumb,
html.n4a2 .v31-gallery .video-play-btn,
html.n4a2 .section-map .map-card,
html.n4a2 #combien-coute .v52-card-ribbon,
html.n4a2 #combien-coute .energy-bolt,
html.n4a2 #combien-coute .v44-elec-eyebrow::before,
html.n4a2 #combien-coute .v44-elec-cta-btn,
html.n4a2 .v44-chat-fab::after { animation-play-state: paused !important; }
html.n4a2 .maxi-sticker, html.n4a2 .maxi-confetti { display: none !important; }
/* pastilles « LIVE » de la meteo et du soleil : fixes, a pleine couleur (celle de la jauge continue de battre) */
html.n4a2 #hero .live-stack .live-badge, html.n4a2 #hero .live-stack .live-badge::before { animation: none !important; opacity: 1 !important; }

/* ---------- 7. Pied de page : rubriques en accordeon sur telephone (script hj-accueil2.js) ---------- */
html.n4a2 .n4a2-acc__btn { all: unset; display: block; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: default; }
html.n4a2 .n4a2-acc__btn svg { display: none; }

@media (max-width: 760px) {
  /* ---------- 8. Rythme : moins de vide entre les sections ---------- */
  html.n4a2 main > section:not(#hero):not(.n4r-livesea) { padding-top: 36px !important; padding-bottom: 36px !important; }
  html.n4a2 main > section .section-head { margin-bottom: 18px !important; }

  /* ---------- 9. Heros : services et cartes du jour en rangees a faire defiler ---------- */
  html.n4a2 #hero .hero-pills {
    display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin-left: -24px; margin-right: -24px; padding: 2px 24px 6px; -webkit-overflow-scrolling: touch;
  }
  html.n4a2 #hero .hero-pills::-webkit-scrollbar, html.n4a2 #hero .live-stack::-webkit-scrollbar,
  html.n4a2 .v52-trust-strip::-webkit-scrollbar { display: none; }
  html.n4a2 #hero .hero-pills > .pill { flex: none; }
  html.n4a2 #hero .live-stack {
    display: flex !important; flex-direction: row !important; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; margin-left: -24px; margin-right: -24px; padding: 0 24px 6px; -webkit-overflow-scrolling: touch;
  }
  html.n4a2 #hero .live-stack > .live-card { flex: 0 0 82%; scroll-snap-align: center; margin: 0 !important; }

  /* ---------- 10. Bandeau de confiance : une rangee ---------- */
  html.n4a2 .v52-trust-strip {
    display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 14px;
    overflow-x: auto; scrollbar-width: none; padding: 10px 4px !important; -webkit-overflow-scrolling: touch;
  }
  html.n4a2 .v52-trust-strip > .v52-trust-item { flex: none; white-space: nowrap; }

  /* ---------- 11. Etapes : cartes plus basses ---------- */
  html.n4a2 #comment-ca-marche .v53-step { padding: 26px 16px 16px !important; }
  html.n4a2 #comment-ca-marche .v53-step-icon { width: 42px !important; height: 42px !important; margin-bottom: 8px !important; }
  html.n4a2 #comment-ca-marche .v53-step p { font-size: 15px !important; line-height: 1.5 !important; margin-bottom: 0 !important; }
  html.n4a2 #comment-ca-marche .v53-howto-lead { margin-bottom: 18px !important; }
  html.n4a2 .n4a2-premier { margin-top: 18px; margin-bottom: 20px; padding: 16px 18px; }

  /* ---------- 12. Plage : quatre reperes compacts, avis resserres ---------- */
  html.n4a2 #super-pouvoir .stat-grid { gap: 10px !important; }
  html.n4a2 #super-pouvoir .stat-grid .stat-card { padding: 14px 10px !important; }
  html.n4a2 #super-pouvoir .stat-grid .card-icon { width: 40px !important; height: 40px !important; margin: 0 auto 8px !important; }
  html.n4a2 #super-pouvoir .stat-grid .stat-value { font-size: 26px !important; line-height: 1.15 !important; white-space: nowrap; }
  html.n4a2 #super-pouvoir .sp-palmares { margin-top: 22px !important; padding-top: 22px !important; }
  html.n4a2 #super-pouvoir .avis-badges { margin-top: 14px !important; gap: 8px !important; }
  html.n4a2 #super-pouvoir .avis-cta { margin-top: 16px !important; }

  /* ---------- 13. Galerie : vignettes plus basses ---------- */
  html.n4a2 .v31-gallery .gallery-hint-grid { grid-auto-rows: 112px !important; gap: 10px !important; margin-top: 18px !important; }

  /* ---------- 14. Guides : liens sur deux colonnes ---------- */
  html.n4a2 .section-seo-etape > .container > div:last-child { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
  html.n4a2 .section-seo-etape > .container > div:last-child > .pill {
    display: flex !important; align-items: center; justify-content: center; min-height: 52px; padding: 8px 10px !important;
    font-size: 13.5px !important; line-height: 1.25 !important; text-align: center; white-space: normal !important; border-radius: 14px !important;
  }
  html.n4a2 .section-seo-etape > .container > p { margin-bottom: 20px !important; }

  /* ---------- 15. Contact ---------- */
  html.n4a2 #contact-zone .final-card { padding: 28px 20px !important; }
  html.n4a2 #contact-zone .final-card h2 { margin-bottom: 10px !important; }

  /* ---------- 16. Pied de page : rubriques repliees, cibles de 44 px ---------- */
  html.n4a2.n4a2-ready .footer-v3-col.n4a2-acc { border-top: 1px solid rgba(255, 255, 255, .12); }
  html.n4a2.n4a2-ready .footer-v3-col.n4a2-acc h4 { margin: 0 !important; }
  html.n4a2.n4a2-ready .n4a2-acc__btn {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  html.n4a2.n4a2-ready .n4a2-acc__btn:focus-visible { outline: 3px solid var(--sun-2, #F2B21B); outline-offset: 2px; }
  html.n4a2.n4a2-ready .n4a2-acc__btn svg { display: block; flex: none; width: 18px !important; height: 18px !important; transition: transform .2s ease; }
  html.n4a2.n4a2-ready .n4a2-acc__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
  html.n4a2.n4a2-ready .n4a2-acc__list:not(.is-open) { display: none !important; }
  html.n4a2.n4a2-ready .n4a2-acc__list { margin: 0 0 10px !important; }
  html.n4a2.n4a2-ready .n4a2-acc__list li a { display: block; padding: 11px 0; }
  html.n4a2.n4a2-ready .footer-v3-grid { gap: 0 !important; }
  html.n4a2.n4a2-ready .footer-v3-col.footer-v3-about { margin-bottom: 18px; }
}

/* =====================================================================
   REPLIS SUPPLEMENTAIRES sur telephone (accord de Thibaut, 16/11/2026) : l'aire en bref, premier voyage, velo,
   suite du texte des guides, fin de la FAQ ; les trois etapes en rangee a faire defiler.
   Sur grand ecran et sans JavaScript, tout reste ouvert et les titres d'origine s'affichent.
   ===================================================================== */
html.n4a2 .n4a2-fold__h { display: none; margin: 0 !important; padding: 0 !important; font: inherit !important; }
html.n4a2 .n4a2-repli { display: contents; }

@media (max-width: 760px) {
  html.n4a2.n4a2-ready .n4a2-fold__h { display: block; }
  html.n4a2.n4a2-ready .n4a2-fold__h > .n4a2-fold { margin-top: 0; }
  html.n4a2.n4a2-ready .n4a2-repli { display: block; max-width: 760px; margin: 14px auto 0; }
  /* le bouton porte deja le titre : celui du bloc est masque */
  html.n4a2.n4a2-ready .n4a2-fold__body--titre .n4a2-premier > h3,
  html.n4a2.n4a2-ready .n4a2-fold__body--titre .n4a2-velo > h3,
  html.n4a2.n4a2-ready .n4a2-fold__body--titre .eb-head { display: none !important; }
  html.n4a2.n4a2-ready .n4a2-fold__body--titre .n4a2-premier,
  html.n4a2.n4a2-ready .n4a2-fold__body--titre .n4a2-velo { margin-top: 0; }
  html.n4a2.n4a2-ready .n4a2-fold__body--titre .n4cc-eb { margin: 0 auto !important; padding: 0 !important; }
  html.n4a2.n4a2-ready .n4a2-aire { padding-top: 18px; padding-bottom: 18px; }
  html.n4a2.n4a2-ready #comment-ca-marche .n4a2-repli { margin-bottom: 20px; }

  /* bouton discret, facon lien : « Lire la suite », « Voir toutes les questions » */
  html.n4a2.n4a2-ready .n4a2-fold--lien {
    justify-content: center !important; width: auto; min-height: 48px; margin: 6px auto 0; padding: 8px 18px;
    background: transparent; border: 0; border-radius: 999px; color: var(--coral-ink, #B83A0E); font-weight: 700;
    text-decoration: underline; text-underline-offset: 3px;
  }
  html.n4a2.n4a2-ready .n4a2-fold--lien[aria-expanded="true"] { display: none !important; }
  html.n4a2.n4a2-ready .n4a2-repli--suite { margin-top: 0; margin-bottom: 14px; text-align: center; }
  html.n4a2.n4a2-ready .n4a2-faq .n4a2-fold__body.is-open { margin-top: 0; }

  /* les trois etapes : une rangee a faire defiler, la route decorative est retiree */
  html.n4a2 #comment-ca-marche .v53-steps {
    display: flex !important; flex-direction: row !important; align-items: stretch; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 30px 16px 10px !important; -webkit-overflow-scrolling: touch;
  }
  html.n4a2 #comment-ca-marche .v53-steps::-webkit-scrollbar { display: none; }
  html.n4a2 #comment-ca-marche .v53-steps > .v53-step { flex: 0 0 80%; scroll-snap-align: center; margin: 0 !important; }
  html.n4a2 #comment-ca-marche .v53-steps > .n4r-road { display: none !important; }

  /* derniers resserrements */
  html.n4a2 .v31-gallery .gallery-hint-grid { grid-auto-rows: 100px !important; }
  html.n4a2 #combien-coute .v40-sims-header { margin: 22px 0 12px !important; }
  html.n4a2 #combien-coute .v39-tarifs-extras .sep { display: none !important; }
  html.n4a2 #combien-coute .v39-tarifs-extras { gap: 6px !important; padding-top: 16px !important; padding-bottom: 16px !important; }
  html.n4a2 #super-pouvoir .avis-badges {
    display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; scrollbar-width: none;
    margin-left: -16px; margin-right: -16px; padding: 2px 16px 6px; -webkit-overflow-scrolling: touch;
  }
  html.n4a2 #super-pouvoir .avis-badges::-webkit-scrollbar { display: none; }
  html.n4a2 #super-pouvoir .avis-badges > .pill { flex: none; }
  html.n4a2 .section-map .map-card iframe { height: 250px !important; min-height: 0 !important; }
}

/* =====================================================================
   ETAPE 5 — Accessibilite : cibles d'au moins 24 px, contrastes AA (4,5 pour le texte courant, 3 pour le grand texte).
   Couleurs sombres du kit : --coral-ink #B83A0E, --mint-ink #0B7A55 ; ambre sombre #9A5B00 pour les valeurs du simulateur.
   ===================================================================== */

/* ---------- 17. Cibles ---------- */
/* liens dans une phrase ou dans une liste : 24 px de haut sans changer la mise en page */
html.n4a2 #faq .ans a,
html.n4a2 #combien-coute .v39-tarifs-extras a,
html.n4a2 .news-ticker a,
html.n4a2 .site-footer .footer-v3-col a,
html.n4a2 .site-footer .footer-v3-bottom a { display: inline-block; min-height: 24px; line-height: 24px; }
html.n4a2 .site-footer .footer-v3-social a { line-height: normal; }
html.n4a2 .news-ticker .nt-close { min-width: 24px !important; min-height: 24px !important; }
/* reperes de la route (navigation laterale, grand ecran) : meme pastille de 14 px, zone cliquable de 24 px */
html.n4a2 .n4r-route__stop {
  width: 24px !important; height: 24px !important; border: 5px solid transparent !important; background-clip: padding-box !important;
  box-shadow: inset 0 0 0 2px var(--n4r-navy, #0A2540);
}
@media (min-width: 761px) {
  /* curseurs du simulateur : meme trait fin, zone de saisie de 24 px */
  html.n4a2 #combien-coute .v30-row input[type="range"] { box-sizing: border-box; height: 24px !important; padding: 9.5px 0 !important; background-clip: content-box !important; }
}

/* ---------- 18. Contrastes ---------- */
/* simulateur : valeurs et boutons orange ou verts sur fond clair */
html.n4a2 #combien-coute .v30-sim-sejour .v30-val,
html.n4a2 #combien-coute .v30-sim-sejour .v30-val span,
html.n4a2 #combien-coute .v30-sim-sejour .v30-opt button { color: #9A5B00 !important; }
html.n4a2 #combien-coute .v30-sim-elec .v30-val,
html.n4a2 #combien-coute .v30-sim-elec .v30-val span,
html.n4a2 #combien-coute .v30-sim-elec .v30-opt button,
html.n4a2 #combien-coute .v30-sim-elec strong,
html.n4a2 #combien-coute .v30-sim-elec .v39-eq-wu { color: var(--mint-ink, #0B7A55) !important; }
html.n4a2 #combien-coute .v39-mode-tab.is-active small { color: rgba(255, 255, 255, .88) !important; }
html.n4a2 #combien-coute .v52-card-ribbon { background: var(--coral-ink, #B83A0E) !important; color: #fff !important; }
/* pastilles blanches sur fond clair */
html.n4a2 #hero .live-badge { background: var(--mint-ink, #0B7A55) !important; color: #fff !important; }
html.n4a2 .v31-gallery .gallery-tile-badge.is-eco { background: var(--mint-ink, #0B7A55) !important; color: #fff !important; }
html.n4a2 .v31-gallery .gallery-tile-badge.is-bleu { background: #0369A1 !important; color: #fff !important; }
/* corail sur fond clair : petit texte en corail sombre, italique des titres un ton plus soutenu (rapport 4 pour 1) */
html.n4a2 .v52-trust-strip strong,
html.n4a2 #super-pouvoir .stat-value span { color: var(--coral-ink, #B83A0E) !important; }
html.n4a2 main > :not(#hero) .section-title em,
html.n4a2 main .v40-sims-header em,
html.n4a2 main .v53-howto-title em { color: #D94E1F !important; }
/* texte gris sur fond sable */
html.n4a2 .section-seo-etape p, html.n4a2 .section-seo-etape p strong { color: var(--ink-2, #33445C) !important; }
/* contrastes mesures sur les pixels affiches (controle/a11y-essai.cjs) */
html.n4a2 .news-ticker .nt-close { color: #fff !important; }
html.n4a2 #hero .gauge-card, html.n4a2 #hero .live-card { --fg-muted-light: rgba(10, 37, 64, .76); }
html.n4a2 #hero .gauge-card .gauge-head-r, html.n4a2 #hero .gauge-card [class*="gauge-scale"] span, html.n4a2 #hero .gauge-card [class*="gauge-labels"] span,
html.n4a2 #hero .live-card .live-label, html.n4a2 #hero .live-card .live-sub, html.n4a2 #hero .live-card .live-sub span { color: rgba(10, 37, 64, .76) !important; }
html.n4a2 #combien-coute .v39-tarifs-extras small, html.n4a2 #combien-coute .v39-tarifs-extras .v39-extras-foot { color: rgba(255, 255, 255, .78) !important; }
html.n4a2 #combien-coute .v39-tarifs-extras .sep { color: rgba(255, 255, 255, .78) !important; }
html.n4a2 #combien-coute .v44-elec-eyebrow { color: #FFB59A !important; }
html.n4a2 .site-footer .brand-eyebrow { color: rgba(255, 255, 255, .74) !important; }
html.n4a2 .site-footer .made-with { color: rgba(255, 255, 255, .74) !important; }
html.n4a2 #n4c-consent a { display: inline-block; min-height: 24px; line-height: 24px; }
/* bandeau du haut : cibles de 24 px sans changer la hauteur du bandeau (les marges negatives rendent les pixels ajoutes) */
html.n4a2 #news-ticker a { margin-top: -3.5px !important; margin-bottom: -3.5px !important; }
html.n4a2 #news-ticker .nt-close { margin-top: -3px !important; margin-bottom: -3px !important; }
