/* ===========================================================================
   feature.css — feuille de style commune aux pages « fonctionnalité »
   (feat/<service-code>.html). Voir jitelia-site/CLAUDE.md pour le gabarit.
   Aucune règle spécifique à une fonctionnalité ne doit atterrir ici.
   =========================================================================== */

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('fonts/fraunces.woff2') format('woff2');
}

@font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-weight: 400 600;
    font-display: swap;
    src: url('fonts/fraunces-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/inter.woff2') format('woff2');
}

@font-face {
    font-family: 'Instrument Serif';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/instrument-serif-italic.woff2') format('woff2');
}

:root {
    --olive: #6B7A4F;
    --olive-fonce: #4F5A3A;
    --olive-clair: #8FA67A;
    --terracotta: #C66B3D;
    --terracotta-fonce: #9D4F2A;
    --ocre: #D4A057;
    --brique: #A04A2E;
    --lin: #F5EFE6;
    --lin-paper: #FBF6EC;
    --blanc-casse: #FDFAF4;
    --encre: #2B1F1A;
    --taupe: #6B5D52;
    --taupe-fonce: #3D332B;
    --radius-card: 12px;
    --radius-button: 8px;
    --radius-pill: 999px;
    --shadow-card: 0 1px 3px rgba(43, 31, 26, .06), 0 8px 24px rgba(43, 31, 26, .04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--encre);
    background-color: var(--lin);
    background-image: radial-gradient(ellipse at 85% -10%, rgba(212, 160, 87, 0.10) 0%, transparent 45%),
    radial-gradient(ellipse at -10% 85%, rgba(107, 122, 79, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p {
    margin: 0;
}

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

/* ============ Wordmark ============ */
.wordmark {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--encre);
    white-space: nowrap;
    line-height: 1;
    display: inline-block;
    text-decoration: none;
    font-size: 34px;
}

.wordmark em {
    position: relative;
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    color: var(--terracotta);
}

.wordmark em::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    width: 0.85em;
    height: 0.30em;
    margin-bottom: -0.26em;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16'><rect x='9' y='2' width='3' height='6.5' fill='%23C66B3D' rx='0.4'/><path d='M3 14 L16 5 L29 14' stroke='%23C66B3D' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
}

/* ============ Header ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 239, 230, 0.88);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid rgba(43, 31, 26, 0.06);
}

.site-header__inner {
    max-width: 940px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-header__right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.back-link {
    font-size: 14px;
    color: var(--olive-fonce);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.back-link:hover {
    color: var(--terracotta);
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 20px;
    border-radius: var(--radius-button);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 80ms ease;
    white-space: nowrap;
    line-height: 1.2;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--terracotta);
    color: var(--blanc-casse);
}

.btn--primary:hover {
    background: var(--terracotta-fonce);
}

.btn--secondary {
    background: transparent;
    color: var(--olive-fonce);
    border-color: var(--olive);
}

.btn--secondary:hover {
    background: rgba(107, 122, 79, 0.08);
}

.btn--ghost-light {
    background: var(--blanc-casse);
    color: var(--olive-fonce);
}

.btn--ghost-light:hover {
    background: var(--lin);
}

/* ============ Fil d'Ariane ============ */
.crumbs {
    max-width: 940px;
    margin: 0 auto;
    padding: 26px 28px 0;
    font-size: 13.5px;
    color: var(--taupe);
}

.crumbs a {
    color: var(--taupe);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--terracotta);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.crumbs span {
    color: rgba(43, 31, 26, 0.3);
    padding: 0 6px;
}

/* ============ Statut (pastille réutilisable) ============ */
.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 6px 14px 6px 11px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--olive-clair);
    background: rgba(143, 166, 122, 0.14);
    color: var(--olive-fonce);
}

.status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--olive);
    flex-shrink: 0;
}

.status--soon {
    border-color: var(--ocre);
    background: rgba(212, 160, 87, 0.16);
    color: var(--brique);
}

.status--soon::before {
    background: var(--ocre);
}

.status--study {
    border-color: rgba(107, 93, 82, 0.4);
    background: rgba(107, 93, 82, 0.10);
    color: var(--taupe);
}

.status--study::before {
    background: var(--taupe);
}

/* ============ Hero de fonctionnalité ============ */
.feature-hero {
    max-width: 940px;
    margin: 0 auto;
    padding: 22px 28px 8px;
}

.feature-hero__eyebrow {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    color: var(--terracotta);
    font-size: 19px;
    margin-bottom: 14px;
}

.feature-hero h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: clamp(34px, 5.4vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    max-width: 800px;
}

.feature-hero__lede {
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.55;
    color: var(--taupe);
    max-width: 700px;
    margin-bottom: 24px;
}

.feature-hero__lede strong {
    color: var(--encre);
    font-weight: 600;
}

