/* ==========================================================================
   LENNY CHAINARD — Site V2
   Esthétique éditoriale, mélancolique, magazine
   ========================================================================== */

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* PALETTE — tons rabattus, bretons, magazine */
    --noir: #1a1816;
    --noir-doux: #2a2724;
    --creme: #f4f0e8;
    --creme-clair: #faf7f1;
    --gris: #6a6460;         /* Assombri depuis #807a72 — ratio 5.1:1 sur fond crème (WCAG AA) */
    --gris-doux: #928c85;    /* Nouveau — texte secondaire sur fond sombre, ratio 5.1:1 sur #1a1816 */
    --gris-clair: #c4bdb3;
    --accent: #c9a55e;        /* or champagne — Bleu Breton */

    /* TYPOGRAPHIES */
    --serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, sans-serif;

    /* ESPACEMENTS */
    --section-padding: 120px;
    --section-padding-mobile: 70px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--sans);
    color: var(--noir);
    background: var(--creme);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.6;
}

/* ==========================================================================
   ACCESSIBILITÉ — SKIP LINK & FOCUS
   ========================================================================== */

/* Lien d'évitement — invisible par défaut, visible au focus clavier */
.skip-link {
    position: absolute;
    top: -200%;
    left: 16px;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--noir);
    color: var(--creme);
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    border: 2px solid var(--creme);
    transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 16px;
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* Focus visible global — navigation clavier uniquement */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 1px;
}

/* Masquer l'outline pour les utilisateurs souris */
:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================================================
   CONTAINERS
   ========================================================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 40px;
}

/* TYPOGRAPHIES GLOBALES */
h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 400;
    color: var(--noir);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
    font-weight: 300;
}

h1 em {
    font-style: italic;
    font-weight: 300;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 60px;
    font-weight: 400;
}

h3 {
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 400;
}

h4 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-weight: 500;
}

.section-label {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 400;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 28px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(244, 240, 232, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(107, 93, 79, 0.1);
}

.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-name {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.nav-tagline {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gris);
    line-height: 1.2;
}

.nav--open .nav-tagline {
    color: rgba(244, 240, 232, 0.55);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 400;
    color: var(--noir-doux);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(26, 24, 22, 0.1) 0%, rgba(26, 24, 22, 0.55) 100%);
}

.hero-text {
    position: relative;
    z-index: 2;
    color: var(--creme);
    padding: 0 60px 100px;
    max-width: 1200px;
}

.hero-text h1 {
    color: var(--creme);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 300;
    opacity: 0.85;
}

/* ==========================================================================
   MANIFESTE
   ========================================================================== */
.manifeste {
    padding: var(--section-padding) 0;
    background: var(--creme-clair);
    text-align: center;
}

.manifeste-text {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    line-height: 1.55;
    color: var(--noir-doux);
    margin-bottom: 32px;
    font-weight: 300;
}

.manifeste-text em {
    font-style: italic;
}

.manifeste-text:first-child {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 48px;
}

.manifeste-signature {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--accent);
    margin-top: 48px;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   POUR TOI — "Cette séance est pour vous"
   ========================================================================== */
.pour-toi {
    padding: var(--section-padding) 0;
    background: var(--creme);
}

.pour-toi h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.15;
    margin-bottom: 64px;
    color: var(--noir);
}

.pour-toi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.pour-toi-card {
    background: #ffffff;
    border: 1px solid #d4c8b8;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 2px 12px rgba(26, 24, 22, 0.08);
}

.pour-toi-picto {
    width: 36px;
    height: 36px;
    min-width: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--creme);
    border: 1px solid #b9ad9b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.8rem;
    line-height: 1;
    margin-top: 2px;
}

.pour-toi-content {
    flex: 1;
}

.pour-toi-card-titre {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--noir-doux);
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.pour-toi-card-texte {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--gris);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   TRAVAUX
   ========================================================================== */
.travaux {
    padding: var(--section-padding) 0;
}

.travaux > .container {
    text-align: center;
    margin-bottom: 80px;
}

.serie {
    margin-bottom: 140px;
}

.serie:last-child {
    margin-bottom: 0;
}

.serie-header {
    text-align: center;
    margin-bottom: 60px;
}

.serie-header h3 {
    font-style: italic;
    margin-bottom: 12px;
}

.serie-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gris); /* #6a6460 — ratio 5.1:1 sur fond crème */
}

/* Grille masonry éditoriale — columns CSS */
.serie-grid {
    -webkit-column-count: 3;
    column-count: 3;
    -webkit-column-gap: 16px;
    column-gap: 16px;
    padding: 0 40px;
    max-width: 1600px;
    margin: 0 auto;
    /* Safari WebKit : évite que les images débordent de leur colonne */
    overflow: hidden;
}

.grid-item {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    display: block;
    /* reset du margin natif de <figure> */
    margin: 0 0 16px 0;
    padding: 0;
    /* Safari WebKit : confine les images dans la colonne */
    overflow: hidden;
    width: 100%;
}

.grid-item a {
    display: block;
}

