/* ==========================================================================
   Diaspo Niger — feuille de style du site
   Une seule feuille pour toutes les pages : les quatre pages du site
   partageaient auparavant du CSS recopié, et chaque retouche était à faire
   autant de fois qu'il y avait de pages.
   ========================================================================== */

:root {
    /* Palette — inspirée du drapeau, tenue plus sobre que lui.
       L'orange est un accent d'action, pas une couleur de fond. */
    --orange: #E87B2E;
    --orange-deep: #A8500F;
    /* orange assombri : lisible sous du blanc */
    --green: #159447;
    --green-deep: #0C6B33;
    /* vert assombri : lisible en petit corps sur crème */
    --deep-green: #0B3D2E;
    --cream: #F8F5EF;
    --sand: #EDE4D5;
    --dark: #111713;
    --white: #FFFFFF;

    --muted: #5A6560;
    /* texte secondaire, 5,4:1 sur crème */
    --line: rgba(17, 23, 19, 0.10);
    --line-strong: rgba(17, 23, 19, 0.16);

    --shadow-s: 0 2px 8px rgba(11, 61, 46, 0.06);
    --shadow-m: 0 12px 32px rgba(11, 61, 46, 0.10);
    --shadow-l: 0 30px 70px rgba(11, 61, 46, 0.18);

    --r-s: 12px;
    --r-m: 18px;
    --r-l: 28px;
    --r-full: 999px;

    --page: 1200px;
    --gap: clamp(1.5rem, 4vw, 3rem);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--dark);
    background: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.6rem, 6.2vw, 4.6rem);
}

h2 {
    font-size: clamp(2rem, 4.4vw, 3.2rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
}

p {
    text-wrap: pretty;
}

a {
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

::selection {
    background: rgba(232, 123, 46, 0.25);
}

/* Un focus visible partout : sans cela, la navigation au clavier se fait
   à l'aveugle sur un fond clair. */
:focus-visible {
    outline: 3px solid var(--orange-deep);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap {
    width: 100%;
    max-width: var(--page);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Lien d'évitement — le premier arrêt du clavier sur chaque page */
.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 200;
    background: var(--dark);
    color: var(--cream);
    padding: 0.7rem 1.2rem;
    border-radius: var(--r-s);
    text-decoration: none;
    transition: top 0.2s;
}

.skip:focus {
    top: 1rem;
}

/* ── BARRE DE NAVIGATION ────────────────────────────────────────────────── */

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(248, 245, 239, 0.82);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom-color: var(--line);
}

.nav-in {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 74px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    margin-right: auto;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
    color: var(--dark);
}

.lang {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
}

.lang a {
    text-decoration: none;
    padding: 0.2rem 0.15rem;
}

.lang a:hover {
    color: var(--dark);
}

.lang [aria-current] {
    color: var(--dark);
}

.lang span[aria-hidden] {
    opacity: 0.35;
}

/* ── BOUTONS ────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    padding: 0.9rem 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--r-full);
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
    white-space: nowrap;
}

/* L'orange porte du texte sombre : sous du blanc il plafonne à 3,1:1. */
.btn-primary {
    background: var(--orange);
    color: var(--dark);
    box-shadow: 0 6px 20px rgba(232, 123, 46, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(232, 123, 46, 0.38);
}

.btn-ghost {
    background: transparent;
    color: var(--dark);
    border-color: var(--line-strong);
}

.btn-ghost:hover {
    background: rgba(17, 23, 19, 0.04);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--cream);
    color: var(--deep-green);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-m);
}

.btn-sm {
    padding: 0.62rem 1.15rem;
    font-size: 0.88rem;
}

/* ── SECTIONS ───────────────────────────────────────────────────────────── */

.section {
    padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section-tight {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-deep);
    margin-bottom: 1.1rem;
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
}

.lead {
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    color: var(--muted);
    max-width: 54ch;
}

.head h2 + .lead,
.head h1 + .lead {
    margin-top: 1.1rem;
}

.head {
    max-width: 44rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.head-center {
    margin-inline: auto;
    text-align: center;
}

.head-center .eyebrow {
    justify-content: center;
}

.head-center .lead {
    margin-inline: auto;
}

/* ── TÉLÉPHONE ──────────────────────────────────────────────────────────── */

.phone {
    position: relative;
    width: 100%;
    max-width: 286px;
    padding: 10px;
    border-radius: 40px;
    background: linear-gradient(155deg, #2C3630 0%, #131A16 55%, #0A0F0C 100%);
    box-shadow: var(--shadow-l), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.phone::after {
    /* l'encoche : sans elle l'objet ne se lit pas comme un téléphone */
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 62px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.14);
}

.phone img {
    width: 100%;
    height: auto;
    border-radius: 31px;
}

.phone-lg {
    max-width: 296px;
}

/* ── RÉVÉLATION AU DÉFILEMENT ───────────────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ── PIED DE PAGE ───────────────────────────────────────────────────────── */

.foot {
    background: var(--dark);
    color: rgba(248, 245, 239, 0.72);
    padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}

.foot a {
    color: rgba(248, 245, 239, 0.72);
    text-decoration: none;
    transition: color 0.2s;
}

.foot a:hover {
    color: var(--white);
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(248, 245, 239, 0.12);
}

.foot-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 0.9rem;
    text-decoration: none;
}

.foot-brand img {
    width: 32px;
    height: 32px;
    border-radius: 9px;
}

.foot-col h3 {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(248, 245, 239, 0.58);
    margin-bottom: 1rem;
}

.foot-col ul {
    list-style: none;
    display: grid;
    gap: 0.65rem;
    font-size: 0.92rem;
}

.foot-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.6rem;
    font-size: 0.85rem;
    color: rgba(248, 245, 239, 0.58);
}

.foot-lang {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ── MENU MOBILE ────────────────────────────────────────────────────────── */

.burger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-s);
    cursor: pointer;
}

.burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--dark);
    transition: transform 0.3s, opacity 0.2s;
}

.nav.open .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav.open .burger span:nth-child(2) {
    opacity: 0;
}

.nav.open .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .burger {
        display: flex;
    }

    .nav {
        background: rgba(248, 245, 239, 0.9);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .nav-panel {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem var(--gap) 1.6rem;
        display: grid;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    }

    .nav.open .nav-panel {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-links li {
        border-top: 1px solid var(--line);
    }

    .nav-links li:first-child {
        border-top: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
        color: var(--dark);
    }

    .nav-tail {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding-top: 1.1rem;
        border-top: 1px solid var(--line);
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .foot-col:first-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 901px) {
    .nav-panel {
        display: contents;
    }

    .nav-tail {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
}

@media (max-width: 560px) {
    .foot-grid {
        grid-template-columns: 1fr;
    }
}

/* Un mouvement qu'on n'a pas demandé n'est pas un détail pour tout le monde. */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── PANNEAU « OUVRIR DANS L'APPLICATION » ──────────────────────────────── */

.dl {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(17, 23, 19, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dl-card {
    background: var(--cream);
    border-radius: var(--r-l);
    padding: 2.4rem 2rem 1.6rem;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-l);
}

.dl-logo {
    border-radius: 16px;
    margin: 0 auto 1.2rem;
}

.dl-card h2 {
    font-size: 1.45rem;
    margin-bottom: 0.6rem;
}

.dl-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.dl-card .btn {
    width: 100%;
    margin-bottom: 0.7rem;
}

.dl-small {
    font-size: 0.85rem;
    margin: 1.1rem 0 0.6rem !important;
}

.dl-skip {
    background: none;
    border: none;
    font: inherit;
    font-size: 0.88rem;
    color: var(--muted);
    text-decoration: underline;
    cursor: pointer;
    margin-top: 1rem;
    padding: 0.4rem;
}

.dl-skip:hover {
    color: var(--dark);
}
