/* =========================================================================
   Doxeni - site vitrine (www.doxeni.com)
   Feuille de style unique, sans dependance externe : la CSP du front vitrine
   est en 'self' strict (cf. src/main/resources/www/nginx/default.conf).
   ========================================================================= */

:root {
    /* Palette derivee du logo : le bleu de marque est #105491 (echantillonne sur
       LOGO_DOXENI_CARRE.png). Les teintes sombres sont des declinaisons de ce bleu,
       et non un gris-bleu neutre, pour que le logo ne detonne pas sur la page. */
    --navy:        #0a2a4a;
    --ink:         #16222e;
    --ink-soft:    #4a5b6b;
    --line:        #dde5ed;
    --bg:          #ffffff;
    --bg-alt:      #f4f7fa;
    --accent:      #105491;
    --accent-dark: #0b3c6b;
    --accent-soft: #e7eff7;
    --radius:      12px;
    --wrap:        1120px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--accent-dark); }

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.12rem; }
h1 em { font-style: normal; color: var(--accent); }

p { margin: 0 0 1em; }

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

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--navy); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; }

.eyebrow {
    text-transform: uppercase; letter-spacing: .12em; font-size: .76rem;
    font-weight: 700; color: var(--accent); margin: 0 0 .5em;
}

.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }

/* Slogan de la marque : « Photographiez. Votre comptable a déjà tout reçu. »
   Posé sous le titre, il tient la promesse en une phrase - donc bleu de marque
   et corps intermediaire entre le h1 et le chapo, sans lui voler la vedette. */
.slogan {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -.01em;
    margin: -.2em 0 .8em;
    max-width: 34ch;
}

/* ───────────────────────── Boutons ───────────────────────── */

.btn {
    display: inline-block; padding: 13px 24px; border-radius: 8px;
    font-weight: 600; font-size: 1rem; text-decoration: none;
    border: 1px solid transparent; cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { padding: 8px 16px; font-size: .92rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); }

.section-dark .btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.section-dark .btn-ghost:hover { border-color: #fff; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1em; }

/* ───────────────────────── En-tete ───────────────────────── */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }

.brand {
    display: inline-flex; align-items: center; gap: 9px;
    font-weight: 700; font-size: 1.18rem; color: var(--navy); text-decoration: none;
    letter-spacing: -.01em;
}
/* L'en-tete porte le lockup complet (icone + « DOXENI ») : hauteur fixe, largeur
   auto pour ne pas ecraser le rapport 4,1:1 du fichier. */