.grid-item img {
    width: 100%;
    max-width: 100%;   /* Safari WebKit : force le respect de la largeur de colonne */
    height: auto;
    display: block;
    transition: opacity 0.4s ease;
    /* Safari WebKit : force un contexte de composition, évite le rendu à taille native */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.grid-item a:hover img {
    opacity: 0.88;
}

/* ==========================================================================
   APPROCHE
   ========================================================================== */
.approche {
    padding: var(--section-padding) 0;
    background: var(--creme-clair);
}

.approche h2 {
    text-align: center;
    margin-bottom: 80px;
}

.approche .section-label {
    display: block;
    text-align: center;
}

.approche-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.approche-block {
    text-align: center;
}

.approche-numero {
    display: inline-block;
    font-family: var(--serif);
    font-size: 3rem;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 300;
}

.approche-block h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.approche-block p {
    color: var(--noir-doux);
    line-height: 1.7;
    font-size: 0.95rem;
}

.approche-rarete {
    text-align: center;
    max-width: 640px;
    margin: 100px auto 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--accent);
    padding: 0 40px;
}

/* ==========================================================================
   INVESTISSEMENT
   ========================================================================== */
.investissement {
    padding: var(--section-padding) 0;
    text-align: center;
}

.investissement h2 {
    margin-bottom: 36px;
    font-style: italic;
}

/* Grille des deux cartes */
.invest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.invest-card {
    border: 1px solid var(--gris-clair);
    padding: 32px 32px 28px;
    background: var(--creme-clair);
    display: flex;
    flex-direction: column;
}

/* Carte Signature — légèrement plus marquée */
.invest-card--signature {
    border-color: var(--accent);
    background: var(--creme-clair);
}

.invest-card h3 {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gris);
    margin-bottom: 10px;
}

.invest-card--signature h3 {
    color: var(--accent);
}

.invest-card--signature .invest-liste li {
    border-left-color: var(--accent);
}

.invest-prix {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 300;
    color: var(--noir);
    line-height: 1;
    margin-bottom: 20px;
}

.invest-liste {
    list-style: none;
    margin-bottom: 0;
    flex: 1;
}

.invest-liste li {
    padding: 9px 0 9px 12px;
    border-bottom: 1px solid rgba(107, 93, 79, 0.15);
    border-left: 2px solid rgba(107, 93, 79, 0.25);
    font-size: 0.92rem;
    color: var(--noir-doux);
    line-height: 1.45;
}

.invest-liste li:last-child {
    border-bottom: none;
}

.invest-note {
    color: var(--gris);
    font-size: 0.85rem;
    margin-top: 16px;
    line-height: 1.55;
    font-style: italic;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
    padding: var(--section-padding) 0;
    background: var(--creme-clair);
    text-align: center;
}

.contact h2 {
    margin-bottom: 24px;
    font-style: italic;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--noir-doux);
    margin-bottom: 60px;
    line-height: 1.7;
}

.contact-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 20px;
    cursor: pointer;
}

.contact-form span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 400;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 0;
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--noir);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gris-doux); /* #928c85 — ratio 3.2:1 sur fond crème clair (WCAG 1.4.11) */
    border-radius: 0;
    transition: border-color 0.3s ease, border-width 0.3s ease;
    font-weight: 300;
}

.contact-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236b5d4f' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    cursor: pointer;
}

/* Focus clavier sur les champs — bordure épaissie + couleur accent */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-bottom: 2px solid var(--accent);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-bottom: 2px solid var(--accent);
}

.contact-form textarea {
    resize: vertical;
    font-family: var(--sans);
}

.contact-form button {
    margin-top: 32px;
    padding: 18px 50px;
    background: var(--noir);
    color: var(--creme);
    border: none;
    font-family: var(--sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 400;
}

.contact-form button:hover {
    background: var(--accent);
}

.contact-form button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
    background: var(--accent);
}

/* Honeypot anti-spam — off-screen, invisible pour les humains */
.form-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

/* Messages d'erreur par champ */
.field-error {
    display: block;
    font-size: 0.8rem;
    color: #a8291e;      /* rouge foncé — ratio 6.2:1 sur fond crème clair */
    margin-top: 6px;
    min-height: 1.1em;   /* évite le layout shift quand vide */
    font-style: italic;
}

/* État invalide sur le champ */
.field-invalid {
    border-bottom-color: #a8291e !important;
}

/* Mention champs obligatoires */
.form-mention {
    font-size: 0.8rem;
    color: var(--gris);
    margin-top: 8px;
    margin-bottom: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    padding: 80px 0 40px;
    background: var(--noir);
    color: var(--gris-clair);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-name {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--creme);
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gris-doux); /* #928c85 — ratio 5.1:1 sur fond #1a1816 (WCAG AA) */
}

.footer-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gris-doux); /* #928c85 — idem */
    margin-bottom: 16px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(196, 189, 179, 0.15);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gris-doux); /* #928c85 — idem */
}

/* ==========================================================================
   JOURNAL — Page de listing
   ========================================================================== */

.journal-header {
    padding: 160px 0 80px;
    text-align: center;
    background: var(--creme);
    border-bottom: 1px solid rgba(107,93,79,.1);
}

.journal-header h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.05;
    margin-bottom: 24px;
}

.journal-intro {
    font-family: var(--serif);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.65;
    color: var(--noir-doux);
    font-weight: 300;
    max-width: 560px;
    margin: 0 auto;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 40px 120px;
}

/* Carte d'article */
.article-card {
    display: flex;
    flex-direction: column;
}

.article-card-image {
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--gris-clair);
    margin-bottom: 24px;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover .article-card-image img {
    transform: scale(1.04);
}

.article-card-date {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 400;
    display: block;
}

