/* ══════════════════════════════════════════════════════
   CODING HOST ACADÉMIE — style.css v4 (thème clair)
   Palette : Blanc cassé #fbfaf8 / Or signal #b8791f / Bleu pétrole #1f6f6b
   Display : Space Grotesk · Corps : Inter · Labels : IBM Plex Mono
   Design plat, corporate-formation, peu d'effets "glow".
   ══════════════════════════════════════════════════════ */

:root {
    --bg:        #fbfaf8;
    --bg-alt:    #f2f0eb;
    --surface:   #ffffff;
    --surface-2: #f2f0eb;
    --border:    rgba(15,16,20,.10);
    --border-2:  rgba(15,16,20,.18);

    --gold:      #b8791f;
    --gold-soft: rgba(184,121,31,.12);
    --petrol:    #1f6f6b;
    --petrol-soft: rgba(31,111,107,.10);

    --text:   #16171b;
    --muted:  #565c66;
    --dim:    #878d97;

    --radius:    10px;
    --radius-lg: 16px;
    --nav-h:     68px;

    --font-display: "Space Grotesk", sans-serif;
    --font-body:    "Inter", sans-serif;
    --font-mono:    "IBM Plex Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.text-muted-2 { color: var(--muted) !important; }
.text-gold { color: var(--gold); }
.text-petrol { color: var(--petrol); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.w-100 { width: 100%; }
.small, small { font-size: .85rem; }
.mt-2 { margin-top: .5rem; } .mt-3 { margin-top: 1rem; } .mb-4 { margin-bottom: 1.5rem; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; color: var(--text); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
    letter-spacing: .09em; text-transform: uppercase; color: var(--gold);
    margin-bottom: 10px;
}
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.18; margin-bottom: 14px; letter-spacing: -0.01em; }
.section-intro { font-size: .97rem; line-height: 1.65; color: var(--muted); max-width: 640px; margin-bottom: 36px; }

.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 27px; border-radius: 100px;
    font-family: var(--font-body); font-size: .89rem; font-weight: 600; letter-spacing: .01em;
    cursor: pointer; border: 1.5px solid transparent;
    transition: background .22s ease, border-color .22s ease, color .22s ease, transform .18s ease, box-shadow .22s ease;
    white-space: nowrap;
}
.btn-gold, .btn-petrol {
    background: var(--text); color: #ffffff; border-color: var(--text);
}
.btn-gold:hover, .btn-petrol:hover {
    background: #33353c; border-color: #33353c;
}
.btn-outline {
    background: transparent; color: var(--text); border-color: var(--border-2);
}
.btn-outline:hover {
    border-color: var(--text); background: var(--text); color: #ffffff;
}
.btn-cta { padding: 14px 30px; font-size: .96rem; }
.btn-sm { padding: 9px 18px; font-size: .82rem; }
.btn:active { transform: scale(.98); }

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--border-2); transform: translateY(-2px); }

/* ── NAV ──────────────────────────────────────────── */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--nav-h); background: rgba(251,250,248,.85); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); transition: background .3s;
}
.site-nav.scrolled { background: rgba(251,250,248,.98); box-shadow: 0 1px 0 var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 100%; }
.nav-brand { display: flex; align-items: center; flex-shrink: 0; margin-right: 44px; }
.nav-logo-img { height: 38px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 22px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { font-size: .85rem; font-weight: 500; color: var(--muted); transition: color .2s; display: flex; align-items: center; gap: 4px; }
.nav-menu > li > a:hover, .nav-menu > li.active > a { color: var(--text); }
.nav-dropdown {
    position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
    background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius);
    padding: 10px; min-width: 220px;
    display: flex; flex-direction: column; gap: 2px;
    opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(6px);
    transition: opacity .18s, transform .18s;
    box-shadow: 0 14px 30px rgba(15,16,20,.12);
}
.nav-menu > li:hover .nav-dropdown { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.nav-dropdown a { font-size: .84rem; color: var(--muted); padding: 8px 12px; border-radius: 6px; }
.nav-dropdown a:hover { background: var(--surface-2); color: var(--gold); }
.nav-toggler { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggler span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; display: block; transition: .3s; }
.nav-cta { padding: 11px 22px; font-size: .85rem; font-weight: 700; box-shadow: 0 2px 8px rgba(22,23,27,.18); }
.nav-cta:hover { box-shadow: 0 4px 14px rgba(22,23,27,.26); }

/* ── BREADCRUMB (pages internes) ─────────────────── */
.breadcrumb { padding: calc(var(--nav-h) + 22px) 0 0; }
.breadcrumb-inner { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--dim); font-family: var(--font-mono); }
.breadcrumb-inner a { color: var(--muted); }
.breadcrumb-inner a:hover { color: var(--gold); }

