/* aiceberg.pro — feuille de style unique, sans ressource tierce */

:root {
    --navy: #173a5e;
    --navy-dk: #0f2840;
    --orange: #ef7046;
    --orange-dk: #b8461f; /* assombri pour un contraste suffisant du petit texte (≥ 4,5:1, même sur la vanille) */
    --orange-btn: #c44d24; /* fond des boutons : texte blanc lisible (4,7:1) */
    --ice: #2fb2d8;
    --ice-pale: #e3f5fa;
    --cherry: #e4402f;
    --cream: #fbf6ec;
    --cream-2: #f3e9d5;
    --waffle: #e6b36a;
    --mint: #2bb37f;
    --amber: #f2a93b;
    /* Parfums de sorbets */
    --fraise: #f27a9b;
    --pistache: #a8cf6f;
    --myrtille: #8f7fd6;
    --mangue: #f7b84b;
    --citron: #f3dc5a;
    --menthe: #7fd6c2;
    --vanille: #fdf3d4;
    --chocolat: #6b4433;
    --text: #23384d;
    --text-soft: #586b7d;
    --line: #e8dcc4;
    --white: #ffffff;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px -12px rgba(15, 40, 64, .25), 0 2px 8px -2px rgba(15, 40, 64, .08);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
    --wrap: 1160px;
    /* Coulure de glace fondue : bord supérieur plein, gouttes vers le bas (utilisée en masque) */
    --coulure: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0V14Q14 14 18 21V34a7 7 0 0 0 14 0V21Q36 14 50 14H90Q102 14 104 22V46a8 8 0 0 0 16 0V22Q122 14 134 14H180Q190 14 192 19V28a6 6 0 0 0 12 0V19Q206 14 216 14H250Q260 14 262 21V40a7 7 0 0 0 14 0V21Q278 14 290 14H300V0Z'/%3E%3C/svg%3E");
    /* Ondulations de la mer (motif discret) */
    --vagues: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='44'%3E%3Cpath d='M0 22q20-10 40 0t40 0 40 0 40 0' fill='none' stroke='%232fb2d8' stroke-opacity='.16' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    --vagues-claires: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='44'%3E%3Cpath d='M0 22q20-10 40 0t40 0 40 0 40 0' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    /* Mer : vague turquoise derrière, vague blanche devant */
    --mer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0 30c120-22 240-22 360 0s240 22 360 0 240-22 360 0 120 11 120 11V70H0z' fill='%2357c3e3' fill-opacity='.55'/%3E%3Cpath d='M0 44c100-18 200-18 300 0s200 18 300 0 200-18 300 0 200 18 300 0v26H0z' fill='%23ffffff'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
/* Défilement doux seulement après le chargement : évite l’aller-retour animé vers l’ancre à l’arrivée sur la page */
html.defilement-doux { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html, html.defilement-doux { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange-dk); }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 4px; }

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

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

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--orange-dk);
    margin-bottom: .8em;
}

/* ── Boutons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .85em 1.5em;
    border-radius: 999px;
    border: 2px solid var(--orange-btn);
    background: var(--orange-btn);
    color: #fff;
    font: inherit; font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--orange-dk); border-color: var(--orange-dk); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
/* Boutons de l'accueil : survol en couleur (texte blanc lisible ≥ 4,5:1) */
.btn-essai:hover, .btn-essai:focus-visible { background: #9e3814; border-color: #9e3814; }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover, .btn-navy:focus-visible { background: #2a5a8c; border-color: #2a5a8c; color: #fff; }
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); }
.btn-sm { padding: .5em 1.1em; font-size: .75rem; }
.btn-full { width: 100%; }

/* ── En-tête ── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--navy); }
.brand img { border-radius: 50%; }
.brand .dot { color: var(--orange); }
.brand .pro { color: #1b8db3; } /* glace assombrie : contraste ≥ 3:1 sur blanc */
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { display: inline-flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--navy); font-size: .94rem; }
.nav a:not(.btn):hover { color: var(--orange-dk); }
.nav-toggle { display: none; }
/* Icônes des onglets (ordinateur : 16px, couleur glacier ; agrandies dans le menu mobile) */
.nav-icone { display: block; width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-icone.nav-icone-plein { fill: currentColor; stroke: none; } /* icônes dessinées en surfaces (ex. Connexion) */
.nav a:not(.btn) .nav-icone { color: var(--ice); }
/* Vaguelette sous le nom : au survol / à la sélection, et en permanence sur l'onglet en cours */
.nav-texte { position: relative; }
.nav a:not(.btn) .nav-texte::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='6'%3E%3Cpath d='M0 3q4-3 8 0t8 0' fill='none' stroke='%23ef7046' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") left center / 16px 6px repeat-x;
    opacity: 0; transform: scaleX(.3); transform-origin: left center;
    transition: opacity .25s, transform .3s cubic-bezier(.22, .61, .36, 1);
}
.nav a:not(.btn):hover .nav-texte::after,
.nav a:not(.btn):focus-visible .nav-texte::after,
.nav a[aria-current] .nav-texte::after { opacity: 1; transform: none; }

/* Menu déroulant « Le logiciel » (ordinateur : panneau sous le bouton, ouvert au survol ou au clic) */
.nav-groupe { position: relative; display: flex; align-items: center; }
.nav-groupe-bouton { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; line-height: inherit; font-weight: 600; font-size: .94rem; color: var(--navy); }
.nav-groupe-bouton:hover { color: var(--orange-dk); }
.nav-groupe-bouton .nav-icone { color: var(--ice); }
.nav-chevron { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.nav-groupe.ouvert .nav-chevron { transform: rotate(180deg); }
.nav-groupe-bouton .nav-texte::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='6'%3E%3Cpath d='M0 3q4-3 8 0t8 0' fill='none' stroke='%23ef7046' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") left center / 16px 6px repeat-x;
    opacity: 0; transform: scaleX(.3); transform-origin: left center; transition: opacity .25s, transform .3s cubic-bezier(.22, .61, .36, 1);
}
.nav-groupe-bouton:hover .nav-texte::after,
.nav-groupe-bouton:focus-visible .nav-texte::after,
.nav-groupe:has(a[aria-current]) .nav-groupe-bouton .nav-texte::after { opacity: 1; transform: none; }

@media (min-width: 1181px) {
    .nav-sous {
        position: absolute; top: calc(100% + 14px); left: -18px; z-index: 50;
        min-width: 230px; padding: 10px; display: grid; gap: 2px;
        background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
        opacity: 0; visibility: hidden; transform: translateY(-6px);
        transition: opacity .2s, transform .2s, visibility 0s linear .2s;
    }
    /* Zone tampon : la souris peut descendre du bouton au panneau sans le refermer */
    .nav-sous::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
    .nav-groupe.ouvert .nav-sous { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s, visibility 0s; }
    @media (hover: hover) {
        .nav-groupe:hover .nav-sous { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s, visibility 0s; }
        .nav-groupe:hover .nav-chevron { transform: rotate(180deg); }
        /* Rubrique choisie : le menu se referme même si la souris est encore dessus (main.js) */
        .nav-groupe.sans-survol:not(.ouvert) .nav-sous { opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility 0s linear .2s; }
        .nav-groupe.sans-survol:not(.ouvert) .nav-chevron { transform: none; }
    }
    .nav-sous a:not(.btn) { padding: 10px 12px; border-radius: 8px; gap: 10px; }
    .nav-sous a:not(.btn):hover, .nav-sous a:not(.btn):focus-visible { background: var(--cream); }
    .nav-sous a:not(.btn) .nav-texte::after { display: none; }
    .nav-sous a[aria-current] { background: var(--cream); color: var(--orange-dk); }
}

@media (max-width: 1180px) {
    /* Menu mobile : « Le logiciel » s'ouvre en accordéon dans le panneau */
    .nav-groupe { display: block; }
    .nav-groupe-bouton {
        width: 100%; padding: 16px 4px; color: #fff; font-size: 1.15rem; gap: 14px; text-align: left;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10'%3E%3Cpath d='M0 5q10-5 20 0t20 0' fill='none' stroke='%23ffffff' stroke-opacity='.28' stroke-width='1.5'/%3E%3C/svg%3E") left bottom / 40px 10px repeat-x;
    }
    .nav-groupe-bouton:hover, .nav-groupe-bouton:focus-visible { color: var(--ice); }
    .nav-groupe-bouton .nav-icone { width: 20px; height: 20px; }
    .nav-groupe-bouton .nav-texte::after { display: none; }
    .nav-chevron { margin-left: auto; width: 18px; height: 18px; }
    .nav-sous { display: none; padding-left: 18px; }
    .nav-groupe.ouvert .nav-sous { display: block; }
    .nav-sous a:not(.btn) { font-size: 1.05rem; padding: 13px 4px; }
}