.article-card-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.2;
    color: var(--noir);
    margin-bottom: 14px;
    transition: opacity 0.3s ease;
}

.article-card:hover .article-card-title {
    opacity: 0.65;
}

.article-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--gris);
    font-weight: 300;
    flex-grow: 1;
    margin-bottom: 22px;
}

.article-card-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    font-weight: 400;
    border-bottom: 1px solid rgba(107,93,79,.4);
    padding-bottom: 3px;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    align-self: flex-start;
}

.article-card-read:hover {
    opacity: 0.65;
    border-color: var(--accent);
}

/* ==========================================================================
   ARTICLES INDIVIDUELS
   ========================================================================== */

.article-hero {
    height: 65vh;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.article-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(26,24,22,.05) 0%, rgba(26,24,22,.35) 100%);
    pointer-events: none;
}

.article-page-header {
    padding: 70px 0 55px;
    text-align: center;
    background: var(--creme);
    border-bottom: 1px solid rgba(107,93,79,.1);
}

.article-category {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    font-weight: 400;
    margin-bottom: 24px;
}

.article-page-header h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 28px;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--gris);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
}

.article-meta-sep {
    color: var(--gris-clair);
}

/* Corps de l'article — large marge, typographie soignée */
.article-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 70px 40px 100px;
}

.article-content p {
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.88;
    color: var(--noir-doux);
    font-weight: 300;
    margin-bottom: 28px;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* Exergue — phrase forte extraite du texte, en Cormorant */
.exergue {
    font-family: var(--serif) !important;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem) !important;
    font-style: italic;
    line-height: 1.5 !important;
    color: var(--noir) !important;
    font-weight: 300 !important;
    margin: 54px 0 !important;
    text-align: center;
}

/* Images dans le corps de l'article */
.article-content figure {
    margin: 54px -40px;  /* déborde des marges pour occuper toute la largeur du contenu */
}

.article-content figure img {
    width: 100%;
    display: block;
}

.article-content figcaption {
    font-size: 0.78rem;
    color: var(--gris);
    text-align: center;
    margin-top: 12px;
    letter-spacing: 0.05em;
    font-style: italic;
    padding: 0 40px;
}

/* Navigation entre articles */
.article-nav {
    padding: 70px 40px;
    border-top: 1px solid rgba(107,93,79,.12);
    background: var(--creme-clair);
}

.article-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.article-nav-link {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    max-width: 280px;
}

.article-nav-link--next {
    text-align: right;
    margin-left: auto;
}

.article-nav-link:hover { opacity: 0.65; }

.article-nav-direction {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gris);
    font-weight: 400;
}

.article-nav-title {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--noir);
    font-weight: 300;
}

.article-nav-retour {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gris);
    font-weight: 400;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.article-nav-retour:hover {
    color: var(--accent);
    opacity: 1;
}

/* ==========================================================================
   FAQ — Accordéon accessible
   ========================================================================== */
.faq {
    padding: var(--section-padding) 0;
    background: var(--creme);
}

.faq h2 {
    margin-bottom: 60px;
}

.faq-list {
    border-top: 1px solid rgba(107,93,79,.15);
}

.faq-item {
    border-bottom: 1px solid rgba(107,93,79,.15);
}

/* Reset h3 pour l'utiliser comme wrapper accessible */
.faq-question {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
}

.faq-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    width: 100%;
    padding: 28px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--noir);
    line-height: 1.35;
    transition: color 0.25s ease;
}

.faq-button:hover {
    color: var(--accent);
}

/* Icône + → × à l'ouverture */
.faq-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transition: transform 0.3s ease;
}

.faq-icon::before {
    width: 16px;
    height: 1px;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 1px;
    height: 16px;
    transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.faq-item.is-open .faq-icon::after {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Panneau réponse — animation via CSS grid (pas de max-height arbitraire) */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.38s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s 0.38s;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.38s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s;
}

.faq-answer-inner {
    overflow: hidden;
    min-height: 0;    /* obligatoire pour grid-template-rows: 0fr */
}

.faq-answer-content {
    padding: 0 0 32px;
    max-width: 620px;
}

.faq-answer-content p {
    font-family: var(--sans);
    font-size: 0.97rem;
    line-height: 1.88;
    color: var(--noir-doux);
    font-weight: 300;
    margin-bottom: 12px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-placeholder {
    font-style: italic;
    color: var(--accent);
    font-size: 0.88rem !important;
    opacity: 0.85;
}

/* ==========================================================================
   PAGES DE SÉRIE — Layout magazine éditorial
   ========================================================================== */

/* Hero de série — plein écran, recouvre la nav fixe */
.serie-page-hero {
    height: 80vh;
    min-height: 480px;
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.serie-page-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.serie-page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(26,24,22,.12) 0%, rgba(26,24,22,.5) 100%);
    pointer-events: none;
}

/* Fil d'Ariane */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gris);
    margin-bottom: 48px;
    font-weight: 400;
}

.breadcrumb a {
    color: var(--gris);
    transition: color 0.25s ease;
}

.breadcrumb a:hover {
    color: var(--accent);
    opacity: 1;
}

.breadcrumb-sep {
    color: var(--gris-clair);
    font-style: normal;
}

/* En-tête de la page série */
.serie-page-intro {
    padding: 80px 0 60px;
    text-align: center;
    background: var(--creme);
}

.serie-page-intro h1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.05;
    margin-bottom: 16px;
}

