/* =====================================================================
   pages.css — complément multi-pages (MVC)
   Prolonge styles.css : sous-en-têtes, prose, cartes, formulaire, nav.
   Palette héritée : --brun --brun-clair --brun-fonce --creme --or ...
   ===================================================================== */

/* ---------- Anti-débordement horizontal (mobile) ----------
   Le menu mobile est fixé hors écran (translateX(100%)) ; sans overflow-x
   sur <html>, il élargit la page et le burger sort du champ à droite. */
html { overflow-x: hidden; }
body { overflow-x: hidden; }
.marquee, .hero, .subhero, section { max-width: 100%; }

/* ---------- Barre d'administration (visible si admin connecté) ---------- */
.lv-admin-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 3000;
    height: 38px;
    background: #241300;
    border-bottom: 2px solid var(--or);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 .8rem; gap: 1rem;
    font-size: .78rem;
    font-family: 'Quicksand', system-ui, sans-serif;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.lv-admin-bar { overflow: hidden; }
.lv-admin-bar__group { display: flex; align-items: center; gap: .2rem; min-width: 0; }
.lv-admin-bar__group:first-child { overflow-x: auto; scrollbar-width: none; }
.lv-admin-bar__group:first-child::-webkit-scrollbar { display: none; }
.lv-admin-bar__brand {
    display: flex; align-items: center; gap: .45rem;
    color: var(--or-clair); font-weight: 700; text-decoration: none;
    padding: 0 .7rem; height: 38px; border-right: 1px solid rgba(255,255,255,.1); margin-right: .3rem;
}
.lv-admin-bar__link {
    display: flex; align-items: center; gap: .4rem;
    color: rgba(255,255,255,.72); text-decoration: none;
    padding: .3rem .6rem; border-radius: 6px; white-space: nowrap; transition: background .15s, color .15s;
}
.lv-admin-bar__link:hover { background: rgba(255,255,255,.1); color: #fff; }
.lv-admin-bar__user { display: flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.55); padding: 0 .4rem; white-space: nowrap; }
.lv-admin-bar__logout {
    display: flex; align-items: center; gap: .4rem;
    color: rgba(255,255,255,.72); text-decoration: none;
    padding: .3rem .7rem; border-radius: 6px; transition: background .15s, color .15s;
}
.lv-admin-bar__logout:hover { background: rgba(220,60,50,.25); color: #ffb4ad; }

/* Décale le contenu quand la barre est présente */
body.has-admin-bar { padding-top: 38px; }
body.has-admin-bar #navbar { top: 38px; }
body.has-admin-bar .mobile-menu { top: 38px; }

@media (max-width: 760px) {
    .lv-admin-bar__link span, .lv-admin-bar__brand span, .lv-admin-bar__logout span { display: none; }
    .lv-admin-bar__link, .lv-admin-bar__logout { padding: .3rem .55rem; }
    .lv-admin-bar__user { display: none; }
}

/* ---------- Navigation multi-pages ---------- */
.nav-links a.is-active,
.nav-links a[aria-current="page"] {
    color: var(--or);
}
.nav-links a { position: relative; }
.nav-links a.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--or);
    border-radius: 2px;
}

/* Sur les sous-pages : nav opaque dès le chargement + logo visible */
body.page-sub #navbar {
    background: rgba(250, 246, 241, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(102, 51, 0, 0.08);
}
body.page-sub #navbar .logo img {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    filter: brightness(0) saturate(100%) invert(15%) sepia(80%) saturate(1200%) hue-rotate(15deg) brightness(90%);
}
body.page-sub .nav-links a { color: var(--brun-fonce); }
body.page-sub .nav-links a.is-active { color: var(--brun); }
body.page-sub .nav-links .nav-cta { color: #fff; }

/* ---------- Sous-en-tête (subhero) ---------- */
.subhero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding: 8rem 5% 3.5rem;
    background-image: var(--subhero-img);
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}
.subhero-slim { min-height: 42vh; background: linear-gradient(135deg, var(--brun) 0%, var(--brun-fonce) 100%); }
.subhero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(61,31,0,.35) 0%, rgba(61,31,0,.78) 100%);
}
.subhero-inner { position: relative; z-index: 2; max-width: 820px; width: 100%; }
.subhero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.08;
    margin: .6rem 0 1rem;
    font-weight: 700;
}
.subhero-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.65;
    max-width: 640px;
    color: rgba(255,255,255,.92);
}
.section-label.light { color: var(--or-clair); }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb {
    display: flex; align-items: center; gap: .55rem;
    font-size: .82rem; letter-spacing: .04em;
    color: rgba(255,255,255,.85);
    margin-bottom: .4rem;
}
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; transition: color .25s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: .6rem; opacity: .7; }
.breadcrumb span { color: var(--or-clair); }