.header-inner .brand img { height: 32px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.nav a.btn { color: #fff; }

.nav-toggle {
    display: none; width: 42px; height: 38px; border: 1px solid var(--line);
    border-radius: 8px; background: #fff; position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    position: absolute; left: 11px; width: 18px; height: 2px;
    background: var(--navy); content: ""; border-radius: 2px;
}
.nav-toggle-bar { top: 18px; }
.nav-toggle-bar::before { top: -6px; left: 0; }
.nav-toggle-bar::after  { top:  6px; left: 0; }

/* ───────────────────────── Hero ───────────────────────── */

.hero {
    padding: 84px 0 76px;
    background:
        radial-gradient(900px 420px at 12% -10%, var(--accent-soft), transparent 70%),
        linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
    border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-note { font-size: .88rem; color: var(--ink-soft); margin: 0; }

.hero-visual { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }

.card-doc, .card-data {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(13,27,42,.09);
}
.card-doc-head {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #d7dee5; }
.card-doc-name {
    margin-left: 6px; font-size: .7rem; color: var(--ink-soft);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-doc-body { padding: 16px 14px; display: grid; gap: 10px; }
.skel { height: 8px; border-radius: 4px; background: #eef2f5; }
.skel-lg { height: 14px; width: 62%; background: #e2e9ef; }
.skel-sm { width: 45%; }

.card-arrow { place-self: center; font-size: 1.4rem; color: var(--accent); font-weight: 700; }

.card-data-head {
    padding: 10px 14px; border-bottom: 1px solid var(--line);
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--accent);
}
.card-data dl { margin: 0; padding: 8px 14px 14px; }
.card-data dl > div {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .86rem;
}
.card-data dl > div:last-child { border-bottom: 0; }
.card-data dt { color: var(--ink-soft); margin: 0; }
.card-data dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); }
.card-data dd.strong { color: var(--accent); }

/* ───────────────────────── Sections ───────────────────────── */

/* L'en-tete est sticky (66px) : sans cette marge, cliquer une ancre du menu
   masque le titre de la section visee derriere l'en-tete. */
.section, .hero { scroll-margin-top: 76px; }

.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--navy); color: #ccdcea; }
.section-dark h2, .section-dark h3 { color: #fff; }
/* Le bleu de marque (#105491) sur le navy passe sous le seuil de contraste :
   on eclaircit l'eyebrow uniquement dans ce bloc. */
.section-dark .eyebrow { color: #7fb6e6; }
.section-dark p { color: #a5bdd4; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.pain h3 { color: var(--navy); }
.pain p { color: var(--ink-soft); margin: 0; }

.feature {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px;
}
.feature p { color: var(--ink-soft); margin: 0; font-size: .96rem; }
.feature-icon {
    width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft);
    display: grid; place-items: center; margin-bottom: 14px;
}
.feature-icon svg {
    width: 22px; height: 22px; fill: none; stroke: var(--accent-dark);
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: none; }
.steps li { position: relative; padding-top: 8px; }
.steps p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.step-num {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: var(--accent); color: #fff; font-weight: 700; font-size: .95rem;
    margin-bottom: 12px;
}

.profil {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 26px;
}
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 7px 0 7px 28px; color: var(--ink-soft); font-size: .96rem; }
.ticks li::before {
    content: ""; position: absolute; left: 4px; top: 15px;
    width: 11px; height: 6px; border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

.secu article { border-left: 2px solid var(--accent); padding-left: 18px; }

.cta { background: var(--accent-soft); text-align: center; }
.cta-inner { max-width: 680px; margin: 0 auto; }
.cta .lead { margin-left: auto; margin-right: auto; }
/* Même raison que le chapo : ces blocs sont bornés en largeur, donc il faut des
   marges auto pour qu'ils se centrent dans une section centrée (404, appel final). */
.cta .slogan { margin-left: auto; margin-right: auto; }
.cta .cta-row { justify-content: center; }

/* ───────────────────────── Pied de page ───────────────────────── */

.site-footer { background: var(--navy); color: #9db6cd; padding: 56px 0 24px; font-size: .93rem; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.footer-brand p { max-width: 42ch; margin: 12px 0 0; color: #8ba6c0; }
/* Signature de la marque sous le logo : en blanc, elle passe devant la phrase
   descriptive qui la suit - le bleu de marque serait illisible sur le navy. */
.footer-brand .footer-slogan { color: #fff; font-weight: 600; margin-top: 14px; }
.footer-brand .footer-slogan + p { margin-top: 6px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.footer-nav h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .8em; }
.footer-nav a { display: block; color: #9db6cd; text-decoration: none; padding: 4px 0; }
.footer-nav a:hover { color: #fff; }
.footer-legal {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
    font-size: .84rem;
}
.footer-legal p { margin: 0; }
.footer-legal a { color: #9db6cd; text-decoration: none; }

/* ───────────────────────── Responsive ───────────────────────── */

@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { grid-template-columns: 1fr; }
    .card-arrow { transform: rotate(90deg); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    .hero { padding: 56px 0 48px; }
    .section { padding: 56px 0; }
    .grid-2, .grid-3, .steps { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }

    .nav-toggle { display: block; }
    .nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: 8px 24px 20px;
    }
    .nav[hidden] { display: none; }
    .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav a.btn { margin-top: 14px; text-align: center; border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
