/* Caravelle — feuille de style du site de présentation */

@font-face {
    font-family: 'Nunito Sans';
    src: url('/fonts/NunitoSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Nunito Sans';
    src: url('/fonts/NunitoSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Nunito Sans';
    src: url('/fonts/NunitoSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

:root {
    --navy:        #1F3A5F;
    --navy-deep:   #162943;
    --coral:       #F28482;
    --beige:       #E2DAC6;
    --paper:       #FBFAF7;
    --white:       #FFFFFF;
    --text:        #1A1A1A;
    --text-soft:   #4B5563;
    --muted:       #6B7280;
    --line:        #E7E4DC;
    --radius:      16px;
    --shell:       1040px;
    --prose:       660px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); }
img { max-width: 100%; height: auto; }

.shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* --- En-tête --- */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.site-header .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--navy);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 15px;
}
.brand img { width: 26px; }

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-size: 15px;
}
.site-nav a {
    color: var(--text-soft);
    text-decoration: none;
}
.site-nav a:hover { color: var(--navy); }
.site-nav a[aria-current="page"] {
    color: var(--navy);
    font-weight: 600;
}

/* --- Accroche --- */

.hero {
    padding: 72px 0 64px;
}
.hero .shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
    align-items: center;
}
.hero h1 {
    margin: 0 0 20px;
    font-size: 44px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--navy);
}
.hero h1 em {
    font-style: normal;
    color: var(--coral);
}
.hero p {
    margin: 0 0 16px;
    max-width: 34em;
    color: var(--text-soft);
    font-size: 18px;
}
.hero-figure { text-align: center; }
.hero-figure img { width: 100%; max-width: 260px; }

.eyebrow {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--coral);
}

/* --- Sections --- */

section { padding: 64px 0; }

.section-light { background: var(--paper); }
.section-navy  { background: var(--navy); color: var(--white); }

h2 {
    margin: 0 0 28px;
    font-size: 27px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--navy);
}
.section-navy h2 { color: var(--white); }

.lead {
    max-width: var(--prose);
    color: var(--text-soft);
    margin: 0 0 36px;
}
.section-navy .lead { color: var(--beige); }

/* Liste des fonctionnalités : titres en corail, pas de cartes */

.features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 48px;
}
.features h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: var(--coral);
}
.features p {
    margin: 0;
    font-size: 16px;
    color: var(--text-soft);
}

/* Étapes */

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}
.steps h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: var(--white);
}
.steps p {
    margin: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.78);
}

/* Fiche technique */

.about {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}
.about p { color: var(--text-soft); }
.about p:first-child { margin-top: 0; }

.specs {
    margin: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    font-size: 15px;
}
.specs dt {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--navy);
    margin-top: 16px;
}
.specs dt:first-child { margin-top: 0; }
.specs dd {
    margin: 2px 0 0;
    color: var(--text-soft);
}

/* --- Pages de contenu (mentions, confidentialité) --- */

.page-head {
    padding: 48px 0 8px;
}
.page-head .shell { max-width: 780px; }
.page-head h1 {
    margin: 0 0 6px;
    font-size: 32px;
    letter-spacing: -0.02em;
    color: var(--navy);
}
.page-head p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.doc { padding: 28px 0 72px; }
.doc .shell { max-width: 780px; }

.doc-intro {
    max-width: var(--prose);
    color: var(--text-soft);
    margin: 8px 0 28px;
}

.block {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 18px;
}
.block h2 {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
}
.block p {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--text-soft);
}
.block p:last-child { margin-bottom: 0; }

.block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.block ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--text-soft);
}
.block ul li:last-child { margin-bottom: 0; }
.block ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
}

.contact-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(31, 58, 95, 0.07);
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    font-size: 15px;
}

/* --- Pied de page --- */

.site-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.72);
    padding: 44px 0 36px;
    font-size: 15px;
}
.site-footer .shell {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-brand .tile {
    background: var(--white);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-brand .tile img { width: 24px; }
.footer-brand strong {
    display: block;
    color: var(--white);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 14px;
}
.footer-brand span { font-size: 14px; }

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-legal {
    max-width: var(--shell);
    margin: 30px auto 0;
    padding: 18px 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

/* --- Adaptation mobile --- */

@media (max-width: 860px) {
    .hero .shell,
    .about {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero-figure { order: -1; text-align: left; }
    .hero-figure img { max-width: 160px; }
    .features,
    .steps { grid-template-columns: 1fr; }
    .hero h1 { font-size: 34px; }
    section { padding: 48px 0; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .site-header .shell {
        justify-content: flex-start;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .site-nav { gap: 8px 16px; font-size: 14px; }
    .hero { padding: 44px 0 40px; }
    .hero h1 { font-size: 29px; }
}

/* --- Connexion au back-office --- */

body.auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-box { width: 100%; max-width: 300px; }

.auth-logo { display: block; margin: 0 auto 16px; width: 44px; }

.auth-box h1 {
    margin: 0 0 28px;
    font-size: 18px;
    text-align: center;
    color: var(--navy);
}

.auth-box label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-soft);
}

.auth-box input {
    width: 100%;
    margin-bottom: 16px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--text);
    font: inherit;
    font-size: 15px;
}
.auth-box input:focus {
    outline: none;
    border-color: var(--navy);
}

.auth-box button {
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 10px;
    background: var(--navy);
    color: var(--white);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.auth-box button:hover { background: var(--navy-deep); }

.auth-error {
    margin: 0 0 18px;
    font-size: 14px;
    color: #A03A38;
}

.auth-back {
    display: block;
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}