/* Édito d'introduction */
.serie-edito {
    padding: 0 0 80px;
    text-align: center;
    background: var(--creme);
    border-bottom: 1px solid rgba(107,93,79,.1);
}

.serie-edito p {
    font-family: var(--serif);
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    line-height: 1.72;
    color: var(--noir-doux);
    font-weight: 300;
    margin-bottom: 24px;
}

.serie-edito p:last-child { margin-bottom: 0; }

.serie-edito p em { font-style: italic; }

/* Contenu magazine — blocs d'images */
.serie-page-content {
    background: var(--creme);
}

/* Galerie masonry — pages de série */
.serie-galerie {
    padding: 60px 0 80px;
    background: var(--creme);
}

/* Respiration entre groupes d'images */
.serie-breath {
    height: 80px;
    background: var(--creme);
}

/* Pleine largeur (pas de container) */
.serie-block-full {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.serie-block-full img {
    width: 100%;
    max-height: 85vh;
    object-fit: cover;
    display: block;
    transition: transform 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.serie-block-full:hover img { transform: scale(1.02); }

/* Duo : deux portraits côte à côte */
.serie-block-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Duo asymétrique : 3/5 + 2/5 */
.serie-block-duo-asymm {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Cellule image dans un duo */
.serie-img {
    overflow: hidden;
    line-height: 0;
}

.serie-block-duo img,
.serie-block-duo-asymm img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    transition: transform 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.serie-img:hover img { transform: scale(1.03); }

/* Navigation série précédente / suivante */
.serie-nav {
    padding: 70px 40px;
    border-top: 1px solid rgba(107,93,79,.12);
    background: var(--creme-clair);
}

.serie-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.serie-nav-link {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    max-width: 280px;
}

.serie-nav-link--next {
    text-align: right;
    margin-left: auto;
}

.serie-nav-link:hover { opacity: 0.65; }

.serie-nav-direction {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gris);
    font-weight: 400;
}

.serie-nav-name {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--noir);
    font-weight: 300;
}

.serie-nav-retour {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gris);
    font-weight: 400;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.serie-nav-retour:hover {
    color: var(--accent);
    opacity: 1;
}

/* ==========================================================================
   INDEX.HTML — aperçu des séries
   ========================================================================== */

/* Lien dans chaque item */
.grid-item a {
    cursor: pointer;
}

/* Titre de série cliquable */
.serie-header-link {
    color: inherit;
    transition: opacity 0.3s ease;
}

.serie-header-link:hover { opacity: 0.65; }

/* Lien "Voir la série complète" */
.serie-footer {
    text-align: center;
    padding: 40px 0 0;
}

.serie-voir {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    font-weight: 400;
    border-bottom: 1px solid rgba(107,93,79,.45);
    padding-bottom: 4px;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.serie-voir:hover {
    opacity: 0.65;
    border-color: var(--accent);
}

/* ==========================================================================
   BURGER BUTTON — masqué sur desktop
   ========================================================================== */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-shrink: 0;
}

.burger-line {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--noir);
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

/* Ligne du milieu légèrement plus courte — détail éditorial */
.burger-line:nth-child(2) { width: 16px; }

/* Animation → croix à l'ouverture */
.nav--open .burger-line:first-child { transform: translateY(7px) rotate(45deg); width: 22px; }
.nav--open .burger-line:nth-child(2) { opacity: 0; }
.nav--open .burger-line:last-child  { transform: translateY(-7px) rotate(-45deg); width: 22px; }

/* Lignes crème sur fond sombre */
.nav--open .burger-line { background: var(--creme); }

/* Nav bar → fond sombre quand menu ouvert */
.nav--open {
    background: rgba(26, 24, 22, 1);
    border-bottom-color: rgba(244, 240, 232, 0.1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.nav--open .nav-name { color: var(--creme); }

/* ==========================================================================
   RESPONSIVE — grille éditoriale (≤ 1100px → 2 colonnes)
   ========================================================================== */
@media (max-width: 1100px) {
    .serie-grid {
        -webkit-column-count: 2;
        column-count: 2;
        -webkit-column-gap: 14px;
        column-gap: 14px;
        padding: 0 32px;
    }
}

/* ==========================================================================
   RESPONSIVE — tablette (≤ 900px)
   ========================================================================== */
@media (max-width: 900px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }

    /* HERO — image au ratio natif, texte superposé sans fond */
    .hero {
        height: auto;
        min-height: 0;
        display: block;
        position: relative;
        overflow: visible;
        padding-top: 80px;
    }

    /* Réduit l'écart entre le hero et la section suivante */
    .hero + section {
        padding-top: 40px;
    }

    .hero-image {
        position: relative;
        inset: auto;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        height: auto;
        z-index: 1;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    .hero-image::after {
        display: none;
    }

    .hero-text {
        position: absolute;
        bottom: 24px;
        left: 24px;
        right: 24px;
        top: auto;
        padding: 0;
        max-width: none;
        z-index: 2;
        background: transparent;
    }

    .hero-text h1 {
        color: var(--creme);
        font-size: 1.5rem;
        line-height: 1.25;
        margin: 0;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
    }

    .hero-text h1 em {
        font-style: italic;
    }

    .hero-subtitle {
        color: var(--creme);
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    }

    /* NAV */
    .nav {
        padding: 20px 24px;
    }

    .nav-burger {
        display: flex;
    }

    /* Menu mobile — overlay plein écran */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        /* Hauteur et largeur explicites : corrige le bug iOS Safari où
           backdrop-filter sur .nav crée un containing block pour les
           éléments position:fixed enfants, limitant l'overlay à la
           hauteur de la barre de navigation au lieu du viewport entier. */
        height: 100vh;
        height: 100svh;
        width: 100%;
        background: var(--noir);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        padding: 80px 40px 40px;
    }

    .nav--open .nav-links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 56px;          /* zone tactile généreuse */
        font-size: 1rem;
        letter-spacing: 0.3em;
        color: var(--creme);
        border-bottom: 1px solid rgba(244, 240, 232, 0.1);
        padding: 0 16px;
        width: 100%;
        opacity: 1;                /* annule le a:hover opacity hérité */
    }

    .nav-links a:hover { opacity: 0.6; }

    .nav-links li:first-child a {
        border-top: 1px solid rgba(244, 240, 232, 0.1);
    }

    /* CONTAINERS */
    .container,
    .container-narrow {
        padding: 0 24px;
    }

    /* GRILLE — padding réduit à partir de 900px */
    .serie-grid {
        padding: 0 24px;
    }

    /* APPROCHE */
    .approche-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .approche-rarete {
        margin-top: 70px;
    }

    /* FORMULAIRE */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* INVEST */
    .invest-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .invest-card {
        padding: 24px 24px 20px;
    }

    /* FOOTER */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* Zones tactiles footer — min 44px */
    .footer ul li a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 6px 0;
    }

    /* SERIE PAGE — tablette */
    .serie-page-hero {
        height: 60vh;
        min-height: 380px;
    }

    .serie-block-duo,
    .serie-block-duo-asymm {
        padding: 0 24px;
    }

    .serie-nav {
        padding: 50px 24px;
    }
}