/* ---------- Section prose ---------- */
.prose-section { padding: clamp(3rem, 7vw, 5.5rem) 5%; }
.prose-wrap { max-width: 760px; margin: 0 auto; }
.prose-wrap p {
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    line-height: 1.85;
    color: var(--brun-fonce);
    margin-bottom: 1.5rem;
}
.lead-drop::first-letter {
    font-family: 'Pacifico', cursive;
    font-size: 3.4rem;
    line-height: .8;
    color: var(--or);
    float: left;
    padding: .35rem .5rem 0 0;
}

/* ---------- Grille de tuiles pleine largeur (valeurs, points forts) ----------
   Pour les sections à 3 ou 4 cartes : occupe toute la largeur au lieu de
   la grille .services-grid (pensée pour 8 cartes en paires). */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

/* ---------- Divers accueil ---------- */
.about-cta { margin-top: 1.8rem; }
.about-cta .btn { margin: 0; }
.accent-quote { color: var(--brun-clair); font-size: 1.35rem; line-height: 1.5; }
.hero-kicker {
    display: inline-block;
    color: var(--or-clair);
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .6rem;
}

/* ---------- Bande citation / slogan ---------- */
.quote-band {
    background: linear-gradient(135deg, var(--brun) 0%, var(--brun-fonce) 100%);
    color: var(--creme);
    text-align: center;
    padding: clamp(3rem, 6vw, 4.5rem) 5%;
    display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
}
.quote-band p.script {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    color: var(--or-clair);
    max-width: 900px;
    line-height: 1.3;
}
.quote-band .btn { margin: 0; }

/* ---------- Bande appel à l'action ---------- */
.cta-band { padding: clamp(3rem, 6vw, 4.5rem) 5%; background: var(--creme-fonce); }
.cta-band-inner {
    max-width: 720px; margin: 0 auto; text-align: center;
    background: #fff; border-radius: 22px;
    padding: clamp(2rem, 5vw, 3.2rem);
    box-shadow: 0 25px 60px rgba(102,51,0,.09);
}
.cta-band-inner h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--brun-fonce); margin-bottom: .8rem; }
.cta-band-inner p { color: var(--brun-clair); line-height: 1.7; margin-bottom: 1.8rem; }
.cta-band-inner .hero-buttons { justify-content: center; }

/* ---------- Packs : bloc « gratuité de l'école » ---------- */
.packs-info { background: var(--creme-fonce); padding: clamp(3rem, 6vw, 4.5rem) 6%; }
.packs-info-inner { max-width: 1100px; margin: 0 auto; }
.packs-info-head { text-align: center; max-width: 720px; margin: 0 auto 2.2rem; }
.packs-info-head .section-label i { color: var(--or); margin-right: .3rem; }
.packs-info-head p { color: var(--brun-clair); line-height: 1.7; margin-top: .8rem; }
.packs-info-card { background: #fff; border: 1px solid var(--creme-fonce); border-radius: 16px; padding: 1.4rem; box-shadow: 0 12px 30px rgba(102,51,0,.05); }
.packs-info-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--or-clair); color: var(--brun); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: .9rem; }
.packs-info-card h3 { color: var(--brun-fonce); font-size: 1.02rem; margin-bottom: .4rem; }
.packs-info-card p { color: var(--brun-clair); line-height: 1.6; font-size: .92rem; }
.packs-info-src { text-align: center; color: var(--brun-clair); font-size: .82rem; margin-top: 1.8rem; font-style: italic; }

/* ---------- Note packs ---------- */
.packs-note {
    max-width: 720px; margin: 2.5rem auto 0;
    text-align: center; color: var(--brun-clair);
    font-size: .95rem; line-height: 1.6;
}
.packs-note i { color: var(--or); }