/* ============ Rangée d'actions du hero ============ */
/* Emplacement standard de l'activation, identique sur toutes les fiches : fin du hero,
   avant le bandeau de synthèse. Le bandeau reste un sommaire d'ancres internes et ne porte
   jamais d'action sortante. Maquette : doc/branding/feature-page-mockup.html */
.feature-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin-bottom: 6px;
}

.feature-hero__reassure {
    font-size: 14px;
    color: var(--taupe);
    line-height: 1.5;
    max-width: 46ch;
}

.feature-hero__reassure strong {
    color: var(--encre);
    font-weight: 600;
}

/* Fiche en construction : rien à activer, l'emplacement porte le recueil d'avis. Olive et
   non terracotta, parce que ce bouton n'ouvre pas l'application. */
.feature-hero__actions--soon .btn--primary {
    background: var(--olive);
}

.feature-hero__actions--soon .btn--primary:hover {
    background: var(--olive-fonce);
}

/* ============ Bandeau de synthèse ============ */
.feature-meta {
    max-width: 884px;
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(43, 31, 26, 0.08);
    border: 1px solid rgba(43, 31, 26, 0.08);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

@media (min-width: 800px) {
    .feature-meta {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Les cases sont des ancres vers les sections : elles servent de sommaire. */
.feature-meta__cell {
    display: block;
    background: var(--blanc-casse);
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    transition: background 160ms ease;
}

.feature-meta__cell:hover {
    background: var(--lin-paper);
}

.feature-meta__cell:hover .feature-meta__value {
    color: var(--terracotta-fonce);
}

.feature-meta__label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--taupe);
    margin-bottom: 6px;
}

.feature-meta__value {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.3;
    color: var(--encre);
    letter-spacing: -0.008em;
}

.feature-meta__value small {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: var(--taupe);
    letter-spacing: 0;
    margin-top: 3px;
}

/* ============ Sections numérotées ============ */
main.feature {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 28px 20px;
}

.fsection {
    padding: 52px 0 0;
    /* Le header est collant : sans cette marge, une ancre cache son propre titre. */
    scroll-margin-top: 84px;
}

.fsection__head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(43, 31, 26, 0.15);
}

.fsection__num {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--olive-clair);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.fsection:nth-of-type(2) .fsection__num { color: var(--terracotta); }
.fsection:nth-of-type(3) .fsection__num { color: var(--brique); }
.fsection:nth-of-type(4) .fsection__num { color: var(--ocre); }
.fsection:nth-of-type(5) .fsection__num { color: var(--olive); }
.fsection:nth-of-type(6) .fsection__num { color: var(--terracotta); }

.fsection h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: clamp(25px, 3.2vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.016em;
    color: var(--encre);
}

.fsection h3 {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin: 26px 0 8px;
}

.fsection p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--encre);
    max-width: 720px;
    margin-bottom: 14px;
}

.fsection p.muted {
    color: var(--taupe);
}

.fsection strong {
    font-weight: 600;
}

.fsection a {
    color: var(--terracotta);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.fsection a:hover {
    color: var(--terracotta-fonce);
}

/* ============ Listes à puces cochées / croix ============ */
.marklist {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 760px;
}

/* Puce en position absolue plutôt qu'en flex : le contenu des <li> mêle texte et
   <strong>, que flex transformerait en éléments séparés au lieu d'un paragraphe. */
.marklist li {
    position: relative;
    padding-left: 32px;
    font-size: 15.5px;
    line-height: 1.6;
}

.marklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(143, 166, 122, 0.22) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F5A3A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5 L10 17.5 L19 7'/></svg>") center / 12px 12px no-repeat;
}

.marklist--no li::before {
    background: rgba(160, 74, 46, 0.14) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A04A2E' stroke-width='3' stroke-linecap='round'><path d='M7 7 L17 17 M17 7 L7 17'/></svg>") center / 11px 11px no-repeat;
}

/* ============ Étapes numérotées ============ */
.steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 780px;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 26px 52px;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blanc-casse);
    border: 2px solid var(--olive-clair);
    color: var(--olive-fonce);
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps li::after {
    content: "";
    position: absolute;
    left: 15.5px;
    top: 36px;
    bottom: 4px;
    width: 1.5px;
    background: rgba(143, 166, 122, 0.45);
}

.steps li:last-child {
    padding-bottom: 0;
}

.steps li:last-child::after {
    display: none;
}

.steps__title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    padding-top: 4px;
}

.steps__body {
    font-size: 15px;
    line-height: 1.6;
    color: var(--taupe);
}

.steps__body strong {
    color: var(--encre);
    font-weight: 600;
}

/* ============ Tableau tarifaire ============ */
/* Une fonctionnalité facturée = une colonne. Le conteneur défile seul sur petit
   écran, la page ne défile jamais horizontalement. */
