/* Ninon Démêle — feuille de style du site vitrine */

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3.woff2") format("woff2");
    font-weight: 200 900;
    font-display: swap;
}

:root {
    --navy: #0E2A47;
    --navy-deep: #0A1F35;
    --teal: #17607A;
    --teal-light: #7FC4D4;
    --ink: #1B2733;
    --ink-soft: #3A4A58;
    --ink-mute: #4A5B69;
    --ground: #F6F8F9;
    --white: #FFFFFF;
    --line: #E1E7EB;
    --field: #A9B8C3;
    --on-dark: #D6E3EC;
    --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
    --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h, 80px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--ground);
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); margin: 0; }
h1 { font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.12; }
h2 { font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.2; }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0; }
a { color: var(--teal); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: 8px 12px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.wrap-narrow { max-width: 860px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.align-start { align-self: flex-start; }

/* Boutons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 12px 24px; border-radius: 999px;
    font: inherit; font-weight: 600; text-decoration: none; text-align: center;
    border: 1.5px solid transparent; cursor: pointer;
}
.btn-accent { background: var(--teal); color: var(--white); }
.btn-accent:hover { background: var(--navy); color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--teal); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--teal-light); color: var(--navy); }

/* En-tête */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(14, 42, 71, .06); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-block: 16px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: .04em; color: var(--navy); }
.brand-sub { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.nav a:not(.btn) { color: var(--ink); font-weight: 600; text-decoration: none; padding: 10px 0; }
.nav a:not(.btn):hover { color: var(--teal); }


/* Hero */
.hero { background: var(--white); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; align-items: center; padding-block: 72px 88px; }
.hero .stack { gap: 22px; }
.kicker { color: var(--teal); font-weight: 600; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.note { font-size: .95rem; color: var(--ink-mute); }
.hero-img { width: 100%; border-radius: 20px; box-shadow: 0 24px 48px rgba(14, 42, 71, .12); }

/* Bandeau */
.band { background: var(--navy); color: var(--white); }
.band-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding-block: 28px; }
.band-item { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.band svg, .card svg { width: 30px; height: 30px; flex: none; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.band svg { stroke: var(--teal-light); }
.card svg { stroke: var(--teal); }

/* Sections */
.section { padding-block: 88px; }
.section-white { background: var(--white); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 44rem; }
.section-head p { color: var(--ink-soft); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card p { color: var(--ink-soft); }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps p { color: var(--ink-soft); }
.step-num { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--teal); }

/* Formules */
.pricing { align-items: stretch; }
.price { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.price p { color: var(--ink-soft); }
.price .btn { margin-top: auto; }
.price-amount { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--teal) !important; }
.price-featured { background: var(--navy); border-color: var(--navy); color: var(--white); }
.price-featured h3, .price-featured .price-amount { color: var(--white) !important; }
.price-featured p { color: var(--on-dark); }
.badge { align-self: flex-start; background: var(--teal-light); color: var(--navy); font-weight: 600; font-size: .85rem; padding: 4px 12px; border-radius: 999px; }

/* À propos */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: center; }
.about-grid p { color: var(--ink-soft); }
.about-photo { width: 100%; aspect-ratio: 4 / 5; max-height: 520px; object-fit: cover; border-radius: 20px; }

/* FAQ */
details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 24px; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: 1.1rem; min-height: 28px; }
details p { margin-top: 12px; color: var(--ink-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.muted-light { color: var(--on-dark); }
.link-light { color: var(--white); }
.link-light:hover { color: var(--teal-light); }
.form { background: var(--white); color: var(--ink); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
.opt { font-weight: 400; color: var(--ink-mute); }
.field input, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--field); border-radius: 10px; background: var(--white); color: var(--ink); }
.field textarea { resize: vertical; }
[aria-invalid="true"] { border-color: #B42318 !important; }
.field-err { color: #B42318; font-size: .92rem; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.check label { font-size: .95rem; color: var(--ink-soft); }
.alert { padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.alert-ok { background: #E3F2EC; color: #135C3A; }
.alert-err { background: #FDECEA; color: #8A1C12; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { align-self: flex-start; }

/* Pages de texte */
.prose { display: flex; flex-direction: column; gap: 14px; }
.prose h1 { margin-bottom: 12px; }
.prose h2 { font-size: 1.4rem; margin-top: 18px; }
.prose p { color: var(--ink-soft); }

/* Pied de page fixe en bas de l'écran */
body { padding-bottom: var(--footer-h, 56px); }
.site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--navy-deep); color: #C3D1DB; font-size: .88rem; box-shadow: 0 -2px 12px rgba(10, 31, 53, .18); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; padding-block: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: #C3D1DB; }
.site-footer a:hover { color: var(--white); }

/* Petits écrans : en-tête et pied de page plus compacts */
@media (max-width: 720px) {
    .header-row { padding-block: 10px; gap: 6px 12px; }
    .brand-name { font-size: 1.1rem; }
    .brand-sub { font-size: .7rem; }
    .nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; gap: 0 16px; }
    .nav a:not(.btn) { white-space: nowrap; padding: 8px 0; }
    .nav .btn { display: none; }
    .footer-row { justify-content: center; text-align: center; padding-block: 8px; font-size: .8rem; }
}

/* Accès discret à l'intranet */
.site-footer nav { align-items: center; }
.footer-lock { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; opacity: .7; }
.footer-lock:hover, .footer-lock:focus-visible { opacity: 1; background: rgba(255, 255, 255, .08); }
.footer-lock svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