/* ---------- Page contact ---------- */
.contact-page { padding: clamp(3rem, 6vw, 5rem) 5%; }
.contact-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 2.5rem;
    max-width: 1100px; margin: 0 auto 3rem;
}
.contact-aside { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-main { background: #fff; border-radius: 22px; padding: clamp(1.8rem, 4vw, 2.8rem); box-shadow: 0 25px 60px rgba(102,51,0,.08); }
.contact-main .section-title { margin-bottom: 1.5rem; }

.contact-form .form-row { margin-bottom: 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.contact-form label { font-weight: 600; color: var(--brun-fonce); font-size: .92rem; }
.contact-form input,
.contact-form textarea {
    font-family: inherit; font-size: 1rem;
    padding: .85rem 1rem;
    border: 2px solid var(--creme-fonce);
    border-radius: 12px;
    background: var(--creme);
    color: var(--noir);
    transition: border-color .25s, box-shadow .25s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--or);
    box-shadow: 0 0 0 4px rgba(212,168,83,.18);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .has-error { border-color: #d9534f; background: #fdf3f2; }
.contact-form .btn { margin: .5rem 0 0; }
.form-privacy { margin-top: 1rem; font-size: .82rem; color: var(--brun-clair); display: flex; align-items: center; gap: .5rem; }
.form-alert { padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1.3rem; display: flex; align-items: center; gap: .6rem; font-size: .92rem; }
.form-alert-error { background: #fdf3f2; color: #a33; border: 1px solid #eccac8; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Horaires dans la carte (étroite) de la page contact : empilés, alignés,
   bordure visible sur fond blanc (le style d'origine visait un fond sombre). */
.contact-aside .contact-card h3 { margin-bottom: 1rem; }
.contact-aside .horaires-list { margin-top: .3rem; }
.contact-aside .horaires-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
    padding: .7rem 0;
    border-bottom: 1px solid var(--creme-fonce);
    font-size: .95rem;
}
.contact-aside .horaires-list li:last-child { border-bottom: none; }
.contact-aside .horaires-list .jour { color: var(--brun-fonce); font-weight: 600; }
.contact-aside .horaires-list .heures { color: var(--brun-clair); opacity: 1; }
.contact-aside .horaires-list .ferme { color: #c0392b; font-weight: 600; }

.contact-page .map-container {
    max-width: 1100px; margin: 0 auto;
    border-radius: 22px; overflow: hidden;
    box-shadow: 0 25px 60px rgba(102,51,0,.1);
    height: 420px;
}
.contact-page .map-container iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Flash ---------- */
.flash-stack { position: fixed; top: 90px; right: 20px; z-index: 1200; display: flex; flex-direction: column; gap: .6rem; max-width: 360px; }
.flash { padding: .9rem 1.2rem; border-radius: 12px; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.15); animation: flashIn .4s ease; }
.flash-success { background: #eaf7ee; color: #256b3a; border: 1px solid #b9e2c5; }
.flash-error { background: #fdf3f2; color: #a33; border: 1px solid #eccac8; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- Footer horaires ---------- */
.footer-hours { list-style: none; padding: 0; }
.footer-hours li { display: flex; flex-direction: column; margin-bottom: .7rem; font-size: .9rem; }
.footer-hours li span { opacity: .7; }
.footer-hours li strong.ferme { color: #ff8a8a; }

/* ---------- Pages d'erreur ---------- */
.error-hero { background: linear-gradient(135deg, var(--brun) 0%, var(--brun-fonce) 100%); text-align: center; align-items: center; }
.error-inner { margin: 0 auto; text-align: center; }
.error-inner .hero-buttons { justify-content: center; }
.error-code {
    font-family: 'Pacifico', cursive;
    font-size: clamp(4rem, 14vw, 8rem);
    color: var(--or);
    line-height: 1;
    display: block;
}

/* ---------- Mentions légales ---------- */
.legal-wrap { padding: clamp(2.5rem, 6vw, 4.5rem) 5%; background: var(--creme-fonce); }
.legal-paper {
    max-width: 880px; margin: 0 auto;
    background: #fff; border-radius: 18px;
    box-shadow: 0 25px 60px rgba(102,51,0,.08);
    padding: clamp(2rem, 5vw, 4rem);
    color: var(--brun-fonce);
}
.legal-paper h2 { color: var(--brun); margin: 2rem 0 .8rem; font-size: 1.25rem; }
.legal-paper h2:first-child { margin-top: 0; }
.legal-paper p { line-height: 1.8; color: var(--brun-clair); }
.legal-paper a { color: var(--brun); }
.legal-back { display: inline-flex; align-items: center; gap: .5rem; color: var(--brun-clair); text-decoration: none; font-weight: 600; }
.legal-back-wrap { margin-top: 2.5rem; }

/* =====================================================================
   CSS Coin — partenariat (charte bleu/vert CSS)
   ===================================================================== */
:root {
    --cc-blue-dark: #123a7a;
    --cc-blue: #0098db;
    --cc-green: #35c15a;
}

/* Bannière accueil */
.csscoin-band {
    background: linear-gradient(120deg, var(--cc-blue-dark) 0%, var(--cc-blue) 100%);
    color: #fff;
    padding: clamp(2rem, 5vw, 3rem) 5%;
}
.csscoin-band-inner {
    max-width: 1000px; margin: 0 auto;
    display: flex; align-items: center; gap: 1.8rem;
    flex-wrap: wrap; justify-content: center; text-align: center;
}
.csscoin-band img { width: 76px; height: 76px; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.csscoin-band-text { flex: 1 1 340px; text-align: left; }
.csscoin-band-text h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: .35rem; }
.csscoin-band-text p { color: rgba(255,255,255,.9); line-height: 1.55; }
.btn-csscoin {
    display: inline-flex; align-items: center; gap: .6rem;
    background: #fff; color: var(--cc-blue-dark);
    padding: .9rem 1.7rem; border-radius: 999px;
    font-weight: 700; text-decoration: none; white-space: nowrap;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.btn-csscoin:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.28); }

/* En-tête de la page CSS Coin — même structure photo que les autres pages,
   avec un voile bleu CSS Coin par-dessus l'image. */
/* Même alignement (bas-gauche) que les autres sous-en-têtes ; seul le voile change. */
.csscoin-hero .subhero-overlay { background: linear-gradient(180deg, rgba(18,58,122,.5) 0%, rgba(10,120,214,.8) 100%); }
.csscoin-logo { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 14px 40px rgba(0,0,0,.3); margin-bottom: 1rem; }

.csscoin-icon { background: linear-gradient(135deg, var(--cc-blue) 0%, var(--cc-green) 100%) !important; color: #fff !important; }
.csscoin-highlights { padding-top: 1rem; }

/* Section « lecture & santé » */
.csscoin-health { padding: clamp(3rem, 6vw, 5rem) 6%; background: var(--blanc); }
.csscoin-health-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.csscoin-health-text .section-title { margin-bottom: 1rem; }
.csscoin-health-intro { font-size: 1.12rem; font-weight: 600; color: var(--brun-fonce); line-height: 1.7; margin-bottom: 1.1rem; }
.csscoin-health-text p { color: var(--brun-clair); line-height: 1.8; margin-bottom: 1rem; }
.csscoin-health-cards { display: flex; flex-direction: column; gap: 1rem; }
.csscoin-health-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--creme); border: 1px solid var(--creme-fonce); border-radius: 14px; padding: 1.1rem 1.2rem; }
.csscoin-health-card .csscoin-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.csscoin-health-card h3 { font-size: 1rem; color: var(--brun-fonce); margin-bottom: .2rem; }
.csscoin-health-card p { font-size: .9rem; color: var(--brun-clair); line-height: 1.5; }
@media (max-width: 860px) { .csscoin-health-inner { grid-template-columns: 1fr; gap: 2rem; } }

/* Étapes */
.csscoin-steps { background: var(--creme-fonce); padding: clamp(3rem, 6vw, 4.5rem) 5%; }
.csscoin-steps-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.steps-list { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.steps-list li { background: #fff; border-radius: 18px; padding: 2rem 1.4rem; box-shadow: 0 15px 40px rgba(18,58,122,.08); position: relative; }
.step-num {
    width: 62px; height: 62px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: linear-gradient(135deg, var(--cc-blue) 0%, var(--cc-green) 100%);
    color: #fff; font-size: 1.4rem;
}
.step-num::before { counter-increment: step; content: counter(step); position: absolute; top: 1.2rem; right: 1.4rem; font-weight: 800; color: var(--cc-blue); opacity: .25; font-size: 1.6rem; }
.step-text { display: block; color: var(--brun-fonce); line-height: 1.55; }

/* Appel à l'action CSS Coin */
.csscoin-cta { background: linear-gradient(135deg, var(--cc-blue-dark) 0%, var(--cc-blue) 100%); color: #fff; text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 5%; }
.csscoin-cta-inner { max-width: 640px; margin: 0 auto; }
.csscoin-tagline { font-size: clamp(1.6rem, 4vw, 2.4rem); color: #fff; margin-bottom: .8rem; }
.csscoin-cta p:not(.script) { color: rgba(255,255,255,.9); margin-bottom: 1.6rem; }
.csscoin-cta .btn-csscoin { color: var(--cc-blue-dark); }

@media (max-width: 700px) {
    .steps-list { grid-template-columns: 1fr; }
    .csscoin-band-text { text-align: center; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .subhero { min-height: 52vh; }
}