.price-table-wrap {
    max-width: 680px;
    margin: 4px 0 18px;
    overflow-x: auto;
    background: var(--blanc-casse);
    border: 1px solid rgba(43, 31, 26, 0.10);
    border-left: 3px solid var(--olive);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.price-table {
    width: 100%;
    min-width: 460px;
    border-collapse: collapse;
    text-align: left;
}

.price-table th,
.price-table td {
    padding: 14px 20px;
    border-bottom: 1px dashed rgba(43, 31, 26, 0.12);
    vertical-align: top;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
    border-bottom: none;
}

.price-table thead th {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--taupe);
    border-bottom: 1px solid rgba(43, 31, 26, 0.14);
    white-space: nowrap;
}

/* Seuls les intitulés de colonnes tarifaires restent insécables ; celui de la
   première colonne doit pouvoir se replier sur petit écran. */
.price-table thead th:first-child {
    white-space: normal;
}

.price-table thead th small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--taupe);
}

.price-table tbody th {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    color: var(--encre);
}

.price-table tbody th small {
    display: block;
    font-weight: 400;
    font-size: 13px;
    color: var(--taupe);
}

.price-table td {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: var(--olive-fonce);
    white-space: nowrap;
}

.price-table td small {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0;
    color: var(--taupe);
}

.price-table__trial td {
    color: var(--terracotta);
}

/* Ligne de total d'une fonctionnalité facturée en deux composantes : c'est le chiffre
   que le lecteur cherche, il doit se détacher des lignes qui le composent. La classe
   se pose sur le <tr>. Elle n'a de sens que pour des lignes d'UNE MÊME fonctionnalité :
   totaliser deux fonctionnalités dans un tableau leur imposerait une unité commune. */
.price-table__total {
    background: rgba(107, 122, 79, 0.07);
}

/* ============ Encart d'avertissement / note ============ */
.note {
    background: var(--lin-paper);
    border-left: 3px solid var(--ocre);
    border-radius: 6px;
    padding: 18px 22px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--encre);
    max-width: 760px;
    margin: 20px 0 24px;
}

.note strong {
    font-weight: 600;
}

/* ============ Bandeau d'appel à l'action ============ */
.cta {
    margin-top: 64px;
    background: linear-gradient(140deg, var(--olive) 0%, var(--olive-fonce) 70%, var(--taupe-fonce) 100%);
    color: var(--blanc-casse);
    padding: clamp(48px, 7vh, 76px) 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(212, 160, 87, 0.18), transparent 55%);
    pointer-events: none;
}

.cta__inner {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
}

.cta__eyebrow {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    color: var(--ocre);
    font-size: 19px;
    margin-bottom: 12px;
}

.cta__title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: clamp(27px, 3.6vw, 40px);
    line-height: 1.14;
    letter-spacing: -0.018em;
    margin-bottom: 16px;
    max-width: 720px;
}

.cta__title em {
    font-style: italic;
    color: var(--ocre);
}

.cta__body {
    font-size: 16.5px;
    line-height: 1.6;
    color: rgba(253, 250, 244, 0.85);
    max-width: 660px;
    margin-bottom: 26px;
}

.cta__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.cta__actions .btn--secondary {
    color: var(--blanc-casse);
    border-color: rgba(253, 250, 244, 0.45);
}

.cta__actions .btn--secondary:hover {
    background: rgba(253, 250, 244, 0.12);
}

/* ============ Footer ============ */
.site-footer {
    background: var(--lin-paper);
    padding: 32px 28px;
    border-top: 1px solid rgba(43, 31, 26, 0.06);
    text-align: center;
    font-size: 14px;
    color: var(--taupe);
}

.site-footer__inner {
    max-width: 940px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.site-footer .wordmark {
    font-size: 18px;
}

.site-footer__sep {
    color: rgba(43, 31, 26, 0.2);
}

.site-footer a {
    color: var(--terracotta);
    text-decoration: none;
    font-weight: 500;
}

.site-footer a.wordmark {
    color: var(--encre);
}

.site-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============ Mobile ============ */
@media (max-width: 640px) {
    .site-header__inner {
        padding: 12px 18px;
        gap: 10px;
    }

    .wordmark {
        font-size: 28px;
    }

    .site-header__right .back-link {
        display: none;
    }

    .crumbs {
        padding: 20px 20px 0;
    }

    .feature-hero {
        padding: 18px 20px 8px;
    }

    .feature-meta {
        margin-left: 20px;
        margin-right: 20px;
    }

    main.feature {
        padding: 0 20px 16px;
    }

    .cta__inner {
        padding: 0 20px;
    }

    /* Le tableau doit tenir dans les 350 px utiles : sans cela la dernière colonne
       part hors champ et le défilement horizontal passe inaperçu. */
    .price-table {
        min-width: 0;
    }

    /* Même raison : des en-têtes insécables pousseraient la colonne de prix hors champ. */
    .price-table thead th {
        white-space: normal;
    }

    .price-table th,
    .price-table td {
        padding: 12px 10px;
    }

    .price-table tbody th {
        font-size: 14px;
    }

    .price-table tbody th small,
    .price-table thead th small {
        font-size: 12px;
    }

    .price-table td {
        font-size: 18px;
    }
}