/* ==========================================================================
   RESPONSIVE — grille éditoriale (≤ 700px → 1 colonne)
   ========================================================================== */
@media (max-width: 700px) {
    .serie-grid {
        -webkit-column-count: 1;
        column-count: 1;
        -webkit-column-gap: 0;
        column-gap: 0;
        padding: 0 20px;
    }

    .grid-item {
        margin-bottom: 12px;
    }
}

/* ==========================================================================
   RESPONSIVE — mobile strict (≤ 480px)
   ========================================================================== */
@media (max-width: 480px) {

    /* GRILLE — marges légèrement réduites */
    .serie-grid {
        padding: 0 16px;
    }

    .grid-item {
        margin-bottom: 10px;
    }

    /* (pour-toi-grid : voir breakpoint 600px) */

    /* MANIFESTE — plus d'air entre les paragraphes */
    .manifeste {
        padding: 80px 0;
    }

    .manifeste-text {
        margin-bottom: 36px;
        line-height: 1.65;
    }

    .manifeste-text:first-child {
        margin-bottom: 52px;
    }

    /* CONTAINERS */
    .container,
    .container-narrow {
        padding: 0 20px;
    }

    /* INVEST */
    .invest-card {
        padding: 20px 18px 18px;
    }

    .invest-prix {
        margin-bottom: 16px;
    }

    /* SERIE HEADER */
    .serie-header {
        margin-bottom: 40px;
    }

    /* FOOTER */
    .footer {
        padding: 60px 0 32px;
    }
}

/* ==========================================================================
   RESPONSIVE — mobile strict (≤ 480px) — suite pages série
   ========================================================================== */
@media (max-width: 480px) {

    /* SERIE PAGE — mobile */
    .serie-page-hero {
        height: 55vh;
        min-height: 320px;
    }

    .serie-page-intro {
        padding: 60px 0 40px;
    }

    .serie-edito {
        padding: 0 0 60px;
    }

    .serie-block-duo,
    .serie-block-duo-asymm {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 20px;
    }

    .serie-breath {
        height: 48px;
    }

    .serie-nav-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .serie-nav-link--next {
        text-align: left;
        margin-left: 0;
    }
}

/* ==========================================================================
   RESPONSIVE — Journal (≤ 900px tablette)
   ========================================================================== */
@media (max-width: 900px) {

    .journal-header {
        padding: 120px 24px 60px;
    }

    .journal-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 28px;
        padding: 60px 24px 80px;
    }

    .article-hero {
        height: 50vh;
        min-height: 320px;
    }

    .article-content {
        padding: 50px 24px 70px;
    }

    .article-content figure {
        margin: 40px -24px;
    }

    .article-nav {
        padding: 50px 24px;
    }

    .article-nav-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .article-nav-link--next {
        text-align: left;
        margin-left: 0;
    }
}

/* ==========================================================================
   RESPONSIVE — Journal (≤ 480px mobile)
   ========================================================================== */
@media (max-width: 480px) {

    .journal-header {
        padding: 100px 20px 50px;
    }

    .journal-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 50px 20px 70px;
    }

    .article-hero {
        height: 45vh;
        min-height: 260px;
    }

    .article-page-header {
        padding: 50px 0 40px;
    }

    .article-content {
        padding: 40px 20px 60px;
    }

    .article-content figure {
        margin: 36px -20px;
    }

    .exergue {
        margin: 40px 0 !important;
    }
}

/* ==========================================================================
   RESPONSIVE — POUR TOI (≤ 600px)
   ========================================================================== */