/* ── HERO générique (pages internes) ─────────────── */
.page-hero { padding: 30px 0 56px; border-bottom: 1px solid var(--border); }
.page-hero .eyebrow { color: var(--petrol); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15; margin-bottom: 16px; letter-spacing: -.01em; }
.page-hero p { font-size: 1rem; color: var(--muted); max-width: 680px; line-height: 1.6; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 26px; }
.page-hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.page-hero-meta span.label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.page-hero-meta span.value { font-size: 1rem; font-weight: 600; color: var(--text); }
.page-hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ── HOME HERO ────────────────────────────────────── */
.home-hero { padding: 108px 0 60px; position: relative; overflow: hidden; }
.home-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.home-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1.12; letter-spacing: -.015em; margin-bottom: 20px; }
.home-hero-accent { color: var(--gold); }
.home-hero p.lead { font-size: 1.03rem; color: var(--muted); line-height: 1.65; max-width: 520px; margin-bottom: 28px; }
.home-hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.home-hero-photo {
    position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
    aspect-ratio: 4/5; background: linear-gradient(160deg, var(--surface-2), var(--bg-alt));
    display: flex; align-items: center; justify-content: center;
}
.home-hero-photo i { font-size: 2.6rem; color: rgba(15,16,20,.16); }
.home-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-hero-photo-tag {
    position: absolute; bottom: 16px; left: 16px; right: 16px;
    background: rgba(251,250,248,.85); border: 1px solid var(--border-2); border-radius: 8px;
    padding: 10px 14px; font-size: .8rem; color: var(--muted); backdrop-filter: blur(6px);
}
/* Remplissage automatique : dès qu'une photo est trouvée, has-photo masque l'icône placeholder. */
.has-photo { background: none !important; }
.has-photo i, .has-photo .home-hero-photo-tag { display: none !important; }
[data-auto-photo] img, [data-auto-gallery] .album-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; border-radius: var(--radius-lg); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ── CARROUSEL AUTOMATIQUE (hero) ─────────────────── */
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-carousel-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 6px; }
.hero-carousel-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background .2s, transform .2s; }
.hero-carousel-dots .dot.active { background: #ffffff; transform: scale(1.3); }

/* ── STAT BAR ─────────────────────────────────────── */
.stat-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.stat-bar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 30px 20px; text-align: center; border-right: 1px solid var(--border); }
.stat-cell:last-child { border-right: none; }
.stat-cell .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--gold); display: block; }
.stat-cell .label { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ── DUAL CTA (Enfants / Adultes) ─────────────────── */
.dual-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dual-cta-card {
    padding: 34px 30px; border-radius: var(--radius-lg); border: 1px solid var(--border);
    background: var(--surface); position: relative; overflow: hidden;
}
.dual-cta-card.enfants { border-color: rgba(217,154,61,.35); }
.dual-cta-card.adultes { border-color: rgba(43,143,137,.35); }
.dual-cta-card i.big-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.dual-cta-card.enfants i.big-icon { color: var(--gold); }
.dual-cta-card.adultes i.big-icon { color: var(--petrol); }
.dual-cta-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.dual-cta-card p { color: var(--muted); font-size: .92rem; line-height: 1.55; margin-bottom: 22px; }

/* ── GRID DE CARTES (formations / cours) ──────────── */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.course-card { display: flex; flex-direction: column; gap: 12px; }
.course-card .tag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--petrol); }
.course-card h3 { font-size: 1.05rem; }
.course-card p { font-size: .87rem; color: var(--muted); line-height: 1.5; flex: 1; }
.course-card .meta-row { display: flex; gap: 14px; font-size: .78rem; color: var(--dim); flex-wrap: wrap; }
.course-card .meta-row span { display: flex; align-items: center; gap: 5px; }
.course-card .meta-row i { color: var(--gold); }