@media (max-width: 1180px) {
    .nav-toggle {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 44px; height: 44px; padding: 10px;
        background: none; border: 0; cursor: pointer;
    }
    /* Sans flou d'arrière-plan sur mobile : il enfermerait le panneau (position fixe) dans l'en-tête */
    .site-header { background: rgba(255, 255, 255, .97); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .nav-toggle { position: relative; z-index: 2; }
    .nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s, background-color .25s; }
    .nav-toggle[aria-expanded="true"] span { background: #fff; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Panneau latéral : glisse depuis la droite, toute la hauteur de la fenêtre */
    .nav {
        position: fixed; top: 0; right: 0; z-index: 1;
        width: min(86vw, 380px); height: 100vh; height: 100dvh;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 96px 28px 32px;
        overflow-y: auto; overscroll-behavior: contain;
        background: linear-gradient(165deg, var(--navy) 0%, var(--navy-dk) 100%);
        box-shadow: -18px 0 40px -12px rgba(15, 40, 64, .45);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform .35s cubic-bezier(.22, .61, .36, 1), visibility 0s linear .35s, box-shadow .35s;
    }
    .nav.open {
        transform: none;
        visibility: visible;
        /* Voile sombre sur le reste de la page */
        box-shadow: -18px 0 40px -12px rgba(15, 40, 64, .45), 0 0 0 100vmax rgba(15, 40, 64, .5);
        transition: transform .35s cubic-bezier(.22, .61, .36, 1), visibility 0s, box-shadow .35s;
    }
    .nav a:not(.btn) {
        padding: 16px 4px; color: #fff; font-size: 1.15rem;
        /* Séparateur : petite vague claire sous chaque lien */
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10'%3E%3Cpath d='M0 5q10-5 20 0t20 0' fill='none' stroke='%23ffffff' stroke-opacity='.28' stroke-width='1.5'/%3E%3C/svg%3E") left bottom / 40px 10px repeat-x;
        transition: color .2s, padding-left .2s;
    }
    .nav a:not(.btn):hover, .nav a:not(.btn):focus-visible { color: var(--ice); padding-left: 10px; }
    .nav a { display: flex; align-items: center; gap: 14px; }
    .nav .btn { justify-content: center; }
    .nav-icone { width: 20px; height: 20px; }
    .nav a:not(.btn) .nav-icone { color: var(--ice); }
    /* Pas de vaguelette sous les noms dans le menu mobile (les séparateurs sont déjà des vagues) */
    .nav a:not(.btn) .nav-texte::after { display: none; }
    .nav .btn { margin-top: 28px; padding: .85em 1.2em; font-size: .95rem; }
    html.menu-ouvert { overflow: hidden; }
}
@media (max-width: 1180px) and (prefers-reduced-motion: reduce) {
    .nav, .nav.open { transition: none; }
}

/* ── Hero ── */
.hero {
    position: relative;
    /* Cover : cornets sur la plage, calés en bas ; le ciel uni se prolonge vers le haut sous le texte */
    /* Le fondu (même hauteur que l'image : 34.2vw) efface la jonction entre l'image et le ciel uni */
    background:
        linear-gradient(180deg, #faefd9 0, rgba(250, 239, 217, 0) 14%) center bottom / 100% 34.2vw no-repeat,
        url("/assets/img/aiceberg-fond-2.webp") center bottom / 100% auto no-repeat,
        #faefd9;
    padding: 70px 0 calc(31vw + 20px);
    overflow: hidden;
}
/* Fondu du bas de l'illustration vers la section suivante */
.hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--orange-dk); }
.lead { font-size: 1.18rem; color: var(--text-soft); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges li {
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: .35em .95em; font-weight: 700; font-size: .92rem; color: var(--navy);
}
.hero-badges li::before { content: "✓"; color: var(--mint); margin-right: .45em; }

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(360px, 100%); margin: 0 auto; border-radius: 50%; box-shadow: var(--shadow); }
.app-card {
    width: min(320px, 100%); margin-top: 22px;
    background: #fff; border-radius: var(--radius-sm);
    box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden;
    font-size: .82rem;
}
.app-bar { display: flex; align-items: center; gap: 5px; background: var(--navy); color: #fff; padding: 8px 12px; }
.app-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.app-bar span { margin-left: 6px; font-weight: 600; }
.app-body { padding: 12px 14px 14px; }
.gauge { display: grid; grid-template-columns: 34px 1fr 52px; align-items: center; gap: 8px; margin-bottom: 8px; }
.gauge span { font-weight: 700; color: var(--navy); }
.gauge em { font-style: normal; text-align: right; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.track { height: 8px; background: var(--cream-2); border-radius: 99px; overflow: hidden; }
.track b { display: block; height: 100%; border-radius: 99px; }
.track b[data-v="20"] { width: 20%; }
.track b[data-v="55"] { width: 55%; }
.track b[data-v="62"] { width: 62%; }
.track b[data-v="78"] { width: 78%; }
.track b.ok { background: var(--mint); }
.track b.warn { background: var(--amber); }
.app-foot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip { background: var(--ice-pale); color: var(--navy); border-radius: 99px; padding: 3px 9px; font-weight: 600; }
.chip-ai { background: #fde6dd; color: var(--orange-dk); }
.chip .ico { width: 1.1em; height: 1.1em; margin-right: .35em; vertical-align: -.2em; }

/* Icônes SVG (remplacent les emojis) */
.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Titre d'encart précédé de son icône, sur la même ligne */
.ico-titre { display: flex; align-items: center; gap: .55em; }
.ico-titre .ico { flex: none; width: 1.4em; height: 1.4em; color: var(--orange); }

@media (max-width: 900px) {
    /* Sur écran étroit, l'illustration est agrandie et centrée sur les cornets */
    .hero { padding: 44px 0 calc(47vw + 20px); background-size: 100% 51.3vw, 150% auto, auto; background-position: center bottom; }
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-visual { max-width: 380px; margin: 0 auto; width: 100%; }
    .hero-logo { width: 100%; }
}

/* ── Sections ── */
.section { position: relative; padding: 90px 0; }
/* Cornet devant les surtitres : même icône SVG que « J'adore » sur les cartes et les publications (includes/reactions.php),
   en masque : il prend la couleur du surtitre */
.section .eyebrow::before {
    content: ""; display: inline-block; width: 14px; height: 16px; margin-right: .6em; vertical-align: -2px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M367.1 160c.6-5.3.9-10.6.9-16C368 64.5 303.5 0 224 0S80 64.5 80 144c0 5.4.3 10.7.9 16H80c-26.5 0-48 21.5-48 48s21.5 48 48 48h288c26.5 0 48-21.5 48-48s-21.5-48-48-48zM96 288l104.8 209.7c4.4 8.8 13.3 14.3 23.2 14.3s18.8-5.5 23.2-14.3L352 288z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M367.1 160c.6-5.3.9-10.6.9-16C368 64.5 303.5 0 224 0S80 64.5 80 144c0 5.4.3 10.7.9 16H80c-26.5 0-48 21.5-48 48s21.5 48 48 48h288c26.5 0 48-21.5 48-48s-21.5-48-48-48zM96 288l104.8 209.7c4.4 8.8 13.3 14.3 23.2 14.3s18.8-5.5 23.2-14.3L352 288z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.section-cream { background: var(--cream); }
.section-head { max-width: 760px; margin-bottom: 44px; }
@media (max-width: 700px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* Atouts */
.atouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.atout {
    position: relative; overflow: hidden;
    background: #fff; border: 1.5px solid var(--parfum, var(--line)); border-radius: var(--radius);
    padding: 46px 26px 24px;
    transition: transform .25s, box-shadow .25s;
}
.atout:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.atout::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30px;
    background: var(--parfum, var(--fraise));
    -webkit-mask: var(--coulure) 0 0 / 150px 30px repeat-x; mask: var(--coulure) 0 0 / 150px 30px repeat-x;
}
/* Parfum de l'encart : coulure, bordure et icône de la même couleur */
.atout:nth-child(1) { --parfum: var(--fraise); }
.atout:nth-child(2) { --parfum: var(--pistache); }
.atout:nth-child(3) { --parfum: var(--myrtille); }
.atout:nth-child(4) { --parfum: var(--mangue); }
.atout:nth-child(5) { --parfum: var(--citron); }
.atout:nth-child(6) { --parfum: var(--menthe); }
.atout:nth-child(even)::before { -webkit-mask-position: -70px 0; mask-position: -70px 0; }
.atout .ico { color: var(--parfum); stroke-width: 2.4; }
.atout p { color: var(--text-soft); margin: 0; }
@media (max-width: 980px) { .atouts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .atouts { grid-template-columns: 1fr; } }

/* Drapeau tricolore (sans emoji, rendu identique sur tous les systèmes) */
.tricolore {
    display: inline-block; width: 22px; height: 14px; margin-right: .6em; vertical-align: -1px;
    border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
    background: linear-gradient(90deg, #002395 0 33.33%, #fff 33.33% 66.66%, #ed2939 66.66%);
}

/* Empreinte écologique */
.section-eco {
    background:
        var(--vagues) 0 0 / 160px 44px repeat,
        linear-gradient(180deg, #def3f6 0%, #eff9f8 70%, #fff 100%);
}
.section-eco .eyebrow { color: #1d8a5f; }
.eco { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.eco-text p { color: var(--text-soft); }
.eco-text p strong { color: var(--navy); }
.eco-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.eco-points li { background: rgba(255, 255, 255, .85); border: 1px solid #cfeadc; box-shadow: inset 0 3px 0 rgba(127, 214, 194, .55); border-radius: var(--radius-sm); padding: 20px; }
.eco-points strong { display: block; font-family: var(--font-display); font-size: 1.45rem; color: #1d8a5f; line-height: 1.2; margin-bottom: 6px; }
.eco-points span { color: var(--text-soft); font-size: .95rem; }
@media (max-width: 900px) { .eco { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 460px) { .eco-points { grid-template-columns: 1fr; } }

/* Fonctionnalités */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
#fonctionnalites,
.communaute { /* même fond crème quadrillé pour la section « Rejoignez le réseau social… » */
    background:
        repeating-linear-gradient(45deg, rgba(230, 179, 106, .13) 0 2px, transparent 2px 26px),
        repeating-linear-gradient(-45deg, rgba(230, 179, 106, .13) 0 2px, transparent 2px 26px),
        var(--cream);
}
.feature { background: #fff; border-radius: var(--radius-sm); padding: 24px; box-shadow: 0 1px 0 var(--line); border: 1px solid #f1e6cf; }
.feature .ico { width: 2.3em; height: 2.3em; padding: .5em; border-radius: 50%; background: var(--boule); color: var(--navy-dk); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .07); }
.feature:nth-child(5n+1) { --boule: #fcd5df; }
.feature:nth-child(5n+2) { --boule: #e2f0cf; }
.feature:nth-child(5n+3) { --boule: #e0dbf6; }
.feature:nth-child(5n+4) { --boule: #fde7bf; }
.feature:nth-child(5n)   { --boule: #d3f2ea; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--text-soft); margin: 0; font-size: 1rem; }
.langues { margin: 30px 0 0; text-align: center; color: var(--text-soft); }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* Workflow */
#workflow {
    /* Photo du glacier à l'ouvrage en haut de section (hauteur 34.2vw), fondue dans le blanc sous le titre */
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, #fff 100%) center top / 100% 34.2vw no-repeat,
        url("/assets/img/aiceberg-fond-4.webp") center top / 100% auto no-repeat,
        #fff;
    padding-top: calc(31vw + 10px);
}
@media (max-width: 700px) {
    #workflow { padding-top: calc(50vw + 10px); background-size: 100% 54.7vw, 160% auto, auto; }
}
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps li { counter-increment: s; position: relative; padding: 70px 18px 20px; background: linear-gradient(180deg, var(--vanille) 0%, #fff 100%); border: 1px solid #f1e6cf; border-radius: var(--radius-sm); }
.steps li:nth-child(1) { --boule: var(--fraise); }
.steps li:nth-child(2) { --boule: var(--pistache); }
.steps li:nth-child(3) { --boule: var(--mangue); }
.steps li:nth-child(4) { --boule: var(--myrtille); }
.steps li:nth-child(5) { --boule: var(--menthe); }
/* Petit cornet sous la boule */
.steps li::after {
    content: ""; position: absolute; top: 44px; left: 24px; width: 22px; height: 18px;
    background: repeating-linear-gradient(45deg, #d9a35a 0 2px, var(--waffle) 2px 6px);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.steps li::before {
    content: counter(s);
    position: absolute; top: 16px; left: 18px;
    width: 34px; height: 34px; border-radius: 50%; z-index: 1;
    display: grid; place-items: center;
    background: var(--boule, var(--fraise)); color: var(--navy-dk); font-weight: 800;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .1);
}
.steps strong { display: block; color: var(--navy); font-size: 1.08rem; margin-bottom: 6px; }
.steps span { color: var(--text-soft); font-size: .96rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Méthode */
.section-navy {
    background:
        /* Mer au crépuscule */
        var(--vagues-claires) 0 0 / 160px 44px repeat,
        radial-gradient(500px 300px at 85% 0%, rgba(247, 184, 75, .16), transparent 65%),
        linear-gradient(180deg, var(--navy) 0%, #1a4f72 100%);
    color: #dce6ef;
}
#methode {
    /* Photo de la cheffe en recherche et développement (hauteur 34.2vw), fondue dans le bleu nuit sous le titre */
    background:
        linear-gradient(180deg, rgba(23, 58, 94, 0) 40%, var(--navy) 100%) center top / 100% 34.2vw no-repeat,
        url("/assets/img/aiceberg-fond-5.webp") center top / 100% auto no-repeat,
        var(--navy);
    padding-top: calc(31vw + 10px);
}
@media (max-width: 700px) {
    #methode { padding-top: calc(50vw + 10px); background-size: 100% 54.7vw, 160% auto, auto; }
}
.section-navy h2 { color: #fff; }
.section-navy .eyebrow { color: var(--waffle); }
.section-navy strong { color: #fff; }
.methode { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.methode-text p { font-size: 1.1rem; }
@media (max-width: 860px) { .methode { grid-template-columns: 1fr; gap: 10px; } }

/* Équipe */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.person { display: flex; gap: 20px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: linear-gradient(160deg, var(--vanille) 0%, #fff 55%); }
.avatar {
    flex: none; width: 64px; height: 64px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--ice); color: #fff; font-weight: 800; font-size: 1.2rem;
}
.avatar-orange { background: var(--fraise); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .1); }
.avatar-photo { width: 96px; height: 96px; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--menthe); }
.person h3 { margin-bottom: .15em; }
.role { color: var(--orange-dk); font-weight: 700; font-size: .95rem; margin-bottom: .7em; }
.person p:last-child:not(.role) { color: var(--text-soft); margin: 0; }
@media (max-width: 800px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .person { flex-direction: column; padding: 22px; } }

/* Pour qui */
.publics { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
#pour-qui {
    /* Photo du dessert en haut de section (hauteur 34.2vw), fondue dans la vanille sous le titre */
    background:
        linear-gradient(180deg, rgba(253, 243, 212, 0) 55%, var(--vanille) 100%) center top / 100% 34.2vw no-repeat,
        url("/assets/img/aiceberg-fond-3.webp") center top / 100% auto no-repeat,
        var(--vanille);
    padding-top: calc(31vw + 10px);
}
@media (max-width: 700px) {
    #pour-qui { padding-top: calc(50vw + 10px); background-size: 100% 54.7vw, 160% auto, auto; }
}
.publics li { display: flex; align-items: center; gap: .6em; background: #fff; border: 2px solid var(--cream-2); border-radius: 999px; padding: .6em 1.3em; font-weight: 700; color: var(--navy); }
.publics li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--boule); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.publics li:nth-child(1) { --boule: var(--fraise); border-color: #fcd5df; }
.publics li:nth-child(2) { --boule: var(--chocolat); border-color: #ead8cc; }
.publics li:nth-child(3) { --boule: var(--pistache); border-color: #e2f0cf; }
.publics li:nth-child(4) { --boule: var(--myrtille); border-color: #e0dbf6; }
.publics li:nth-child(5) { --boule: var(--mangue); border-color: #fde7bf; }

/* FAQ */
/* Fond bleu lagon : se distingue du sable de la section Contact */
#faq { background: linear-gradient(180deg, #e6f5fa 0%, #d9eff7 100%); }
/* Questions en cartes repliables : en-tête foncé texte blanc, réponse sur fond blanc texte foncé */
.faq { display: grid; gap: 14px; }
.faq details {
    background: #fff; border: 1.5px solid var(--navy); border-radius: var(--radius);
    box-shadow: 0 0 0 4px rgba(23, 58, 94, .1), 0 2px 10px -4px rgba(15, 40, 64, .15);
    overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { box-shadow: 0 0 0 4px rgba(47, 178, 216, .25), 0 6px 20px -8px rgba(15, 40, 64, .25); }
.faq summary {
    cursor: pointer; list-style: none;
    padding: 20px 76px 20px 24px; position: relative;
    font-weight: 700; color: #fff; font-size: 1.08rem;
    background: var(--navy); transition: background-color .2s;
}
.faq summary:hover { background: #1f4a75; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 20px 20px no-repeat, rgba(255, 255, 255, .14);
    transition: transform .25s, background-color .2s;
}
.faq summary:hover::after { background-color: rgba(255, 255, 255, .24); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); }

.faq details p { margin: 0; padding: 16px 24px 20px; background: #fff; color: var(--text); }
@media (max-width: 560px) { .faq summary { padding: 16px 64px 16px 18px; font-size: 1rem; } .faq summary::after { right: 12px; width: 36px; height: 36px; } .faq details p { padding: 14px 18px 18px; } }

/* Contact */
/* Scène de plage calée en bas, sous le formulaire */
.section-contact {
    background:
        linear-gradient(180deg, #f9efdc 0, rgba(249, 239, 220, 0) 14%) center bottom / 100% 34.2vw no-repeat,
        url("/assets/img/aiceberg-fond-1.webp") center bottom / 100% auto no-repeat,
        #f9efdc;
}
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.contact-intro p { color: var(--text-soft); }
.contact-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; border: 1px solid var(--line); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 20px; } .contact-card { padding: 24px 20px; } }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--navy); font-size: .95rem; margin-bottom: 6px; }
.field label span { color: var(--cherry); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="url"], .field textarea {
    width: 100%; font: inherit; color: var(--text);
    padding: .75em .9em;
    border: 1.5px solid #d9cdb4; border-radius: 10px; background: #fffdf9;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 4px rgba(47, 178, 216, .18); }
.field [aria-invalid="true"] { border-color: var(--cherry); background: #fff6f4; }
.champ-erreur { color: #b8291b; font-size: .9rem; font-weight: 600; margin: 6px 0 0; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.field-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--orange); }
.field-check label { font-weight: 400; color: var(--text-soft); font-size: .93rem; margin: 0; }
.field-check .champ-erreur { grid-column: 1 / -1; }
.field-radios { border: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.field-radios legend { width: 100%; padding: 0; font-weight: 700; color: var(--navy); font-size: .95rem; margin-bottom: 6px; }
.field-radios legend span { color: var(--cherry); }
.field-radios label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; color: var(--text); margin: 0; cursor: pointer; }
.field-radios input { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); }
.field-radios .champ-erreur { width: 100%; }
.field-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--text-soft); }
.alerte { border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; }
.alerte-ok { background: #e4f6ee; color: #145c40; border: 1px solid #b7e4cf; font-size: 1.05rem; margin: 0; }
.alerte-ko { background: #fdecea; color: #8e2216; border: 1px solid #f5c3bc; font-weight: 600; }

/* ── Pied de page ── */
.site-footer { background: var(--navy-dk); color: #b9c7d4; padding: 50px 0 26px; font-size: .95rem; }
/* Le sable du contact rejoint la mer du pied de page */
.section-contact { padding-bottom: calc(23vw + 70px); }
@media (max-width: 860px) { .section-contact { padding-bottom: calc(46vw + 60px); background-size: 100% 68.4vw, 200% auto, auto; background-position: 72% bottom, 72% bottom, 0 0; } }
.section-contact::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 26c120-20 240-20 360 0s240 20 360 0 240-20 360 0 120 10 120 10V60H0z' fill='%2357c3e3' fill-opacity='.6'/%3E%3Cpath d='M0 38c100-16 200-16 300 0s200 16 300 0 200-16 300 0 200 16 300 0v22H0z' fill='%230f2840'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { border-radius: 50%; }
.footer-brand p { margin: 0; }
/* Liste de l'écosystème (logiciel, annuaire, réseau) */
.footer-texte ul { margin: .4em 0 0; padding-left: 1.2em; }
.footer-texte li { margin: .15em 0; }
.footer-brand strong { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.footer-nav a { color: #dce6ef; text-decoration: none; }
.footer-nav a:hover { color: var(--waffle); }
.footer-legal { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: #8ea1b3; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-legal p { margin: 0; }
.footer-7817 { text-align: right; line-height: 1.5; }
.footer-7817 a:hover { color: #fff !important; }
@media (max-width: 560px) { .footer-7817 { text-align: left; } }

/* ── Page mentions légales ── */
.legal { padding: 60px 0 80px; }
.legal h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal .a-completer { background: #fff3cd; padding: 0 .3em; border-radius: 4px; }

/* ── Apparition au défilement ── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
/* Photos de fond sous la ligne de flottaison : téléchargées seulement à l'approche de la section (main.js retire la classe) */
.fond-differe { background-image: none !important; }

/* Tableau des cookies */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.cookies-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.cookies-table th, .cookies-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cookies-table th { background: var(--cream); color: var(--navy); }
.legal .maj { margin-top: 2.5em; font-size: .9rem; color: var(--text-soft); }

/* ALTCHA */
.field-altcha altcha-widget {
    --altcha-max-width: 100%;
    --altcha-border-radius: 10px;
    --altcha-color-border: #d9cdb4;
    --altcha-color-base: #fffdf9;
    --altcha-color-text: var(--text);
    --altcha-color-border-focus: var(--ice);
}

/* ── Page Aperçu de l'interface (demo) ── */
.demo-hero {
    background: linear-gradient(180deg, #e3f4fa 0%, var(--cream) 100%);
    padding: 70px 0 60px; text-align: center;
}
.demo-hero .lead { margin: 0 auto; }
.demo-video { max-width: 960px; margin: 40px auto 0; }
.demo-video video { display: block; width: 100%; height: auto; border-radius: 14px; background: #000; box-shadow: 0 18px 40px rgba(20, 40, 60, .18); }
.demo-video .demo-video-mobile { display: none; }
@media (max-width: 700px) {
    .demo-video { max-width: 420px; margin-top: 32px; }
    .demo-video .demo-video-pc { display: none; }
    .demo-video .demo-video-mobile { display: block; }
}
.demo-ecrans { padding-top: 70px; }
.demo-ecran { display: grid; grid-template-columns: .72fr 1.6fr; gap: 48px; align-items: center; }
.demo-ecran + .demo-ecran { margin-top: 90px; }
.demo-ecran:nth-child(even) { grid-template-columns: 1.6fr .72fr; }
.demo-ecran:nth-child(even) .demo-texte { order: 2; }
.demo-num { font-family: var(--font-display); font-weight: 800; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); margin-bottom: .6em; }
.demo-texte p { color: var(--text-soft); }
.demo-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.demo-points li { position: relative; padding-left: 1.5em; color: var(--navy); font-weight: 600; font-size: .97rem; }
.demo-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: .7em; height: .7em; border-radius: 50%; background: var(--fraise); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
/* Capture présentée dans une fenêtre d'application */
.demo-fenetre {
    display: block; border-radius: var(--radius-sm); overflow: hidden;
    background: #0f2840; box-shadow: 0 24px 50px -20px rgba(15, 40, 64, .45), 0 0 0 1px rgba(15, 40, 64, .12);
    transition: transform .25s, box-shadow .25s;
}
.demo-fenetre:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -20px rgba(15, 40, 64, .55), 0 0 0 1px rgba(15, 40, 64, .12); }
.demo-barre { display: flex; gap: 6px; padding: 10px 14px; background: #0b2233; }
.demo-barre i { width: 10px; height: 10px; border-radius: 50%; background: #f27a9b; }
.demo-barre i:nth-child(2) { background: var(--mangue); }
.demo-barre i:nth-child(3) { background: var(--pistache); }
.demo-fenetre img { width: 100%; }
.demo-cta { background: var(--navy); color: #dce6ef; text-align: center; }
.demo-cta h2 { color: #fff; }
.demo-cta p { margin-bottom: 1.6em; }
@media (max-width: 900px) {
    .demo-ecran { grid-template-columns: 1fr; gap: 24px; }
    .demo-ecran:nth-child(even) { grid-template-columns: 1fr; }
    .demo-ecran:nth-child(even) .demo-texte { order: 0; }
    .demo-ecran + .demo-ecran { margin-top: 64px; }
}

/* ── Nous suivre ── */
.section-suivre { background: #fff; padding: 70px 0; }
.suivre { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.suivre-texte h2 { margin-bottom: .3em; }
.suivre-texte p:last-child { color: var(--text-soft); margin: 0; }
.reseaux { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.reseau {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px 12px 12px; border-radius: var(--radius);
    background: #fff; border: 1.5px solid var(--reseau); box-shadow: 0 0 0 4px var(--reseau-halo);
    text-decoration: none; color: var(--navy); transition: transform .2s, box-shadow .2s;
}
.reseau:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px var(--reseau-halo), 0 10px 24px -12px var(--reseau); color: var(--navy); }
.reseau-yaaka { --reseau: #8a4fcc; --reseau-halo: rgba(160, 100, 224, .14); }
.reseau-logo { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--reseau); color: #fff; }
.reseau-logo svg { width: 22px; height: 30px; }
.reseau-nom { display: grid; line-height: 1.25; }
.reseau-nom strong { font-family: var(--font-display); font-size: 1.15rem; }
.reseau-nom span { color: var(--text-soft); font-size: .92rem; }
.reseau-suivre { margin-left: 10px; padding: .45em 1.1em; border-radius: 999px; background: var(--reseau); color: #fff; font-weight: 700; font-size: .9rem; }
@media (max-width: 760px) { .suivre { grid-template-columns: 1fr; gap: 24px; } }
.suivre-tous { margin: 28px 0 0; text-align: center; }

/* ── Cloche des notifications (barre du haut, ordinateur et mobile) ── */
.header-inner .nav { order: 2; margin-left: auto; }
.cloche-zone { order: 3; position: relative; margin-left: 18px; }
.cloche-zone[hidden] { display: none; }
.nav-toggle { order: 4; }
.cloche-bouton { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--navy); transition: background .2s; }
.cloche-bouton:hover, .cloche-bouton[aria-expanded="true"] { background: var(--cream); }
.cloche-bouton:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
.cloche-bouton svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cloche-compteur { position: absolute; top: 3px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--cherry); color: #fff; font-size: .7rem; font-weight: 800; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.cloche-compteur[hidden] { display: none; }
/* Notifications push inactives sur cet appareil : cloche barrée (cloche.js) */
.cloche-bouton.push-off svg { opacity: .55; }
.cloche-bouton.push-off::after { content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 2.4px; border-radius: 2px; background: var(--cherry); box-shadow: 0 0 0 1.5px #fff; transform: translate(-50%, -50%) rotate(-45deg); pointer-events: none; }
.cloche-push { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--cream); border-bottom: 1px solid var(--line); color: var(--navy); font-size: .9rem; line-height: 1.35; }
.cloche-push[hidden] { display: none; }
.cloche-push span { flex: 1; }
.cloche-push .btn { flex-shrink: 0; }
.cloche-push .btn[hidden] { display: none; }

.cloche-panneau { position: absolute; top: calc(100% + 12px); right: -8px; z-index: 60; width: 380px; max-width: calc(100vw - 24px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.cloche-panneau[hidden] { display: none; }
.cloche-entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: #F97A4E; color: #fff; }
.cloche-entete a.cloche-voir-tout { padding: 5px 14px; border-radius: 999px; background: #fff; color: #c2410c; font-weight: 800; font-size: .85rem; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.cloche-entete a.cloche-voir-tout:hover, .cloche-entete a.cloche-voir-tout:focus-visible { background: #173a5e; color: #fff; outline: none; }
.cloche-vide { margin: 0; padding: 22px 18px; color: var(--text-soft); font-size: .95rem; }

/* Liste de notifications (panneau et page /compte/notifications) */
.notifs-liste { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.notifs-page { max-height: none; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.notifs-liste li + li { border-top: 1px solid var(--line); }
.notifs-liste a { display: flex; align-items: center; gap: 12px; padding: 12px 18px; text-decoration: none; color: var(--text); transition: background .15s; }
.notifs-liste a:hover { background: var(--cream); }
.notifs-liste li.non-lue a { background: var(--ice-pale); }
.notifs-liste li.non-lue a:hover { background: #d3eef7; }
.notifs-liste img, .notif-initiale { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--line); }
.notif-initiale { display: inline-flex; align-items: center; justify-content: center; background: var(--cream); color: var(--navy); font-weight: 700; }
.notif-corps { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .93rem; line-height: 1.4; }
.notif-texte-ligne { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-corps small { color: var(--text-soft); font-size: .8rem; }
.notifs-liste li.non-lue .notif-corps small { color: #1b8db3; font-weight: 700; }

@media (max-width: 1180px) {
    /* Mobile : la cloche reste dans la barre, juste avant le bouton menu */
    .cloche-zone { margin-left: auto; margin-right: 6px; }
    .cloche-panneau { position: fixed; top: 74px; right: 12px; left: 12px; width: auto; max-width: none; }
    .notifs-liste { max-height: 60vh; }
}

/* Ordinateur : la cloche en premier, juste avant « Le logiciel » */
@media (min-width: 1181px) {
    .cloche-zone { order: 2; margin-left: auto; margin-right: 18px; }
    .header-inner .nav { order: 3; margin-left: 0; }
}

/* Icône messagerie à droite de la cloche */
.cloche-zone { display: flex; align-items: center; gap: 2px; }
.cloche-zone[hidden] { display: none; }
.cloche-zone .cloche-panneau { right: 38px; }

/* Groupes de boutons : espacés, y compris quand ils passent à la ligne (mobile) */
.boutons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Compte connecté dans la navigation : logo rond + nom */
.nav-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--line); background: var(--cream); color: var(--navy); font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; }
.nav-compte-connecte .nav-texte { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1180px) {
    .nav-avatar { width: 36px; height: 36px; border-color: rgba(255,255,255,.6); }
    .nav-compte-connecte .nav-texte { max-width: none; }
}

/* Mobile : pas de pied de page (le bouton de consentement 7817, ajouté par son script, reste affiché).
   Les liens légaux sont dans le menu latéral : onglet déroulant « Infos légales » (header-nav.php). */
@media (max-width: 760px) { .site-footer { display: none; } }
/* « Infos légales » : seulement dans le menu latéral (mobile, tablette), jamais dans la barre ordinateur */
.nav .nav-groupe-legal { display: none; }
@media (max-width: 1180px) { .nav .nav-groupe-legal { display: block; } }

/* Connecté : logo et nom du compte à la place de « aiceberg.pro » (en haut à gauche) */
.brand-compte { min-width: 0; }
.brand-compte img, .brand-initiale { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--line); }
.brand-initiale { display: inline-flex; align-items: center; justify-content: center; background: var(--cream); color: var(--navy); font-size: 1.1rem; }
.brand-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; min-width: 0; } /* min-width : se raccourcit (…) s'il manque de place */
@media (max-width: 1180px) { .brand-nom { max-width: 42vw; font-size: 1.1rem; } }
@media (max-width: 400px)  { .brand-nom { max-width: 34vw; font-size: 1rem; } }
/* « Connexion » masqué une fois connecté (l'attribut hidden l'emporte sur le display des liens) */
#nav-compte[hidden] { display: none !important; }

/* Bouton d'action destructive (suppression de compte) */
.btn-danger { background: #b3261e; border-color: #b3261e; color: #fff; }
.btn-danger:hover, .btn-danger:focus-visible { background: #8e1c16; border-color: #8e1c16; color: #fff; }

/* Fenêtres du site (remplacent alert / confirm / prompt du navigateur) : assets/js/modale.js */
.modale { width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--text); box-shadow: 0 30px 80px -20px rgba(15, 40, 64, .45); }
.modale::backdrop { background: rgba(15, 40, 64, .55); }
.modale-interieur { padding: 28px 26px 22px; }
.modale-texte { margin: 0 0 18px; font-size: 1.05rem; line-height: 1.55; color: var(--navy); font-weight: 600; }
.modale-champ { width: 100%; padding: 12px 14px; margin: 0 0 18px; border: 2px solid var(--line); border-radius: 12px; font: inherit; outline: none; }
.modale-champ:focus { border-color: var(--ice); box-shadow: 0 0 0 4px rgba(47, 178, 216, .18); }
.modale-boutons { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
@media (max-width: 480px) { .modale-boutons .btn { flex: 1 1 auto; justify-content: center; } }

/* Accueil, compte connecté : la section contact renvoie vers la messagerie */
.contact-messagerie { text-align: center; padding: 12px 4px; }
.contact-messagerie svg { width: 48px; height: 48px; fill: none; stroke: var(--ice); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.contact-messagerie p { margin: 0 0 20px; line-height: 1.6; }

/* Menu « Nous contacter » (compte connecté) : Formateur, Commercial, Développeur IA */
/* « Nous contacter » : même apparence que les autres onglets (.nav-groupe-bouton) */

.nav-sous-contacts a, .nav-sous-contacts .contact-indispo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contact-indispo { padding: 10px 12px; border-radius: 8px; color: var(--text-soft); cursor: not-allowed; opacity: .7; font-weight: 600; font-size: .94rem; }
.contact-indispo small, .nav-sous-contacts small { font-size: .75rem; font-weight: 500; font-style: italic; }
@media (min-width: 1181px) {
    .nav-groupe-contact .nav-sous { left: auto; right: 0; }
}
@media (max-width: 1180px) {
    /* onglet simple, comme les autres liens du menu */

    .nav-groupe-contact .nav-chevron { margin-left: 4px; }
    .nav-sous-contacts .contact-indispo { color: rgba(255, 255, 255, .55); padding: 13px 4px; font-size: 1.05rem; }
}
.contacts-equipe { display: grid; gap: 10px; }
.btn-indispo { background: var(--cream-2); border-color: var(--cream-2); color: var(--text-soft); cursor: not-allowed; }
.btn-indispo:hover { background: var(--cream-2); border-color: var(--cream-2); color: var(--text-soft); transform: none; }

/* Menu du compte (logo et nom en haut à gauche, une fois connecté) */
.brand-zone { position: relative; min-width: 0; display: flex; align-items: center; }
.brand-compte { cursor: pointer; }
.brand-chevron { width: 16px; height: 16px; flex-shrink: 0; color: var(--navy); transition: transform .25s; }
.brand-zone.ouvert .brand-chevron { transform: rotate(180deg); }
/* Panneau latéral gauche, collé au bord de l’écran, toute la hauteur, défilant si les onglets dépassent */
.menu-compte {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
    width: min(86vw, 330px); height: 100vh; height: 100dvh; box-sizing: border-box;
    padding: 0 10px 24px; overflow-y: auto; overscroll-behavior: contain;
    background: var(--white); border-right: 1px solid var(--line);
    box-shadow: 18px 0 40px -12px rgba(15, 40, 64, .35);
    transform: translateX(-100%); visibility: hidden;
    transition: transform .3s cubic-bezier(.22, .61, .36, 1), visibility 0s linear .3s, box-shadow .3s;
}
.menu-compte.ouvert {
    transform: none; visibility: visible;
    box-shadow: 18px 0 40px -12px rgba(15, 40, 64, .35), 0 0 0 100vmax rgba(15, 40, 64, .45); /* voile sur la page */
    transition: transform .3s cubic-bezier(.22, .61, .36, 1), visibility 0s, box-shadow .3s;
}
@media (prefers-reduced-motion: reduce) { .menu-compte, .menu-compte.ouvert { transition: none; } }
html.menu-compte-ouvert { overflow: hidden; }
.menu-compte-entete { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -10px 6px; padding: 16px 12px 12px 22px; background: var(--white); border-bottom: 1px solid var(--line); }
.menu-compte-entete strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy); font-family: var(--font-display); font-size: 1.05rem; }
.menu-compte .menu-compte-fermer { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 1.7rem; line-height: 1; font-weight: 400; color: var(--navy); }
/* La barre du haut ne doit pas enfermer le panneau (le flou d’arrière-plan crée un cadre pour position: fixed) */
.site-header.connecte { background: rgba(255, 255, 255, .97); backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-compte a, .menu-compte button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; text-align: left; font: inherit; font-weight: 600; font-size: .94rem; color: var(--navy); text-decoration: none; cursor: pointer; }
.menu-compte a:hover, .menu-compte a:focus-visible, .menu-compte button:hover, .menu-compte button:focus-visible { background: var(--cream); }
.menu-compte hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu-compte form { margin: 0; }
.menu-compte .menu-compte-danger { color: #b3261e; font-weight: 500; font-size: .88rem; }
@media (max-width: 1180px) {
    /* (mobile : même panneau latéral gauche) */
    .brand-chevron { width: 14px; height: 14px; }
}

/* Icônes dans les menus du compte et « Nous contacter » */
.menu-compte a, .menu-compte button { display: flex; align-items: center; gap: 10px; }
.menu-compte .nav-icone { width: 18px; height: 18px; color: var(--ice); }
.menu-compte .menu-compte-avatar { width: 22px; height: 22px; margin: 0 -2px; border-width: 1px; font-size: .7rem; } /* logo du compte : aligné sur les icônes de 18px */
.nav-sous-contacts a, .nav-sous-contacts .contact-indispo { justify-content: flex-start; }
.nav-sous-contacts small { margin-left: auto; }
.nav-sous-contacts .nav-icone { color: var(--ice); }
.contact-indispo .nav-icone { opacity: .6; }

/* ==========================================================================
   Barre fixe en bas (compte connecté, créée par cloche.js) :
   cookies 7817, notifications, messagerie, nouvelle publication (+)
   ========================================================================== */
.barre-compte {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; justify-content: center; gap: clamp(18px, 8vw, 56px);
    height: calc(68px + env(safe-area-inset-bottom)); padding: 0 16px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px -10px rgba(15, 40, 64, .25);
}
html.avec-barre-compte body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
/* Le bouton rond flottant du CMP est remplacé par celui de la barre */
html.avec-barre-compte .cmp7817-manage-link { display: none !important; }
/* Point vert sur « Mon fil » : nouvelles publications avec un hashtag suivi (cloche.js) */
.barre-point { position: absolute; top: 7px; right: 7px; width: 11px; height: 11px; border-radius: 50%; background: #1fae6b; box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.barre-point[hidden] { display: none; }
.barre-bouton { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: background .2s, transform .2s; }
.barre-bouton:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
.barre-cookies:hover { background: var(--cream); }
.barre-cookies img { width: 32px; height: 32px; border-radius: 50%; display: block; }
.barre-avatar { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--line); background: var(--cream); color: var(--navy); font-size: .85rem; font-weight: 700; line-height: 1; }
.barre-plus { color: var(--navy); text-decoration: none; }
.barre-plus-rond { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--orange-btn); color: #fff; box-shadow: 0 4px 10px -4px rgba(197, 75, 36, .55); transition: background .2s, transform .2s; }
.barre-plus:hover .barre-plus-rond, .barre-plus:focus-visible .barre-plus-rond { background: var(--orange-dk); transform: translateY(-1px); }
.barre-plus svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
/* Bouton + : fenêtre centrée « Créer une publication » / « Partager un lien » (cloche.js), identique en mode clair et sombre */
.publier-modale { width: min(360px, calc(100vw - 32px)); margin: auto; padding: 28px 24px 24px; border: 0; border-radius: 20px; background: #C44D24; color: #fff; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .55); }
.publier-modale::backdrop { background: rgba(10, 20, 29, .55); backdrop-filter: blur(2px); }
.publier-modale h2 { margin: 0 0 20px; color: #fff; font-family: var(--font-display); font-size: 1.4rem; text-align: center; }
.publier-modale-choix { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; padding: 14px 18px; border-radius: 30px; background: #fff; color: #C44D24; font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.publier-modale-choix:hover, .publier-modale-choix:focus-visible { color: #C44D24; transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .45); outline: none; }
.publier-modale-choix:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55); }
.publier-modale-choix svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.publier-modale-fermer { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.publier-modale-fermer:hover, .publier-modale-fermer:focus-visible { background: rgba(255, 255, 255, .18); outline: none; }
/* Page « Partager un lien » (compte/publication.php?lien=1) */
.lien-partage .field-aide, #form-publication .field-aide { margin: 8px 0 0; font-size: .85rem; color: var(--text-soft); }
.lien-bloque { margin-top: 24px; padding: 16px 20px; background: #fff3cd; border: 1px solid #ffc107; border-radius: 12px; color: #856404; }
.lien-bloque strong { display: block; font-size: 1.02rem; }
.lien-bloque p { margin: 6px 0 14px; font-size: .92rem; }
html[data-theme="sombre"] .lien-bloque { background: #2e2810; border-color: #8a6d12; color: #f0d68a; }
.lien-apercu-bloc { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.lien-apercu-bloc img { display: block; width: 100%; max-height: 420px; object-fit: cover; background: var(--cream); }
.lien-apercu-infos { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 18px; }
.lien-apercu-source { color: var(--text-soft); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.lien-apercu-infos strong { color: var(--navy); font-size: 1.1rem; line-height: 1.3; }
.lien-apercu-infos p { margin: 0; color: var(--text-soft); font-size: .92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lien-apercu-adresse { overflow: hidden; color: var(--text-soft); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.lien-changer { margin: 10px 0 28px; font-size: .9rem; }
/* Menu du compte : accès rapide aux comptes (le sien et les comptes gérés) */
.menu-comptes form { margin: 0; }
.menu-comptes-titre { margin: 4px 12px 4px; color: var(--text-soft); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.menu-compte .menu-compte-choix { gap: 10px; padding: 8px 12px; }
.menu-compte .menu-compte-choix.actif { cursor: default; background: var(--cream); box-shadow: inset 3px 0 0 var(--orange-btn); }
.menu-compte-choix img, .menu-compte-initiale { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.menu-compte-initiale { display: inline-flex; align-items: center; justify-content: center; background: var(--cream); color: var(--navy); font-size: .85rem; font-weight: 700; }
.menu-compte-nom { display: flex; flex-direction: column; min-width: 0; }
.menu-compte-nom strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-compte-nom small { color: var(--text-soft); font-size: .76rem; font-weight: 500; }
/* Gestionnaires du compte (compte/gestionnaires.php, compte/changer-compte.php, bandeau de cloche.js) */
.bandeau-gestion { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 8px 16px; background: var(--navy-fond, #1d4f7a); color: #fff; font-size: .9rem; text-align: center; }
.bandeau-gestion form { margin: 0; }
.bandeau-gestion button { padding: 5px 14px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 20px; background: none; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.bandeau-gestion button:hover, .bandeau-gestion button:focus-visible { background: rgba(255, 255, 255, .15); }
.gestion-liste { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gestion-liste > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.gestion-compte { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 240px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; }
.gestion-compte img, .gestion-initiale { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.gestion-initiale { display: inline-flex; align-items: center; justify-content: center; background: var(--cream); color: var(--navy); font-weight: 700; }
.gestion-texte { display: flex; flex-direction: column; min-width: 0; }
.gestion-texte strong { color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gestion-texte small { color: var(--text-soft); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gestion-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.gestion-actions form { margin: 0; }
.gestion-choix > li { padding: 0; }
.gestion-choix form { width: 100%; }
.gestion-choix .gestion-compte { width: 100%; padding: 12px 14px; border-radius: 14px; cursor: pointer; }
.gestion-choix .gestion-compte:hover, .gestion-choix .gestion-compte:focus-visible { background: var(--cream); }
.gestion-choix .gestion-compte.actif { cursor: default; box-shadow: inset 0 0 0 2px var(--ice); }
.gestion-inviter { margin-top: 16px; }
/* Labels de la barre : cachés sur mobile, à droite de l'icône sur ordinateur */
.barre-label { display: none; }
@media (min-width: 1181px) {
    .barre-compte .barre-bouton, .barre-compte .cloche-bouton { width: auto; gap: 8px; padding: 0 14px 0 10px; border-radius: 22px; color: var(--navy); text-decoration: none; }
    .barre-compte .barre-plus:hover { background: var(--cream); }
    .barre-compte .barre-label { display: inline; font-size: .92rem; font-weight: 600; white-space: nowrap; }
    /* Compteurs et point vert : collés à l'icône, pas au bout du label */
    .barre-compte .cloche-compteur { left: 22px; right: auto; }
    .barre-compte .barre-point { left: 28px; right: auto; }
}
/* Cloche et messagerie déplacées dans la barre : icônes au même niveau que les autres */
.barre-compte .cloche-zone { display: contents; margin: 0; }
.barre-compte .cloche-zone[hidden] { display: none; }
.barre-compte .cloche-panneau {
    position: fixed; top: auto; left: 50%; right: auto; bottom: calc(80px + env(safe-area-inset-bottom));
    transform: translateX(-50%); width: min(380px, calc(100vw - 24px)); max-width: none;
}
.barre-compte .notifs-liste { max-height: min(420px, 60vh); }
/* Cloche des notifications dans la nav du haut (cloche.js) : à droite de la loupe sur mobile,
   à droite de « Nous contacter » sur ordinateur. #nav : neutralise les styles des liens du menu */
.cloche-nav { position: relative; flex: none; display: flex; align-items: center; }
.cloche-nav .cloche-bouton { width: 40px; height: 40px; }
.cloche-nav .cloche-bouton svg { width: 22px; height: 22px; stroke-width: 2.2; }
#nav .cloche-nav a.cloche-bouton, #nav .cloche-nav a.cloche-bouton:hover { display: flex; color: var(--navy); }
#nav .cloche-nav .notifs-liste a, #nav .cloche-nav .notifs-liste a:hover { display: flex; gap: 12px; font-size: inherit; font-weight: inherit; color: var(--text); }
#nav .cloche-nav .cloche-entete a.cloche-voir-tout { display: inline-block; font-size: .85rem; font-weight: 800; color: #c2410c; }
#nav .cloche-nav .cloche-entete a.cloche-voir-tout:hover, #nav .cloche-nav .cloche-entete a.cloche-voir-tout:focus-visible { color: #fff; }
@media (max-width: 1180px) {
    .cloche-nav { margin-right: 2px; }
}
/* Ordinateur : labels à droite des icônes (« Notifications », « Mode », « Langue ») */
.label-pc { display: none; }
@media (min-width: 1181px) {
    .cloche-nav .cloche-bouton, .header-inner > .theme-bouton { width: auto; gap: 6px; padding: 0 14px 0 10px; border-radius: 22px; }
    .cloche-nav .barre-label, .label-pc { display: inline; font-size: .94rem; font-weight: 600; color: var(--navy); white-space: nowrap; }
    .langue-zone .langue-bouton { gap: 6px; }
    /* Même espace (20px, celui des onglets) entre tous les éléments de la nav, y compris Mode et Langue :
       la nav est calée à droite, et les marges négatives compensent le rembourrage des boutons arrondis */
    .header-inner { justify-content: flex-start; }
    .header-inner .nav { margin-left: auto; }
    .cloche-nav { margin: 0 -14px 0 -10px; }
    .header-inner > .theme-bouton { margin: 0 -14px 0 10px; }
    .header-inner > .langue-zone { margin: 0 -8px 0 10px; }
    /* Compteur et trait « push désactivé » : sur l'icône, pas sur le label */
    .cloche-nav .cloche-compteur { left: 22px; right: auto; }
    .cloche-nav .cloche-bouton.push-off::after { left: 21px; }
}
/* Messagerie : bouton Envoyer turquoise (l'emporte sur pro.css) */
.messagerie .msg-envoyer { background: #1fcadb; }
.messagerie .msg-envoyer:hover, .messagerie .msg-envoyer:focus-visible { background: #17a9b8; }
/* Messagerie sur mobile : elle tient dans l'écran au-dessus de la barre */
@media (max-width: 760px) {
    html.avec-barre-compte .messagerie { height: calc(100dvh - 190px - 68px - env(safe-area-inset-bottom)); }

    /* Sans bordure, marges gauche/droite réduites (liste et conversation) */
    main.page-messages .wrap { padding-left: 8px; padding-right: 8px; }
    main.page-messages .messagerie { border: 0; border-radius: 0; }

    /* Liste des conversations : titre « Messages » fixe sous la barre du haut,
       seule la liste défile, jusqu'à la barre du bas */
    main.page-messages:not(.page-messages-fil) {
        position: fixed; top: 71px; left: 0; right: 0; bottom: 0; z-index: 10;
        display: flex; flex-direction: column; padding: 0;
    }
    html.avec-barre-compte main.page-messages:not(.page-messages-fil) { bottom: calc(68px + env(safe-area-inset-bottom)); }
    main.page-messages:not(.page-messages-fil) .wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
    main.page-messages:not(.page-messages-fil) h1 { flex: none; margin: 12px 0 10px; }
    main.page-messages:not(.page-messages-fil) .messagerie { flex: 1; min-height: 0; height: auto; grid-template-rows: minmax(0, 1fr); }
    main.page-messages:not(.page-messages-fil) .msg-conversations { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

    /* Conversation ouverte : l'interlocuteur juste sous la barre du haut, la saisie juste au-dessus
       de la barre du bas, les messages défilent entre les deux */
    main.page-messages-fil { padding: 0; }
    main.page-messages-fil h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    main.page-messages-fil .messagerie {
        position: fixed; top: 71px; left: 0; right: 0; bottom: 0; z-index: 10;
        height: auto; min-height: 0;
    }
    html.avec-barre-compte main.page-messages-fil .messagerie { height: auto; bottom: calc(68px + env(safe-area-inset-bottom)); }
    main.page-messages-fil .msg-fil-entete { padding: 8px 10px; gap: 10px; }
    main.page-messages-fil .msg-fil-nom { font-size: .92rem; }
    main.page-messages-fil .msg-liste { padding: 12px 8px; }
    main.page-messages-fil .msg-saisie { padding: 8px; gap: 8px; }
    main.page-messages-fil .msg-bloque { padding: 12px 10px; }
}

/* Page de connexion : lien « Créez votre compte » et fenêtre d'inscription */
.pas-de-compte { margin: 24px 0 0; text-align: center; }
.lien-bouton { border: 0; padding: 0; background: none; font: inherit; font-weight: 700; color: var(--orange-dk); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lien-bouton:hover, .lien-bouton:focus-visible { color: var(--navy); }
.modale-inscription { width: min(560px, calc(100vw - 32px)); }
.modale-inscription .modale-interieur { position: relative; padding: 32px 28px 24px; }
.modale-titre { margin: 0 0 6px; font-size: 1.5rem; }
.modale-intro { margin: 0 0 18px; color: var(--text-soft); }
.modale-note { margin: 14px 0 0; font-size: .85rem; color: var(--text-soft); text-align: center; }
.modale-inscription [data-fermer-inscription] { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 1.8rem; line-height: 1; color: var(--navy); cursor: pointer; }
.modale-inscription [data-fermer-inscription]:hover { background: var(--cream); }

/* Badge « Aide » à côté d'un libellé, ouvrant une fenêtre de conseils (modale.js) */
.label-ligne { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.label-ligne label, .label-ligne .label-zone { margin-bottom: 0; }
.label-ligne { gap: 8px; }
.label-ligne .badge-aide { margin-left: auto; } /* badge calé à droite de la ligne */
.badge-aide { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font: inherit; font-size: .7rem; font-weight: 700; line-height: 1.2; cursor: pointer; }
.badge-aide:hover, .badge-aide:focus-visible { border-color: var(--navy); background: var(--cream); }
.badge-aide::before { content: "?"; display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .6rem; font-weight: 800; }
.modale-aide { width: min(560px, calc(100vw - 32px)); }
.modale-aide .modale-titre { margin-bottom: 12px; font-size: 1.3rem; }
.modale-aide ul { margin: 0 0 16px; padding-left: 1.2em; line-height: 1.55; }
.modale-aide li { margin-bottom: 6px; }
.modale-aide p { line-height: 1.55; }
.modale-aide code { padding: 1px 6px; border-radius: 6px; background: var(--cream); font-size: .88em; overflow-wrap: anywhere; }
.aide-syntaxe { list-style: none; padding-left: 0 !important; }

/* Badge « Aa Mise en forme » flottant (editeur.js) : visible pendant la saisie, au-dessus du clavier,
   il ouvre une copie de la barre d'outils utilisable où que l'on soit dans le texte */
.md-flottant { position: fixed; right: 12px; left: 12px; bottom: 12px; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.md-flottant[hidden] { display: none; }
.md-flottant > * { pointer-events: auto; }
.md-flottant-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: inherit; font-size: .85rem; font-weight: 700; box-shadow: 0 6px 18px -6px rgba(15, 40, 64, .5); cursor: pointer; }
.md-flottant-badge b { font-family: Georgia, serif; font-size: 1rem; }
.md-flottant-badge[aria-expanded="true"] { background: var(--ice); }
.md-flottant-barre { display: flex; gap: 6px; max-width: 100%; padding: 8px; overflow-x: auto; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 28px -10px rgba(15, 40, 64, .45); -webkit-overflow-scrolling: touch; }
.md-flottant-barre[hidden] { display: none; }
.md-flottant-barre button { flex: none; min-width: 40px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--navy); font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.md-flottant-barre button:active { border-color: var(--navy); background: var(--cream); }

/* Badge « Tuto » au-dessus du titre (compte/publication.php), même style que le badge « Aide » */
.badge-ligne { display: flex; justify-content: flex-end; margin: 0 0 6px; }
.badge-aide.badge-tuto { gap: 7px; padding: 4px 14px 4px 4px; border-width: 2px; font-size: .95rem; text-decoration: none; }
.badge-aide.badge-tuto::before { content: "▶"; width: 24px; height: 24px; font-size: .7rem; padding-left: 2px; box-sizing: border-box; }

/* Page tutoriel (compte/tuto-publication.php) */
.page-tuto h2 { scroll-margin-top: 90px; font-size: 1.45rem; margin-top: 2.2em; }
.tuto-intro { font-size: 1.08rem; line-height: 1.65; }
.tuto-sommaire { margin: 24px 0 8px; padding: 18px 22px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); }
.tuto-sommaire ol { margin: 8px 0 0; padding-left: 1.4em; line-height: 1.8; }
.tuto-liste { padding-left: 1.3em; line-height: 1.65; }
.tuto-liste li { margin-bottom: 6px; }
.tuto-regle { margin: 0 0 16px; padding: 16px 20px; border-left: 4px solid var(--ice); background: var(--ice-pale); border-radius: 0 12px 12px 0; }
.tuto-regle p { margin: 0 0 8px; line-height: 1.6; }
.tuto-regle p:last-child { margin-bottom: 0; }
.tuto-cas { margin: 16px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.tuto-cas h3 { margin: 0 0 10px; font-size: 1.05rem; }
.tuto-cas ol { margin: 0 0 12px; padding-left: 1.3em; line-height: 1.7; }
.tuto-cas p { line-height: 1.6; }
.tuto-cas > :last-child { margin-bottom: 0; }
.tuto-voit { margin: 12px 0 6px; font-size: .85rem; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .03em; }
.tuto-code { margin: 0; padding: 12px 14px; background: #fffdf8; border: 1px dashed var(--line); border-radius: 10px; font-family: ui-monospace, Consolas, monospace; font-size: .92rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.tuto-resultat { padding: 4px 16px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, #fbfdfe, #f4f9fb); }
.tuto-resultat > * { margin: 10px 0 !important; }
.tuto-bouton { display: inline-flex; align-items: center; min-width: 30px; height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--navy); font-size: .88rem; font-weight: 700; vertical-align: middle; justify-content: center; }
.tuto-badge-aa { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 8px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.tuto-badge-aa b { font-family: Georgia, serif; }
.tuto-astuces { margin: 8px 0 0; padding-left: 1.3em; color: var(--text-soft); line-height: 1.6; }
.tuto-astuce-seule { color: var(--text-soft); }
.page-tuto code { padding: 1px 6px; border-radius: 6px; background: var(--cream); font-size: .88em; }
.page-tuto kbd { padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--white); font-family: inherit; font-size: .85em; }
.tuto-fin { margin-top: 36px; }

/* Revendication du site (compte/entreprise.php, sous le champ « Site web ») */
.site-revendication { margin: -4px 0 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.site-revendication h3 { margin: 0 0 10px; font-size: 1.1rem; }
.site-revendication h4 { margin: 0 0 8px; font-size: .98rem; color: var(--navy); }
.site-revendication p, .site-revendication li { line-height: 1.6; }
.site-avertissement { padding: 10px 14px; border-left: 4px solid var(--orange); background: var(--white); border-radius: 0 10px 10px 0; font-size: .92rem; }
.site-methode { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.site-methode ol { margin: 0; padding-left: 1.3em; }
.site-methode code, .site-revendication code { padding: 1px 6px; border-radius: 6px; background: var(--cream); font-size: .85em; overflow-wrap: anywhere; }
.site-balise { margin: 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; background: #fffdf8; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.site-statut-ok { margin: 0 0 6px; color: #1a7f4b; font-weight: 600; }

/* Ligne de séparation dans le texte d'une publication (Markdown ---) */
.publi-texte hr { height: 0; margin: 2em 0; border: 0; border-top: 2px solid var(--line); }

/* Invitation à installer l'application sur mobile : assets/js/installer-app.js */
.install-titre { display: flex; align-items: center; gap: 8px; }
.install-titre .install-ico { vertical-align: middle; }
.install-sous-titre { margin: 0 0 8px; font-weight: 700; color: var(--navy); }
.install-etapes { margin: 0 0 20px; padding-left: 1.3em; color: var(--navy); line-height: 1.55; }
.install-etapes li { margin-bottom: 8px; }
.install-ico { display: inline-block; vertical-align: -4px; color: var(--ice); }

/* Pied de page toujours en bas de l'écran, même sur les pages courtes (connexion, notifications…) */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; }
body > .site-header, body > .site-footer { flex-shrink: 0; }
.pas-de-compte { margin: 32px 0 0; text-align: center; }
.pas-de-compte p { margin: 0 0 12px; color: var(--text-soft); }

/* Notifications : icône « personne » sans image de profil, image de la publication à droite */
.notif-personne svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notifs-liste a .notif-corps { flex: 1 1 auto; }
.notifs-liste img.notif-vignette { width: 64px; height: 48px; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; margin-left: auto; }

/* ── Accueil : « Rejoignez la communauté » (visiteurs sans compte) ── */
.communaute { padding: 70px 0; }
.communaute-carte {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center;
    padding: clamp(32px, 5vw, 60px);
    border-radius: 32px;
    background:
        radial-gradient(420px 280px at 92% 10%, rgba(47, 178, 216, .45), transparent 70%),
        radial-gradient(360px 260px at 70% 110%, rgba(242, 122, 155, .28), transparent 70%),
        linear-gradient(135deg, var(--navy) 0%, #1a4f72 100%);
    color: #dce6ef;
    box-shadow: 0 18px 40px rgba(15, 40, 64, .22);
}
.communaute-texte h2 { color: #fff; margin: 0 0 16px; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; }
.communaute-texte p { margin: 0 0 28px; font-size: 1.08rem; line-height: 1.7; max-width: 640px; }
.communaute-bouton { box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
/* Carte de publication à droite (dernière publication en exemple) */
.communaute-avec-exemple { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; }
.communaute-exemple .carte { width: 100%; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); transform: rotate(2deg); }
.communaute-exemple .carte:hover { transform: rotate(0) translateY(-3px); }
@media (max-width: 800px) {
    .communaute-avec-exemple { grid-template-columns: 1fr; }
    .communaute-exemple .carte { max-width: 300px; margin: 0 auto; transform: none; }
}

/* Dernières publications : deux boutons côte à côte (empilés sur petit écran) */
.publis-tout { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 700px) { .communaute { padding: 48px 0; } }

/* Page de connexion : section « Rejoignez la communauté » en version compacte (une colonne) */
.communaute-compacte { grid-template-columns: 1fr; gap: 20px; margin: 56px 0 0; padding: clamp(28px, 5vw, 44px); }
.communaute-compacte .communaute-texte h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.communaute-compacte .communaute-texte p { font-size: 1rem; margin-bottom: 24px; }
/* Liste des avantages (annuaire, profil, publications, vidéos) */
.communaute-compacte .communaute-texte p.communaute-intro { margin-bottom: 12px; }
.communaute-avantages { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 8px; font-size: 1rem; line-height: 1.5; }
.communaute-avantages li { position: relative; padding-left: 1.7em; }
.communaute-avantages li::before {
    content: ""; position: absolute; left: 0; top: .2em; width: 1.1em; height: 1.1em; border-radius: 50%;
    background: #2fb2d8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.communaute-avantages b { color: #fff; }
html[data-theme="sombre"] .communaute-avantages { color: #1f4a6e; }
html[data-theme="sombre"] .communaute-avantages b { color: #0f2840; }
html[data-theme="sombre"] .communaute-avantages li::before { background-color: #1a7fa3; }
/* Catégories qui défilent une à une au-dessus du titre (connexion.js) : deux lignes au plus, hauteur fixe
   (calée en bas : une catégorie courte reste collée au titre, la page ne saute pas) */
.communaute-texte p.communaute-defile {
    display: flex; align-items: flex-end;
    margin: 0 0 12px; max-width: 100%; height: 2.6em; overflow: hidden;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 700; line-height: 1.3; letter-spacing: .02em; color: #7fd3ec;
}
.communaute-defile span {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
    max-width: 100%; overflow: hidden; transition: opacity .4s ease, transform .4s ease;
}
.communaute-defile span.sortie { opacity: 0; transform: translateY(-.6em); }
.communaute-defile span.entree { opacity: 0; transform: translateY(.6em); transition: none; }
html[data-theme="sombre"] .communaute-texte p.communaute-defile { color: #1a7fa3; }

/* Listes déroulantes et groupes de choix des formulaires (ex. métier, statut dans « Mon profil ») */
.field select {
    width: 100%; font: inherit; color: var(--text);
    padding: .75em 2.4em .75em .9em;
    border: 1.5px solid #d9cdb4; border-radius: 10px;
    background: #fffdf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173a5e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .8em center / 18px no-repeat;
    appearance: none; -webkit-appearance: none; cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
.field select:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 4px rgba(47, 178, 216, .18); }
fieldset.field { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
fieldset.field legend { padding: 0; font-weight: 700; color: var(--navy); font-size: .95rem; margin-bottom: 8px; }
fieldset.field legend span { color: var(--cherry); }
fieldset.field .field-check { margin: 0 0 8px; }
.field-check input[type="radio"] { accent-color: var(--orange); }

/* ==========================================================================
   Bouton mode nuit (header-nav.php, assets/js/theme.js)
   Mobile : à gauche du menu ☰ ; ordinateur : juste après « Nous contacter »
   ========================================================================== */
.theme-bouton { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--navy); cursor: pointer; transition: background .2s; }
.theme-bouton:hover { background: var(--cream); }
.theme-bouton svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-soleil { display: none; }
html[data-theme="sombre"] .theme-lune { display: none; }
html[data-theme="sombre"] .theme-soleil { display: block; }
@media (min-width: 1181px) { .theme-bouton { order: 4; margin-left: 12px; } }
/* Mobile : le mode nuit passe dans le menu, en haut à gauche du panneau (en face de la croix) */
.theme-bouton-menu { display: none; }
@media (max-width: 1180px) {
    .header-inner > .theme-bouton { display: none; }
    .nav .theme-bouton-menu { display: inline-flex; position: absolute; top: 13px; left: 24px; width: 44px; height: 44px; color: #fff; }
    .nav .theme-bouton-menu:hover { background: rgba(255, 255, 255, .12); }
    .nav .theme-bouton-menu:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
}

/* ==========================================================================
   Langue du site (header-nav.php, assets/js/langue.js) : drapeau à côté du mode nuit
   ========================================================================== */
.langue-zone { position: relative; flex: none; display: flex; align-items: center; }
@media (min-width: 1181px) { .langue-zone { order: 5; margin-left: 4px; } }
/* Ordinateur, non connecté : « Glaciers/Pâtissiers » et « Publications » sont dans le menu « Rechercher » */
@media (min-width: 1181px) { .nav .nav-lien-mobile { display: none; } }
@media (max-width: 1180px) {
    .langue-zone { margin-left: auto; margin-right: 4px; }
    .cloche-zone:not([hidden]) ~ .langue-zone { margin-left: 0; }
    /* Mobile connecté : le drapeau passe dans le menu de droite (main.js), entre le mode nuit et la croix */
    .site-header.connecte .header-inner > .langue-zone { display: none; }
    .nav .langue-zone { position: absolute; z-index: 5; top: 15px; left: 50%; transform: translateX(-50%); margin: 0; } /* z-index : liste des langues par-dessus les onglets */
    .nav .langue-bouton { color: #fff; }
    .nav .langue-bouton:hover, .nav .langue-bouton[aria-expanded="true"] { background: rgba(255, 255, 255, .12); }
    .nav .langue-menu { left: 50%; right: auto; transform: translateX(-50%); }
}
.langue-bouton { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 40px; padding: 0 8px 0 10px; border: 0; border-radius: 20px; background: none; color: var(--navy); cursor: pointer; transition: background .2s; }
.langue-caret { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.langue-bouton[aria-expanded="true"] .langue-caret { transform: rotate(180deg); }
.langue-bouton:hover, .langue-bouton[aria-expanded="true"] { background: var(--cream); }
.langue-bouton:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
.drapeau { display: inline-block; flex: none; width: 24px; height: 16px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); line-height: 0; }
.drapeau svg { display: block; width: 100%; height: 100%; }
.langue-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 70; min-width: 170px; margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.langue-menu[hidden] { display: none; }
.langue-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--navy); font: inherit; font-weight: 600; font-size: .95rem; text-align: left; cursor: pointer; }
.langue-menu button:hover, .langue-menu button:focus-visible { background: var(--cream); }
.langue-menu button[aria-current="true"] { background: var(--cream); }

/* Loupe « Rechercher » dans la barre du haut : mobile et connecté seulement (header-nav.php, main.js) */
.recherche-mobile { display: none; }
/* Icône « Connexion » dans la barre du haut : mobile et non connecté seulement (header-nav.php) */
.connexion-mobile { display: none; }
@media (max-width: 1180px) {
    .connexion-mobile { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: auto; margin-right: 2px; border-radius: 50%; color: var(--ice); transition: background .2s; }
    .langue-zone ~ .connexion-mobile { margin-left: 0; } /* non connecté : le drapeau reste dans la barre, à gauche de l'icône */
    .connexion-mobile:hover { background: var(--cream); }
    .connexion-mobile:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
    .connexion-mobile .nav-icone { width: 24px; height: 24px; }
    .site-header.connecte .connexion-mobile { display: none; }
    .nav .nav-groupe-rechercher { display: none; } /* mobile : loupe (connecté) ou liens simples (non connecté) */
    .recherche-mobile { position: relative; flex: none; display: flex; align-items: center; margin-left: auto; margin-right: 2px; }
    .cloche-zone:not([hidden]) ~ .recherche-mobile { margin-left: 0; }
    .recherche-mobile-bouton { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--navy); cursor: pointer; transition: background .2s; }
    .recherche-mobile-bouton svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
    .recherche-mobile-bouton:hover, .recherche-mobile-bouton[aria-expanded="true"] { background: var(--cream); }
    .recherche-mobile-bouton:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
    .recherche-mobile-menu { position: absolute; top: calc(100% + 8px); right: -48px; z-index: 70; min-width: 200px; padding: 6px; display: grid; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
    .recherche-mobile-menu[hidden] { display: none; }
    .recherche-mobile-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--navy); }
    .recherche-mobile-menu a:hover, .recherche-mobile-menu a:focus-visible, .recherche-mobile-menu a[aria-current] { background: var(--cream); }
    .recherche-mobile-menu a[aria-current] { color: var(--orange-dk); }
    .recherche-mobile-menu .nav-icone { width: 20px; height: 20px; color: var(--ice); }
}

/* Barre et infobulles de Google Traduction masquées : le choix se fait avec le drapeau */
.goog-te-banner-frame, iframe.skiptranslate, body > .skiptranslate, #goog-gt-tt, .goog-te-balloon-frame,
.goog-tooltip, .goog-te-spinner-pos, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
html.translated-ltr body, html.translated-rtl body, body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
#google_translate_element { display: none; }

/* ==========================================================================
   Mode nuit : html[data-theme="sombre"] (choisi par l'utilisateur, jamais automatique)
   Les couleurs du site sont des variables : on leur donne des valeurs sombres,
   puis on corrige les fonds écrits en dur (blanc) et les fonds bleu marine.
   ========================================================================== */
html[data-theme="sombre"] {
    color-scheme: dark;
    --navy: #e3ecf5;          /* titres et textes forts : clairs */
    --navy-dk: #0a141d;
    --navy-fond: #2a5884;     /* fonds bleus (boutons, bulles, icônes rondes) */
    --orange-dk: #f08a62;
    --ice-pale: #12313f;
    --cream: #18242f;
    --cream-2: #223140;
    --vanille: #262a24;
    --text: #d7e1ea;
    --text-soft: #9cadbd;
    --line: #2e4153;
    --white: #111c26;         /* fond des pages et des cartes */
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6), 0 2px 8px -2px rgba(0, 0, 0, .4);
}

/* Barres du haut et du bas */
html[data-theme="sombre"] .site-header,
html[data-theme="sombre"] .site-header.connecte,
html[data-theme="sombre"] .barre-compte { background: rgba(17, 28, 38, .97); }
@media (max-width: 1180px) {
    html[data-theme="sombre"] .nav { background: linear-gradient(165deg, #1b3550 0%, #0a141d 100%); }
}

/* Fonds bleu marine (texte blanc) : bleu plus soutenu */
html[data-theme="sombre"] :is(.skip, .btn-navy, .btn-ghost:hover, .app-bar, .demo-cta, .faq summary, .md-flottant-badge, .tuto-badge-aa,
    .carte, .editeur-onglets button[aria-pressed="true"], .relations-onglets a[aria-current], .msg-moi, .hashtag-etiquette, .reaction-compteur,
    .pro-identite .pro-reseaux a, .pro-identite .bouton-mentions, .pro-entete .pro-reseaux a, .pro-entete .bouton-mentions) {
    background: var(--navy-fond); border-color: var(--navy-fond); color: #fff;
}
html[data-theme="sombre"] .badge-aide::before { background: var(--navy-fond); }
html[data-theme="sombre"] .pro-reseaux .icone { stroke: #e3ecf5; }
html[data-theme="sombre"] .pro-reseaux .plein { fill: #e3ecf5; }
html[data-theme="sombre"] .msg-moi p a { color: #fff; }
html[data-theme="sombre"] .pro-couv { background: linear-gradient(135deg, #1b3550, var(--ice)); }
html[data-theme="sombre"] .carte-fond-vide { background: linear-gradient(160deg, var(--ice) 0%, #1b3550 70%); }
html[data-theme="sombre"] .annuaire-pro { background: linear-gradient(135deg, #1b3550, #0a141d); }

/* Fonds blancs écrits en dur -> fond sombre */
html[data-theme="sombre"] :is(.hero-badges li, .app-card, .atout, .feature, .publics li, .faq details, .faq details p, .contact-card,
    .section-suivre, .reseau, .media-instagram, .adresse-liste, .hashtag-suggestions, .publi-hashtags a:hover) {
    background: var(--white);
}
html[data-theme="sombre"] .feature { border-color: var(--line); }
html[data-theme="sombre"] :is(.person, .tuto-code, .site-balise, .hashtags-suivis-bloc) { background: var(--cream); border-color: var(--line); }
html[data-theme="sombre"] :is(.msg-liste, .tuto-resultat) { background: #0d1720; }
html[data-theme="sombre"] .hero::after { background: linear-gradient(180deg, rgba(17, 28, 38, 0), var(--white)); }
html[data-theme="sombre"] :is(#faq, .demo-hero) { background: var(--cream); }

/* Champs de formulaire */
html[data-theme="sombre"] :is(input, textarea, select):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]) {
    background-color: var(--cream); color: var(--text); border-color: var(--line);
}
html[data-theme="sombre"] .field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3ecf5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
html[data-theme="sombre"] ::placeholder { color: #7f91a3; }
html[data-theme="sombre"] .field-altcha altcha-widget {
    --altcha-color-base: var(--cream);
    --altcha-color-border: var(--line);
    --altcha-color-text: var(--text);
    --altcha-color-footer-bg: var(--cream);
}

/* Le QR code reste noir sur blanc (lisible par les téléphones) */
html[data-theme="sombre"] .qrcode-cadre { background: #fff; }

/* Mode nuit : images de fond de l'accueil (haut : nuit étoilée ; bas : section contact)
   La couleur unie prolonge le haut de l'image, le fondu efface la jonction (comme en mode clair) */
html[data-theme="sombre"] .hero {
    background:
        linear-gradient(180deg, #0b1430 0, rgba(11, 20, 48, 0) 14%) center bottom / 100% 34.2vw no-repeat,
        url("/assets/img/aiceberg-fond-sombre-2.webp") center bottom / 100% auto no-repeat,
        #0b1430;
}
html[data-theme="sombre"] .section-contact {
    background:
        linear-gradient(180deg, var(--white) 0, rgba(17, 28, 38, 0) 14%) center bottom / 100% 34.2vw no-repeat,
        url("/assets/img/aiceberg-fond-sombre-1.webp") center bottom / 100% auto no-repeat,
        var(--white);
}
@media (max-width: 860px) {
    html[data-theme="sombre"] .section-contact { background-size: 100% 68.4vw, 200% auto, auto; background-position: 72% bottom, 72% bottom, 0 0; }
}

/* Mode nuit : carte « Rejoignez le réseau social… » (fond clair dégradé) : titre et texte en bleus foncés */
html[data-theme="sombre"] .communaute-carte {
    background:
        radial-gradient(420px 280px at 92% 10%, rgba(47, 178, 216, .35), transparent 70%),
        radial-gradient(360px 260px at 70% 110%, rgba(242, 122, 155, .25), transparent 70%),
        linear-gradient(135deg, #e8eff6 0%, #bcd9ea 100%);
}
html[data-theme="sombre"] .communaute-texte h2 { color: #0f2840; }
html[data-theme="sombre"] .communaute-texte p { color: #1f4a6e; }

/* Mode nuit : sections de l'accueil sur fond clair (sobriété numérique, cinq étapes, méthode Corvitto) :
   titres et textes en bleus foncés ; les cartes des étapes et des points gardent leur fond clair */
html[data-theme="sombre"] :is(#ecologie, #workflow, #methode) :is(h2, h3, strong) { color: #0f2840; }
html[data-theme="sombre"] :is(#ecologie, #workflow, #methode) :is(p:not(.eyebrow), span, li) { color: #1f4a6e; }

/* Mode nuit : barre de recherche de « Trouver un glacier » d'un seul fond (champ ville et rayon compris) */
html[data-theme="sombre"] .recherche,
html[data-theme="sombre"] .recherche .recherche-barre :is(input, select):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]) { background-color: transparent; } /* le fond #111C26 vient de la barre arrondie : pas d’angles carrés */

/* Mode nuit : cartes des cinq étapes avec le même dégradé clair qu'en mode clair (vanille -> blanc) */
html[data-theme="sombre"] .steps li { background: linear-gradient(180deg, #fdf3d4 0%, #fff 100%); border-color: #f1e6cf; }

/* Mode nuit : champs dont le fond est porté par un cadre (ajout d'un hashtag suivi, étiquettes de hashtags) */
html[data-theme="sombre"] :is(.hashtag-ajout-champ, .hashtags-etiquettes) { background: var(--cream); border-color: var(--line); }
html[data-theme="sombre"] :is(.hashtag-ajout-champ, .hashtags-etiquettes) input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]) { background-color: transparent; }

/* Mode nuit : cartes des publications détachées du fond par un fin liseré blanc (1 px, 15 %) */
html[data-theme="sombre"] .carte { box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 4px 8px rgba(0, 0, 0, .3); }

/* Mode nuit : liste déroulante des menus (options) sur fond sombre, même quand le champ est transparent */
html[data-theme="sombre"] :is(select option, select optgroup) { background-color: #111c26; color: var(--text); }

/* Mode nuit : section « cinq étapes » (#workflow) sur fond sombre : la photo se fond dans le fond de nuit ;
   le titre de section repasse en clair, seules les cartes des étapes (fond clair) gardent leurs bleus foncés */
html[data-theme="sombre"] #workflow {
    background:
        linear-gradient(180deg, rgba(17, 28, 38, 0) 55%, var(--white) 100%) center top / 100% 34.2vw no-repeat,
        url("/assets/img/aiceberg-fond-4.webp") center top / 100% auto no-repeat,
        var(--white);
}
@media (max-width: 700px) {
    html[data-theme="sombre"] #workflow { background-size: 100% 54.7vw, 160% auto, auto; }
}
html[data-theme="sombre"] #workflow .section-head h2 { color: var(--navy); }
html[data-theme="sombre"] #workflow .section-head p:not(.eyebrow) { color: var(--text); }

/* Page publication : icône « Modifier » (propriétaire) en haut à droite de l'image de couverture */
.publi-couv-cadre { position: relative; }
.publi-modifier {
    position: absolute; top: 14px; right: 14px; z-index: 1;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: #173a5e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25); text-decoration: none;
}
.publi-modifier:hover { background: #fff; color: #1fcadb; }
.publi-sans-couv { height: 44px; margin: 0 0 16px; }
.publi-sans-couv .publi-modifier { top: 0; right: 0; }

/* Accueil : bandeau de fête (Nouvel An, décembre, Noël, Pâques, Halloween), bord à bord, sous le haut de page.
   Fond de nuit propre (identique en mode clair et en mode nuit) ; la scène animée (fetes.js) est dessinée derrière le texte. */
.fete-bandeau {
    position: relative; overflow: hidden; isolation: isolate;
    height: 340px; display: flex; align-items: center;
    background: linear-gradient(150deg, #061521 0%, #0b2233 46%, #103040 100%);
    color: #e6f6fb;
}
.fete-bandeau canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; }
.fete-texte { position: relative; z-index: 2; width: 100%; pointer-events: none; text-shadow: 0 2px 14px rgba(0, 0, 0, .75); }
.fete-texte > * { max-width: 780px; }

.fete-titre { margin: 0 0 12px; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); line-height: 1.08; color: #fff; }
.fete-message { margin: 0; color: #dbe8ee; font-size: clamp(1.05rem, .9rem + .8vw, 1.45rem); line-height: 1.4; max-width: 46ch; }
@media (max-width: 620px) {
    .fete-bandeau { height: 420px; align-items: flex-start; padding-top: 64px; } /* sous la guirlande de décembre */
    .fete-texte > * { max-width: none; }
}

/* Bandeau de fête : animation du titre et du texte, différente pour chaque fête (une fois, au chargement)
   Nouvel An : titre qui grossit + texte en machine à écrire · Décembre : glissés gauche / droite
   Noël : titre qui descend + texte en machine à écrire · Pâques : titre qui monte + texte qui glisse de la gauche
   Halloween : titre en machine à écrire + texte qui monte */
@keyframes fete-gauche { from { opacity: 0; transform: translateX(-70px); } to { opacity: 1; transform: none; } }
@keyframes fete-droite { from { opacity: 0; transform: translateX(70px); } to { opacity: 1; transform: none; } }
@keyframes fete-haut   { from { opacity: 0; transform: translateY(-45px); } to { opacity: 1; transform: none; } }
@keyframes fete-bas    { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes fete-zoom   { 0% { opacity: 0; transform: scale(.35); } 65% { opacity: 1; transform: scale(1.14); } 100% { opacity: 1; transform: scale(1); } }
@keyframes fete-secours { to { opacity: 1; } }
@keyframes fete-clignote { 50% { opacity: 0; } }
.fete-titre { transform-origin: left center; }
.fete-an .fete-titre        { animation: fete-zoom .95s cubic-bezier(.2, .8, .2, 1) .2s both; }
.fete-dec .fete-titre       { animation: fete-gauche .8s cubic-bezier(.2, .8, .2, 1) .2s both; }
.fete-dec .fete-message     { animation: fete-droite .8s cubic-bezier(.2, .8, .2, 1) .7s both; }
.fete-noel .fete-titre      { animation: fete-haut .8s cubic-bezier(.2, .8, .2, 1) .2s both; }
.fete-paques .fete-titre    { animation: fete-bas .8s cubic-bezier(.2, .8, .2, 1) .2s both; }
.fete-paques .fete-message  { animation: fete-gauche .8s cubic-bezier(.2, .8, .2, 1) .7s both; }
.fete-halloween .fete-message { animation: fete-bas .8s cubic-bezier(.2, .8, .2, 1) 1.7s both; }
/* Machine à écrire : caché jusqu'à la prise en main par fetes.js (réapparaît seul après 4 s si le script ne se charge pas) */
.fete-bandeau .fete-machine { opacity: 0; animation: fete-secours 0s 4s forwards; }
.fete-curseur { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: currentColor; animation: fete-clignote .8s steps(1) infinite; }
.fete-lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bandeau de fête : bouton musique (haut-parleur), en haut à droite */
.fete-son {
    position: absolute; top: 14px; right: 14px; z-index: 3;
    width: 44px; height: 44px; border-radius: 50%; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(6, 21, 33, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .35);
    cursor: pointer; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    transition: background .2s, border-color .2s;
}
.fete-son:hover { background: rgba(6, 21, 33, .8); border-color: #5fddeb; }
.fete-son:focus-visible { outline: 2px solid #5fddeb; outline-offset: 2px; }
.fete-son .fete-son-on, .fete-son[aria-pressed="true"] .fete-son-off { display: none; }
.fete-son[aria-pressed="true"] .fete-son-on { display: block; }
.fete-son[aria-pressed="true"] { border-color: #5fddeb; color: #5fddeb; }

/* ── Écosystème Aiceberg (accueil, avant le hero) : titre + trois fonctions qui glissent ──
   Couleurs des trois fonctions : foncées en mode clair, éclaircies en mode sombre (contraste). */
.ecosysteme {
    --c1: #b8461f; --c2: #0b7a5d; --c3: #6a4fd0;
    position: relative; overflow: hidden;
    padding: 64px 0;
    text-align: center;
    background: #f9f9f9;
}
html[data-theme="sombre"] .ecosysteme {
    --c1: #f08a62; --c2: #a6f2dc; --c3: #cfc2ff;
    background: #2c3a6b;
}
.ecosysteme h2 {
    max-width: 820px; margin: 0 auto 40px;
    color: var(--navy); font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.15;
}
html[data-theme="sombre"] .ecosysteme h2 { color: #fff; }
/* « unique » : reflet aux couleurs des trois fonctions */
.ecosysteme h2 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--c1), var(--c3), var(--c2), var(--c1)) 0 0 / 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: eco-reflet 6s linear infinite;
}
@keyframes eco-reflet { to { background-position: 300% 0; } }

/* Les trois fonctions arrivent en glissant : 1 de la gauche, 2 du haut, 3 de la droite */
.ecosysteme-defile ul {
    list-style: none; margin: 0 auto; padding: 0;
    display: flex; flex-direction: column; align-items: flex-start; gap: 28px;
    width: fit-content; text-align: left;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}
.ecosysteme-defile li {
    line-height: 1.3;
    animation: eco-gauche .9s cubic-bezier(.2, .8, .2, 1) both;
}
.ecosysteme-defile li:nth-child(1) { animation-delay: .2s; }
.ecosysteme-defile li:nth-child(2) { animation-name: eco-haut; animation-delay: .6s; }
.ecosysteme-defile li:nth-child(3) { animation-name: eco-droite; animation-delay: 1s; }
@keyframes eco-gauche { from { opacity: 0; transform: translateX(-60vw); } }
@keyframes eco-droite { from { opacity: 0; transform: translateX(60vw); } }
@keyframes eco-haut { from { opacity: 0; transform: translateY(-120px); } }
/* la couleur est posée sur les enfants : le style en ligne du <li> ne peut pas la bloquer */
.ecosysteme-defile li:nth-child(1) > * { --parfum: var(--c1); }
.ecosysteme-defile li:nth-child(2) > * { --parfum: var(--c2); }
.ecosysteme-defile li:nth-child(3) > * { --parfum: var(--c3); }

.ecosysteme-defile b {
    display: flex; align-items: center; gap: .4em;
    color: var(--parfum); font-weight: 800; font-size: 1.4em; line-height: 1.15; margin-bottom: .15em;
}
.ecosysteme-defile b svg { width: .9em; height: .9em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ecosysteme-defile li > span { display: block; color: var(--navy); }
html[data-theme="sombre"] .ecosysteme-defile li > span { color: #fff; }
.ecosysteme-prix { display: block; margin-top: .2em; font-size: .72em; font-weight: 700; color: var(--parfum); }

.ecosysteme-lien {
    display: flex; width: fit-content; align-items: center; gap: .35em; margin: .6em 0 0;
    padding: .4em 1em; border-radius: 999px;
    background: var(--parfum); color: #fff; font-size: .8em; font-weight: 800; text-decoration: none;
    transition: transform .2s;
}
.ecosysteme-lien:hover, .ecosysteme-lien:focus-visible { color: #fff; transform: translateY(-2px); }
html[data-theme="sombre"] .ecosysteme-lien,
html[data-theme="sombre"] .ecosysteme-lien:hover,
html[data-theme="sombre"] .ecosysteme-lien:focus-visible { color: #16204a; }
.ecosysteme-lien:focus-visible { outline: 2px solid var(--parfum); outline-offset: 3px; }
.ecosysteme-lien svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.ecosysteme-lien:hover svg { transform: translateY(2px); }
.ecosysteme-lien[href^="/compte"]:hover svg { transform: translateX(3px); }

/* PC (≥ 1000 px) : les trois fonctions côte à côte, centrées */
@media (min-width: 1000px) {
    .ecosysteme { padding: 80px 0; }
    .ecosysteme h2 { margin-bottom: 56px; }
    .ecosysteme-defile ul {
        display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px;
        width: min(1140px, 100%); text-align: center; font-size: 1.3rem;
    }
    .ecosysteme-defile b { justify-content: center; }
    .ecosysteme-lien { margin: .8em auto 0; font-size: .85em; padding: .5em 1.2em; }
    /* Hors français (pas d'annuaire) : deux fonctions, centrées */
    .ecosysteme-defile ul.ecosysteme-deux { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(760px, 100%); }
}
/* Deux fonctions (logiciel, réseau social) : le réseau social garde sa couleur et arrive de la droite */
.ecosysteme-defile .ecosysteme-deux li:nth-child(2) { animation-name: eco-droite; }
.ecosysteme-defile .ecosysteme-deux li:nth-child(2) > * { --parfum: var(--c3); }
@media (max-width: 520px) {
    .ecosysteme { padding: 48px 0; }
    .ecosysteme h2 { margin-bottom: 32px; }
    .ecosysteme-defile ul { font-size: 1.3rem; }
}
/* Mobile et tablette (fonctions empilées) : les trois arrivent de la droite */
@media (max-width: 999px) {
    .ecosysteme-defile li:nth-child(n) { animation-name: eco-droite; }
}
/* Sans animation (préférence système) : tout est affiché directement */
@media (prefers-reduced-motion: reduce) {
    .ecosysteme-defile li { animation: none; }
    .ecosysteme h2 em { animation: none; }
}

/* Surtitre avec sa propre icône SVG (section « Téléchargement » de l'accueil) : remplace le cornet de glace */
.section .eyebrow-icone::before { display: none; }
.eyebrow-icone svg { display: inline-block; width: 18px; height: 18px; margin-right: .6em; vertical-align: -4px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