@media (max-width: 600px) {
    .pour-toi-grid {
        grid-template-columns: 1fr;
    }

    .pour-toi h2 {
        margin-bottom: 40px;
    }

    .pour-toi-card {
        padding: 24px;
    }
}

/* ==========================================================================
   QUIZ
   ========================================================================== */
.quiz-section {
    padding: var(--section-padding) 0;
    background: var(--creme);
}

.quiz-header {
    text-align: center;
    margin-bottom: 56px;
}

.quiz-titre {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    font-style: normal;
    line-height: 1.15;
    color: var(--noir);
    margin-bottom: 20px;
}

.quiz-titre em {
    font-style: italic;
}

.quiz-sous-titre {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 300;
    color: var(--gris);
    line-height: 1.6;
}

/* Container principal */
.quiz-container {
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #d4c8b8;
    border-radius: 16px;
    padding: 60px;
    box-shadow: 0 2px 14px rgba(26, 24, 22, 0.08);
    overflow: hidden;
}

/* Étapes (questions / verdict) */
.quiz-step {
    min-height: 280px;
}

/* Barre de progression */
.quiz-progress {
    margin-bottom: 40px;
}

.quiz-progress-label {
    display: block;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.quiz-progress-bar {
    height: 3px;
    width: 50%;
    background: var(--gris-clair);
    border-radius: 2px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Question */
.quiz-question-text {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 400;
    color: var(--noir);
    line-height: 1.35;
    margin-bottom: 32px;
}

/* Boutons réponses */
.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quiz-answer-btn {
    width: 100%;
    min-height: 60px;
    padding: 16px 28px;
    border-radius: 32px;
    background: var(--creme);
    border: 1px solid #c4b5a1;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--noir-doux);
    text-align: left;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, opacity 0.2s ease;
    line-height: 1.45;
}

.quiz-answer-btn:hover:not(:disabled) {
    background: rgba(107, 93, 79, 0.07);
    border-color: rgba(107, 93, 79, 0.35);
}

.quiz-answer-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.quiz-answer-btn--selected {
    background: rgba(107, 93, 79, 0.12) !important;
    border-color: var(--accent) !important;
    color: var(--noir) !important;
}

.quiz-answer-btn:disabled {
    cursor: default;
    opacity: 0.6;
}

.quiz-answer-btn--selected:disabled {
    opacity: 1;
}

/* ── Verdict ─────────────────────────────────────── */
.quiz-step--verdict {
    min-height: 280px;
}

.quiz-verdict-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quiz-verdict-tag {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 6px 14px;
    border: 1px solid rgba(107, 93, 79, 0.3);
    border-radius: 20px;
    align-self: flex-start;
}

.quiz-verdict-titre {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 300;
    color: var(--noir);
    line-height: 1.25;
    margin: 0;
}

.quiz-verdict-texte {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--gris);
    line-height: 1.75;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-verdict-texte p {
    margin: 0;
}

.quiz-verdict-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 16px 36px;
    background: var(--noir);
    color: var(--creme);
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    align-self: flex-start;
}

.quiz-verdict-cta:hover,
.quiz-verdict-cta:focus-visible {
    opacity: 0.75;
}

.quiz-recommencer {
    background: none;
    border: none;
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--gris);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
    align-self: flex-start;
}

.quiz-recommencer:hover,
.quiz-recommencer:focus-visible {
    color: var(--noir);
}

/* ── Animations ─────────────────────────────────── */
.quiz-fade-in {
    animation: quizFadeIn 0.4s ease both;
}

.quiz-fade-out {
    animation: quizFadeOut 0.3s ease both;
}

@keyframes quizFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@keyframes quizFadeOut {
    from { opacity: 1; transform: translateY(0);    }
    to   { opacity: 0; transform: translateY(-8px); }
}

/* ==========================================================================
   RESPONSIVE — Quiz (≤ 900px tablette)
   ========================================================================== */
@media (max-width: 900px) {
    .quiz-container {
        padding: 48px 40px;
    }
}

/* ==========================================================================
   RESPONSIVE — Quiz (≤ 600px mobile)
   ========================================================================== */