/* ── COURSE TEMPLATE (pages cours individuelles) ──── */
.course-layout { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.course-section-title { font-size: 1.1rem; margin: 34px 0 14px; }
.course-section-title:first-child { margin-top: 0; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.skill-pill { display: flex; align-items: center; gap: 8px; font-size: .87rem; color: var(--muted); padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.skill-pill i { color: var(--gold); }
.projects-list { display: flex; flex-direction: column; gap: 10px; }
.project-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.project-row i { color: var(--petrol); margin-top: 2px; }
.project-row span { font-size: .88rem; color: var(--muted); }

.course-sidebar { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.sidebar-card { padding: 24px; }
.sidebar-fact { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: .87rem; }
.sidebar-fact:last-of-type { border-bottom: none; }
.sidebar-fact span:first-child { color: var(--dim); }
.sidebar-fact span:last-child { font-weight: 600; }

/* ── FAQ ACCORDION ────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; font-size: .92rem; font-weight: 600; }
.faq-q i { color: var(--gold); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a-inner { padding: 0 18px 16px; font-size: .87rem; color: var(--muted); line-height: 1.6; }
.faq-item.open .faq-a { max-height: 260px; }

/* ── CRÉNEAUX ─────────────────────────────────────── */
.creneau-tabs { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.creneau-tab { padding: 10px 20px; border-radius: 100px; border: 1px solid var(--border-2); font-size: .87rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s; }
.creneau-tab.active, .creneau-tab:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.creneau-panel { display: none; }
.creneau-panel.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.creneau-card { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.creneau-card .time { font-family: var(--font-mono); font-size: .78rem; color: var(--petrol); }
.creneau-card h4 { font-size: .98rem; }
.creneau-card p { font-size: .84rem; color: var(--muted); }

/* ── TARIFS ───────────────────────────────────────── */
.tarif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.tarif-card { text-align: center; padding: 30px 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; }
.tarif-card.featured { border-color: rgba(217,154,61,.4); }
.tarif-badge { position: absolute; top: -11px; background: var(--gold); color: #191106; font-size: .7rem; font-weight: 700; padding: 4px 13px; border-radius: 100px; }
.tarif-price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--gold); line-height: 1; }
.opco-note { display: flex; align-items: flex-start; gap: 14px; background: var(--petrol-soft); border: 1px solid rgba(43,143,137,.35); border-radius: var(--radius-lg); padding: 22px 26px; margin-top: 30px; }
.opco-note i { color: var(--petrol); font-size: 1.5rem; flex-shrink: 0; }
.opco-note p { font-size: .88rem; color: var(--muted); line-height: 1.55; }

/* ── QUI SOMMES-NOUS ──────────────────────────────── */
.story-block { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 60px; }
.story-photo { aspect-ratio: 4/5; background: linear-gradient(160deg, var(--surface-2), var(--bg-alt)); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; max-width: 420px; margin: 0 auto; }
.story-photo i { font-size: 2.4rem; color: rgba(15,16,20,.16); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.value-card { padding: 22px; text-align: left; }
.value-card i { font-size: 1.4rem; color: var(--gold); margin-bottom: 10px; display: block; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.team-card { padding: 24px; }
.team-avatar { width: 76px; height: 76px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 1.6rem; color: var(--gold); }

/* ── MÉDIAS ───────────────────────────────────────── */
.album-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.album-tab { padding: 10px 18px; border-radius: 100px; border: 1px solid var(--border-2); font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s; }
.album-tab.active, .album-tab:hover { border-color: var(--petrol); color: var(--petrol); background: var(--petrol-soft); }
.album-panel { display: none; }
.album-panel.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.album-photo { aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(160deg, var(--surface-2), var(--bg-alt)); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.album-photo i { font-size: 1.8rem; color: rgba(15,16,20,.16); }
.album-photo .cap { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(15,16,20,.72), transparent); padding: 20px 12px 10px; font-size: .78rem; color: #f2f0eb; }

/* ── FORM / RÉSERVATION ───────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 44px; align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.contact-detail { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.contact-detail i { color: var(--gold); }
.form-card { padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.form-input {
    background: var(--bg-alt); color: var(--text); border: 1px solid var(--border-2); border-radius: 8px;
    padding: 11px 13px; font-family: var(--font-body); font-size: .87rem; outline: none;
    transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form-input::placeholder { color: var(--dim); }
.form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
select.form-input option { background: var(--surface); }
textarea.form-input { resize: vertical; }
.form-hint { font-size: .78rem; color: var(--dim); margin-top: -6px; margin-bottom: 14px; }

/* ── FOOTER ───────────────────────────────────────── */
.site-footer { background: var(--bg-alt); padding: 56px 0 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; }
.footer-logo { height: 36px; width: auto; margin-bottom: 10px; }
.footer-heading { font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links ul li a { font-size: .84rem; color: var(--muted); transition: color .2s; }
.footer-links ul li a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; gap: 9px; }
.footer-contact a { font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.footer-contact a:hover { color: var(--gold); }
.footer-contact i { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; text-align: center; font-size: .8rem; color: var(--dim); }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1060px) {
    .home-hero-grid { grid-template-columns: 1fr; }
    .home-hero-photo { max-width: 420px; }
    .course-layout { grid-template-columns: 1fr; }
    .course-sidebar { position: static; }
    .story-block { grid-template-columns: 1fr; }
    .stat-bar-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-cell:nth-child(2) { border-right: none; }
}
@media (max-width: 900px) {
    .dual-cta { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-toggler { display: flex; }
    .nav-menu {
        position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; overflow-y: auto;
        background: rgba(251,250,248,.99); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0;
        transform: translateY(-100%); opacity: 0; pointer-events: none; transition: .3s;
        border-bottom: 1px solid var(--border);
    }
    .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav-menu li { width: 100%; }
    .nav-menu > li > a { padding: 14px 24px; border-bottom: 1px solid var(--border); font-size: .92rem; }
    .nav-dropdown { position: static; transform: none; opacity: 1; pointer-events: all; display: none; box-shadow: none; border: none; border-radius: 0; background: var(--bg-alt); margin: 0 12px; }
    .nav-menu > li.open .nav-dropdown { display: flex; }
    .nav-menu li:last-child a.btn { margin: 14px 24px; text-align: center; justify-content: center; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .section { padding: 56px 0; }
    .stat-bar-inner { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}