@media (max-width: 600px) {
    .quiz-header {
        margin-bottom: 40px;
    }

    .quiz-container {
        padding: 36px 24px;
    }

    .quiz-progress-bar {
        width: 100%;
    }

    .quiz-answer-btn {
        min-height: 56px;
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .quiz-verdict-cta {
        width: 100%;
        text-align: center;
        align-self: stretch;
    }
}


/* ==========================================================================
   THÈME "BLEU BRETON"
   Fond marine #06101e · Blanc bleuté #dce8f5 · Or champagne #c9a55e
   ========================================================================== */

/* ── Fond global — profondeur marine avec halo du large ──────────────────── */
body {
    background: #06101e;
    background-image: radial-gradient(ellipse at 50% 0%, #0f213f 0%, #06101e 62%);
    color: #dce8f5;
}

h1, h2, h3, h4 { color: #dce8f5; }

/* ── Skip link ────────────────────────────────────────────────────────────── */
.skip-link {
    background: var(--accent);
    color: #040b15;
    border-color: #040b15;
}

/* ── Navigation ───────────────────────────────────────────────────────────── */
.nav {
    background: rgba(6, 16, 30, 0.92);
    border-bottom-color: rgba(201, 165, 94, 0.14);
}

.nav-name    { color: #dce8f5; }
.nav-tagline { color: #4a6282; }
.nav-links a { color: #a8bdd8; }
.nav-links li:last-child a { color: var(--accent); }

.nav--open {
    background: rgba(4, 10, 20, 1);
    border-bottom-color: rgba(201, 165, 94, 0.08);
}

/* ── Burger mobile ────────────────────────────────────────────────────────── */
.burger-line            { background: #a8bdd8; }  /* bleuté au lieu de marron */
.nav--open .burger-line { background: #dce8f5; }  /* blanc bleuté menu ouvert */
.nav--open .nav-name    { color: #dce8f5; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero-image::after {
    background: linear-gradient(
        180deg,
        rgba(6, 16, 30, 0.32) 0%,
        rgba(6, 16, 30, 0.06) 35%,
        rgba(6, 16, 30, 0.06) 55%,
        rgba(6, 16, 30, 0.78) 100%
    );
}

/* ── Manifeste ────────────────────────────────────────────────────────────── */
.manifeste           { background: #0c1a2e; }
.manifeste-text      { color: #9ab4d0; }
.manifeste-signature { color: var(--accent); }

/* ── Pour vous ────────────────────────────────────────────────────────────── */
.pour-toi    { background: #06101e; }
.pour-toi h2 { color: #dce8f5; }

.pour-toi-card {
    background: #0e1e34;
    border: 1px solid rgba(201, 165, 94, 0.16);
    border-radius: 2px;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

.pour-toi-picto {
    background: #06101e;
    border-color: rgba(201, 165, 94, 0.25);
}

.pour-toi-card-titre { color: #ccdaee; }
.pour-toi-card-texte { color: #4a6282; }

/* ── Travaux ──────────────────────────────────────────────────────────────── */
.serie-meta      { color: #3e5678; }
.serie-header h3 { color: #dce8f5; }
.serie-voir      { border-bottom-color: rgba(201, 165, 94, 0.35); }
.grid-item a:hover img { opacity: 0.76; }

/* ── Approche ─────────────────────────────────────────────────────────────── */
.approche          { background: #0c1a2e; }
.approche h2       { color: #dce8f5; }
.approche-block h3 { color: #dce8f5; }
.approche-block p  { color: #4a6282; }
.approche-rarete   { color: var(--accent); }

/* ── Quiz ─────────────────────────────────────────────────────────────────── */
.quiz-section    { background: #06101e; }
.quiz-titre      { color: #dce8f5; }
.quiz-sous-titre { color: #4a6282; }

.quiz-container {
    background: #0e1e34;
    border-color: rgba(201, 165, 94, 0.16);
    border-radius: 4px;
    box-shadow: 0 4px 36px rgba(0, 0, 0, 0.5);
}

.quiz-progress-bar  { background: rgba(201, 165, 94, 0.14); }
.quiz-question-text { color: #dce8f5; }

.quiz-answer-btn {
    background: #06101e;
    border-color: rgba(201, 165, 94, 0.16);
    color: #a8bdd8;
}

.quiz-answer-btn:hover:not(:disabled) {
    background: rgba(201, 165, 94, 0.06);
    border-color: rgba(201, 165, 94, 0.4);
}

.quiz-answer-btn--selected {
    background: rgba(201, 165, 94, 0.1) !important;
    border-color: var(--accent) !important;
    color: #dce8f5 !important;
}

.quiz-verdict-tag   { color: var(--accent); border-color: rgba(201, 165, 94, 0.28); }
.quiz-verdict-titre { color: #dce8f5; }
.quiz-verdict-texte { color: #4a6282; }

.quiz-verdict-cta {
    background: var(--accent);
    color: #040b15;
}
.quiz-verdict-cta:hover,
.quiz-verdict-cta:focus-visible { opacity: 0.85; }

.quiz-recommencer { color: #3e5678; }
.quiz-recommencer:hover,
.quiz-recommencer:focus-visible { color: #a8bdd8; }

/* ── Investissement ───────────────────────────────────────────────────────── */
.investissement    { background: #06101e; }
.investissement h2 { color: #dce8f5; }

.invest-card {
    background: #0e1e34;
    border-color: rgba(201, 165, 94, 0.14);
}

.invest-card--signature {
    background: #112240;
    border-color: var(--accent);
}

.invest-card h3            { color: #3e5678; }
.invest-card--signature h3 { color: var(--accent); }
.invest-prix               { color: #dce8f5; }

.invest-liste li {
    color: #a8bdd8;
    border-bottom-color: rgba(201, 165, 94, 0.1);
    border-left-color:   rgba(201, 165, 94, 0.18);
}

.invest-card--signature .invest-liste li { border-left-color: var(--accent); }
.invest-note { color: #3e5678; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq    { background: #06101e; }
.faq h2 { color: #dce8f5; }
.faq-list  { border-top-color:    rgba(201, 165, 94, 0.12); }
.faq-item  { border-bottom-color: rgba(201, 165, 94, 0.12); }
.faq-button       { color: #dce8f5; }
.faq-button:hover { color: var(--accent); }
.faq-icon::before,
.faq-icon::after  { background: var(--accent); }
.faq-answer-content p { color: #4a6282; }

/* ── Contact ──────────────────────────────────────────────────────────────── */
.contact    { background: #0c1a2e; }
.contact h2 { color: #dce8f5; }
.contact-intro { color: #4a6282; }

.contact-form span { color: var(--accent); }

.contact-form input,
.contact-form textarea,
.contact-form select {
    color: #dce8f5;
    border-bottom-color: rgba(201, 165, 94, 0.22);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #243550; }

.contact-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23c9a55e' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
}

.contact-form select option { background: #0e1e34; color: #dce8f5; }

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-bottom-color: var(--accent); }

.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form select:focus-visible {
    outline-color: var(--accent);
    border-bottom-color: var(--accent);
}

.contact-form button {
    background: var(--accent);
    color: #040b15;
}

.contact-form button:hover         { background: #d9b870; }
.contact-form button:focus-visible { background: #d9b870; outline-color: var(--accent); }

.form-mention  { color: #243550; }
.field-error   { color: #e07878; }
.field-invalid { border-bottom-color: #e07878 !important; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
    background: #030a14;
    border-top: 1px solid rgba(201, 165, 94, 0.1);
}

/* ── Pages série ──────────────────────────────────────────────────────────── */
.serie-page-intro    { background: #06101e; }
.serie-page-intro h1 { color: #dce8f5; }

.serie-edito {
    background: #06101e;
    border-bottom-color: rgba(201, 165, 94, 0.08);
}
.serie-edito p { color: #9ab4d0; }

.serie-page-content,
.serie-galerie,
.serie-breath { background: #06101e; }

.serie-nav {
    background: #0c1a2e;
    border-top-color: rgba(201, 165, 94, 0.1);
}

.serie-nav-name      { color: #dce8f5; }
.serie-nav-direction { color: #3e5678; }
.serie-nav-retour    { color: #3e5678; }
.serie-nav-retour:hover { color: var(--accent); opacity: 1; }

.breadcrumb,
.breadcrumb a { color: #3e5678; }
.breadcrumb a:hover { color: var(--accent); opacity: 1; }
.breadcrumb-sep { color: #1a2d45; }

/* ── Journal ──────────────────────────────────────────────────────────────── */
.journal-header {
    background: #06101e;
    border-bottom-color: rgba(201, 165, 94, 0.08);
}
.journal-header h1 { color: #dce8f5; }
.journal-intro     { color: #9ab4d0; }

.article-card-image   { background: #0e1e34; }
.article-card-title   { color: #dce8f5; }
.article-card-excerpt { color: #4a6282; }
.article-card-read    { border-bottom-color: rgba(201, 165, 94, 0.35); }

/* ── Articles individuels ─────────────────────────────────────────────────── */
.article-page-header {
    background: #06101e;
    border-bottom-color: rgba(201, 165, 94, 0.08);
}
.article-page-header h1     { color: #dce8f5; }
.article-meta               { color: #3e5678; }
.article-meta-sep           { color: #1a2d45; }
.article-content p          { color: #9ab4d0; }
.exergue                    { color: #dce8f5 !important; }
.article-content figcaption { color: #3e5678; }

.article-nav {
    background: #0c1a2e;
    border-top-color: rgba(201, 165, 94, 0.1);
}
.article-nav-title     { color: #dce8f5; }
.article-nav-direction { color: #3e5678; }
.article-nav-retour    { color: #3e5678; }
.article-nav-retour:hover { color: var(--accent); opacity: 1; }

/* ==========================================================================
   ANIMATIONS — BLEU BRETON
   ========================================================================== */

/* Nav — glisse depuis le haut */
@keyframes navReveal {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav { animation: navReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }

/* Hero image — zoom lent, comme une marée qui monte */
@keyframes heroZoomIn {
    from { transform: scale(1.07); }
    to   { transform: scale(1); }
}

.hero-image img { animation: heroZoomIn 3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Hero texte — révélation depuis le bas */
@keyframes heroReveal {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-text { animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both; }

/* Scroll-driven reveal — progressive enhancement */
@supports (animation-timeline: scroll()) {

    @keyframes scrollUp {
        from { opacity: 0; transform: translateY(28px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .manifeste-text {
        animation: scrollUp linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 28%;
    }

    @keyframes slideFromLeft {
        from { opacity: 0; transform: translateX(-38px); }
        to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes slideFromRight {
        from { opacity: 0; transform: translateX(38px); }
        to   { opacity: 1; transform: translateX(0); }
    }

    /* Colonne gauche → depuis la gauche, colonne droite → depuis la droite */
    .pour-toi-card:nth-child(odd) {
        animation: slideFromLeft linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 30%;
    }
    .pour-toi-card:nth-child(even) {
        animation: slideFromRight linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 30%;
    }

    /* Mobile 1 colonne — entrée verticale, pas de risque d'overflow horizontal */
    @media (max-width: 600px) {
        .pour-toi-card:nth-child(odd),
        .pour-toi-card:nth-child(even) {
            animation: scrollUp linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 30%;
        }
    }

    .approche-block {
        animation: scrollUp linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 30%;
    }

    .approche-rarete {
        animation: scrollUp linear both;
        animation-timeline: view();
        animation-range: entry 5% entry 35%;
    }

    .invest-card {
        animation: scrollUp linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 30%;
    }

    .faq-item {
        animation: scrollUp linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 22%;
    }

    .serie-header {
        animation: scrollUp linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 25%;
    }

    .contact-intro {
        animation: scrollUp linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 28%;
    }

    .article-card {
        animation: scrollUp linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 30%;
    }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .nav            { animation: none; }
    .hero-image img { animation: none; }
    .hero-text      { animation: none; opacity: 1; transform: none; }
}
