/* ==========================================================================
   HAKI CONSULT — Atelier web
   Design « éditorial » : papier ivoire, encre sapin, accent cuivre.
   Playfair Display (titres) + Hanken Grotesk (texte).
   ========================================================================== */

:root {
    /* Palette */
    --paper: #f6f2e9;
    --paper-soft: #fdfbf6;
    --paper-deep: #ece6d8;
    --ink: #1b2a24;
    --ink-soft: #4c5a52;
    --ink-faint: #7d887f;
    --line: rgba(27, 42, 36, 0.16);
    --line-soft: rgba(27, 42, 36, 0.09);
    --copper: #b25a2c;
    --copper-deep: #8f4520;
    --whatsapp: #1fa35c;

    /* Typo */
    --font-display: "Playfair Display", "Georgia", serif;
    --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

    /* Rythme */
    --container: 1160px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(4.5rem, 9vw, 8rem);
    --radius: 14px;
    --radius-pill: 999px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Grain discret sur tout le site */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

::selection {
    background: var(--copper);
    color: var(--paper-soft);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 300;
    padding: 0.6rem 1rem;
    background: var(--ink);
    color: var(--paper-soft);
    border-radius: 6px;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 1rem;
}

/* --------------------------------------------------------------------------
   Typographie éditoriale
   -------------------------------------------------------------------------- */

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.015em;
}

h1 em,
h2 em {
    font-style: italic;
    font-weight: 400;
    color: var(--copper);
}

.kicker {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.kicker-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--copper);
}

.kicker-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.section-title {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    max-width: 20ch;
    margin-bottom: 1.1rem;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 58ch;
}

.section {
    padding-block: var(--section-y);
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.75rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.25s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-ink {
    background: var(--ink);
    color: var(--paper-soft);
    box-shadow: 0 1px 0 rgba(27, 42, 36, 0.3);
}

.btn-ink:hover {
    background: var(--copper-deep);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
}

.btn-whatsapp:hover {
    background: #17824a;
    transform: translateY(-2px);
}

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--ink);
    background: transparent;
}

.btn-ghost:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--paper);
    color: var(--ink);
}

.btn-light:hover {
    background: var(--paper-soft);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn:active {
    transform: translateY(0);
}

/* Lien fléché éditorial */
.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--copper);
    border-bottom: 1px solid transparent;
    transition: gap 0.25s var(--ease-out), color 0.2s;
}

.arrow-link svg {
    width: 16px;
    height: 16px;
}

.arrow-link:hover {
    gap: 0.85rem;
    color: var(--copper-deep);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: transparent;
    transition: border-color 0.3s;
    border-bottom: 1px solid transparent;
}

/* Fond flouté porté par un pseudo-élément : un backdrop-filter posé
   directement sur .navbar ferait de la barre le conteneur du menu
   mobile en position fixed, qui se retrouverait écrasé dedans. */
.navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(246, 242, 233, 0.88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.3s;
}

.navbar.scrolled {
    border-bottom-color: var(--line-soft);
}

.navbar.scrolled::before {
    opacity: 1;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1;
}

.logo .logo-dot {
    color: var(--copper);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 2.5vw, 2.2rem);
}

.nav-links a:not(.btn) {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--ink);
}

.nav-links a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 1px;
    background: var(--copper);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}

.nav-links a:not(.btn):hover::after {
    transform: scaleX(1);
}

.nav-links .btn {
    padding: 0.65rem 1.3rem;
    font-size: 0.9rem;
}

.lang-switch {
    font-size: 0.85rem !important;
    letter-spacing: 0.1em;
    color: var(--ink-faint) !important;
}

/* Burger mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    z-index: 210;
}

.nav-toggle span {
    display: block;
    height: 1.5px;
    width: 100%;
    background: var(--ink);
    transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 820px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        height: 100dvh;
        z-index: 205;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        background: var(--paper);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
        overscroll-behavior: contain;
        touch-action: none;
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a:not(.btn) {
        font-family: var(--font-display);
        font-size: 1.6rem;
        color: var(--ink);
    }
}

/* Téléphone en paysage : menu compacté pour tenir sans défilement */
@media (max-width: 820px) and (max-height: 500px) {
    .nav-links {
        gap: 0.9rem;
    }

    .nav-links a:not(.btn) {
        font-size: 1.15rem;
    }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding-top: clamp(9rem, 16vw, 12.5rem);
    padding-bottom: clamp(4rem, 8vw, 6.5rem);
    overflow: hidden;
}

/* halo cuivré très léger en haut à droite */
.hero::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -15%;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(178, 90, 44, 0.1) 0%, transparent 62%);
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 1.75rem;
}

.hero-eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--copper);
}

.hero-title {
    font-size: clamp(2.7rem, 7vw, 5.2rem);
    max-width: 16ch;
    margin-bottom: 1.6rem;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--ink-soft);
    max-width: 52ch;
    margin-bottom: 2.4rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

/* Bandeau de réassurance */
.proof-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.proof-item {
    padding: 1.4rem 1.5rem 0.25rem 0;
}

.proof-item + .proof-item {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line-soft);
}

.proof-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 480;
    margin-bottom: 0.2rem;
}

.proof-item span {
    font-size: 0.92rem;
    color: var(--ink-soft);
}

@media (max-width: 680px) {
    .proof-bar {
        grid-template-columns: 1fr;
    }

    .proof-item + .proof-item {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--line-soft);
    }

    .proof-item {
        padding: 1.1rem 0;
    }
}

/* Animation d'entrée du hero */
@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(26px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero [data-rise] {
    animation: heroRise 0.9s var(--ease-out) both;
}

.hero [data-rise="2"] { animation-delay: 0.12s; }
.hero [data-rise="3"] { animation-delay: 0.24s; }
.hero [data-rise="4"] { animation-delay: 0.36s; }
.hero [data-rise="5"] { animation-delay: 0.5s; }

/* --------------------------------------------------------------------------
   Offres — 3 formules
   -------------------------------------------------------------------------- */

.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-top: clamp(2rem, 4vw, 3rem);
    align-items: stretch;
}

.offer-card {
    display: flex;
    flex-direction: column;
    background: var(--paper-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: clamp(1.75rem, 3vw, 2.4rem);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -24px rgba(27, 42, 36, 0.28);
}

/* Formule mise en avant : carte encre inversée */
.offer-card.featured {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
    position: relative;
}

.offer-card.featured .offer-name,
.offer-card.featured .offer-price strong {
    color: var(--paper-soft);
}

.offer-card.featured .offer-desc,
.offer-card.featured .offer-price small,
.offer-card.featured .offer-monthly {
    color: rgba(246, 242, 233, 0.72);
}

.offer-card.featured .offer-list li {
    border-color: rgba(246, 242, 233, 0.14);
}

.offer-card.featured .offer-list li::before {
    color: var(--copper);
}

.offer-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 1rem;
    background: var(--copper);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.offer-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 460;
    margin-bottom: 0.5rem;
}

.offer-desc {
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
    min-height: 3em;
}

.offer-price {
    padding-bottom: 1.4rem;
    margin-bottom: 1.4rem;
    border-bottom: 1px solid var(--line-soft);
}

.offer-card.featured .offer-price {
    border-color: rgba(246, 242, 233, 0.14);
}

.offer-price small {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 0.2rem;
}

.offer-price strong {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 3vw, 2.6rem);
    font-weight: 480;
    letter-spacing: -0.02em;
    line-height: 1;
}

.offer-monthly {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.offer-monthly b {
    color: var(--copper);
    font-weight: 700;
}

.offer-list {
    flex: 1;
    margin-bottom: 1.75rem;
}

.offer-list li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.6rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line-soft);
}

.offer-list li:last-child {
    border-bottom: none;
}

.offer-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--copper);
    font-weight: 600;
}

.offers-note {
    margin-top: 1.75rem;
    font-size: 0.92rem;
    color: var(--ink-soft);
    text-align: center;
}

.offers-note a {
    color: var(--copper);
    font-weight: 600;
    border-bottom: 1px solid currentColor;
}

@media (max-width: 900px) {
    .offers-grid {
        grid-template-columns: 1fr;
        max-width: 540px;
        margin-inline: auto;
    }

    .offer-desc {
        min-height: 0;
    }
}

/* --------------------------------------------------------------------------
   Réalisations — études de cas éditoriales
   -------------------------------------------------------------------------- */

.work-list {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    border-top: 1px solid var(--line);
}

.case {
    display: grid;
    grid-template-columns: 90px 1.25fr 1fr;
    gap: clamp(1.25rem, 3.5vw, 3rem);
    padding: clamp(1.75rem, 4vw, 2.75rem) 0;
    border-bottom: 1px solid var(--line);
    transition: background-color 0.3s;
}

.case-index {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--copper);
    line-height: 1;
    padding-top: 0.3rem;
}

.case-title {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    margin-bottom: 0.65rem;
}

.case-desc {
    color: var(--ink-soft);
    font-size: 0.99rem;
    max-width: 46ch;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.1rem;
}

.case-tags span {
    padding: 0.32rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
}

/* ----- Maquettes de projet (démonstrations stylisées) ----- */

.case-visual {
    align-self: center;
    display: flex;
    justify-content: center;
    position: relative;
    opacity: 0;
    transform: translateY(34px) scale(0.94);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.case.active .case-visual {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.case.active .case-visual:hover {
    transform: translateY(-6px) scale(1.02) rotate(-1deg);
}

/* Halo lumineux derrière chaque maquette */
.case-visual::before {
    content: "";
    position: absolute;
    inset: 6% -4%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(178, 90, 44, 0.16), transparent 72%);
    z-index: -1;
    animation: spotBreathe 7s ease-in-out infinite alternate;
}

@keyframes spotBreathe {
    from { transform: scale(0.92); opacity: 0.7; }
    to { transform: scale(1.06); opacity: 1; }
}

/* Téléphone */
.mock-phone {
    position: relative;
    width: 216px;
    padding: 9px;
    border-radius: 30px;
    background: var(--ink);
    box-shadow: 0 34px 60px -32px rgba(27, 42, 36, 0.55);
    animation: mockFloat 7s ease-in-out infinite;
}

.mock-phone-screen {
    position: relative;
    background: var(--paper-soft);
    border-radius: 22px;
    overflow: hidden;
}

/* Reflet qui balaie les écrans */
.mock-phone-screen::after,
.mock-browser::after {
    content: "";
    position: absolute;
    top: -60%;
    bottom: -60%;
    left: -70%;
    width: 40%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
    animation: mockGlare 7s ease-in-out infinite;
}

.mock-browser::after {
    animation-delay: 1.2s;
}

@keyframes mockGlare {
    0%, 55% { left: -70%; }
    75%, 100% { left: 140%; }
}

@keyframes mockFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Barre d'app du téléphone */
.m-appbar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 12px 10px;
    border-bottom: 1px solid var(--line-soft);
}

.m-logo-dot {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: var(--ink);
    flex-shrink: 0;
}

.m-appbar-line {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--paper-deep);
}

.m-pill {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(31, 163, 92, 0.14);
    color: #17824a;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Plats du restaurant */
.m-dish {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line-soft);
}

.m-thumb {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--paper-deep), rgba(178, 90, 44, 0.3));
    flex-shrink: 0;
}

.m-dish-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.m-dish-lines i {
    height: 6px;
    border-radius: 3px;
    background: var(--paper-deep);
}

.m-dish-lines i:last-child {
    width: 55%;
}

.m-price {
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.m-add {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--copper);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Scénario restaurant, boucle de 10 s synchronisée :
   appui sur « + » → le produit vole au panier (badge 2→3) → le bouton
   Commander réagit → paiement Apple Pay → notification « Commande reçue ». */
.m-add.tap {
    animation: addBump 10s ease infinite;
}

.m-add.tap::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--copper);
    opacity: 0;
    animation: addRipple 10s ease-out infinite;
}

@keyframes addBump {
    0%, 4% { transform: scale(1); }
    7% { transform: scale(1.35); }
    10%, 100% { transform: scale(1); }
}

@keyframes addRipple {
    0%, 5% { opacity: 0; transform: scale(0.6); }
    8% { opacity: 0.9; }
    18%, 100% { opacity: 0; transform: scale(2.4); }
}

/* Produit qui vole du plat vers le bouton Commander */
.m-fly {
    position: absolute;
    top: 108px;
    right: 16px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--copper);
    opacity: 0;
    pointer-events: none;
    animation: flyToCart 10s ease-in infinite;
    z-index: 2;
}

@keyframes flyToCart {
    0%, 6% { opacity: 0; transform: translate(0, 0) scale(1); }
    9% { opacity: 1; }
    17% { opacity: 1; transform: translate(-30px, 92px) scale(0.35); }
    19%, 100% { opacity: 0; transform: translate(-30px, 92px) scale(0.35); }
}

.m-cta {
    position: relative;
    margin: 10px 12px 12px;
    padding: 10px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--paper-soft);
    font-size: 0.68rem;
    font-weight: 650;
    text-align: center;
    animation: ctaBump 10s ease infinite;
}

@keyframes ctaBump {
    0%, 17% { transform: scale(1); background-color: var(--ink); }
    21% { transform: scale(1.05); background-color: var(--copper-deep); }
    26%, 100% { transform: scale(1); background-color: var(--ink); }
}

/* Badge panier : le compteur passe de 2 à 3 quand le produit arrive */
.m-cart-badge {
    position: absolute;
    top: -7px;
    right: -6px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--copper);
    box-shadow: 0 0 0 2px var(--paper-soft);
    font-size: 0.6rem;
    font-weight: 700;
    animation: badgeBump 10s ease infinite;
}

.m-cart-badge i {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
}

.m-cart-badge i:nth-child(1) { animation: badgeOld 10s ease infinite; }
.m-cart-badge i:nth-child(2) { animation: badgeNew 10s ease infinite; }

@keyframes badgeOld {
    0%, 17% { opacity: 1; }
    19%, 100% { opacity: 0; }
}

@keyframes badgeNew {
    0%, 17% { opacity: 0; }
    19%, 100% { opacity: 1; }
}

@keyframes badgeBump {
    0%, 17% { transform: scale(1); }
    20% { transform: scale(1.35); }
    24%, 100% { transform: scale(1); }
}

/* Feuille de paiement Apple Pay */
.m-pay {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 13px;
    border-radius: 12px;
    background: #101613;
    color: #fff;
    box-shadow: 0 -8px 24px rgba(27, 42, 36, 0.25);
    transform: translateY(130%);
    animation: paySheet 10s ease infinite;
    z-index: 3;
}

@keyframes paySheet {
    0%, 30% { transform: translateY(130%); }
    35%, 62% { transform: translateY(0); }
    68%, 100% { transform: translateY(130%); }
}

.m-pay-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.m-pay-status {
    margin-left: auto;
    position: relative;
    width: 16px;
    height: 16px;
}

.m-pay-spin {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    animation: paySpin 0.8s linear infinite, spinFade 10s ease infinite;
}

@keyframes paySpin {
    to { transform: rotate(360deg); }
}

@keyframes spinFade {
    0%, 34% { opacity: 0; }
    38%, 50% { opacity: 1; }
    54%, 100% { opacity: 0; }
}

.m-pay-check {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4ade80;
    opacity: 0;
    animation: payCheck 10s ease infinite;
}

@keyframes payCheck {
    0%, 52% { opacity: 0; transform: scale(0.4); }
    56%, 64% { opacity: 1; transform: scale(1); }
    68%, 100% { opacity: 0; }
}

/* Notification flottante */
.m-toast {
    position: absolute;
    top: -14px;
    right: -22px;
    padding: 7px 12px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--paper-soft);
    font-size: 0.68rem;
    font-weight: 600;
    box-shadow: 0 12px 24px -10px rgba(27, 42, 36, 0.5);
    animation: mockToast 10s ease-in-out infinite;
}

.m-toast::before {
    content: "✓ ";
    color: #4ade80;
}

@keyframes mockToast {
    0%, 68% { opacity: 0; transform: translateY(10px); }
    74%, 92% { opacity: 1; transform: translateY(0); }
    98%, 100% { opacity: 0; transform: translateY(-6px); }
}

/* Navigateur / tableau de bord */
.mock-browser {
    width: 100%;
    max-width: 380px;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 34px 60px -32px rgba(27, 42, 36, 0.4);
}

.m-browser-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 9px 12px;
    background: var(--paper-deep);
}

.m-browser-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(27, 42, 36, 0.22);
}

.m-url {
    flex: 1;
    height: 12px;
    margin-left: 8px;
    border-radius: 6px;
    background: var(--paper-soft);
}

.m-app {
    display: flex;
}

.m-side {
    width: 52px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--ink);
}

.m-side-logo {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    background: var(--copper);
    margin-bottom: 6px;
}

.m-side i {
    height: 5px;
    border-radius: 3px;
    background: rgba(246, 242, 233, 0.28);
}

.m-side i:first-of-type {
    background: rgba(246, 242, 233, 0.75);
}

.m-main {
    flex: 1;
    padding: 12px;
}

.m-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.m-stat {
    flex: 1;
    padding: 8px 6px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    text-align: center;
}

.m-stat b {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--ink);
}

/* Compteurs qui défilent de 0 à leur valeur */
@property --n {
    syntax: "<integer>";
    inherits: false;
    initial-value: 0;
}

.m-count::before {
    counter-reset: cnt var(--n);
    content: counter(cnt);
}

.m-count::after {
    content: attr(data-suffix);
}

.case.active .m-count {
    animation: countUp 1.6s var(--ease-out) 0.3s both;
}

@keyframes countUp {
    from { --n: 0; }
}

.m-stat span {
    font-size: 0.55rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* Graphique + mini-carte côte à côte */
.m-viz {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.m-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 66px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
}

.m-chart i {
    flex: 1;
    height: 8%;
    border-radius: 3px 3px 0 0;
    background: var(--paper-deep);
}

.m-chart i:nth-child(2n) {
    background: rgba(178, 90, 44, 0.55);
}

.m-chart i:nth-child(2) { --d: 0.1s; }
.m-chart i:nth-child(3) { --d: 0.2s; }
.m-chart i:nth-child(4) { --d: 0.3s; }
.m-chart i:nth-child(5) { --d: 0.4s; }
.m-chart i:nth-child(6) { --d: 0.5s; }
.m-chart i:nth-child(7) { --d: 0.6s; }

/* Les barres poussent, puis « respirent » comme des données en direct */
.case.active .m-chart i {
    animation:
        barGrow 0.8s var(--ease-out) var(--d, 0s) both,
        barLive 3.8s ease-in-out calc(var(--d, 0s) + 1s) infinite alternate;
}

@keyframes barGrow {
    from { height: 8%; }
    to { height: var(--h); }
}

@keyframes barLive {
    from { height: var(--h); }
    to { height: calc(var(--h) - 14%); }
}

/* Mini-carte : itinéraire animé + camion en tournée */
.m-map {
    position: relative;
    width: 132px;
    height: 66px;
    flex-shrink: 0;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 15px, rgba(27, 42, 36, 0.05) 15px, rgba(27, 42, 36, 0.05) 16px),
        repeating-linear-gradient(90deg, transparent, transparent 15px, rgba(27, 42, 36, 0.05) 15px, rgba(27, 42, 36, 0.05) 16px);
    overflow: hidden;
}

.m-map svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.m-route-bg {
    fill: none;
    stroke: var(--paper-deep);
    stroke-width: 3;
    stroke-linecap: round;
}

.m-route {
    fill: none;
    stroke: var(--copper);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-dasharray: 5 6;
    animation: routeFlow 1.1s linear infinite;
}

@keyframes routeFlow {
    to { stroke-dashoffset: -11; }
}

.m-truck {
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--ink);
    box-shadow: 0 0 0 2.5px rgba(246, 242, 233, 0.9), 0 3px 6px rgba(27, 42, 36, 0.35);
    offset-path: path("M10 52 C 36 8, 76 58, 122 14");
    offset-rotate: 0deg;
    animation: truckGo 5.5s ease-in-out infinite;
}

@keyframes truckGo {
    0% { offset-distance: 0%; opacity: 0; }
    8% { opacity: 1; }
    88% { offset-distance: 100%; opacity: 1; }
    96%, 100% { offset-distance: 100%; opacity: 0; }
}

.m-pin {
    position: absolute;
    top: 10px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--copper);
}

.m-pin::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid var(--copper);
    animation: mockPulse 2s ease-out infinite;
}

.m-rows .m-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line-soft);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.case.active .m-rows .m-row {
    opacity: 1;
    transform: translateX(0);
}

.case.active .m-rows .m-row:nth-child(2) { transition-delay: 0.5s; }
.case.active .m-rows .m-row:nth-child(3) { transition-delay: 0.8s; }

.m-rows .m-row:last-child {
    border-bottom: none;
}

.m-status {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22a35c;
    flex-shrink: 0;
}

.m-status.warn {
    background: var(--copper);
}

.m-status.warn::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid var(--copper);
    animation: mockPulse 2s ease-out infinite;
}

.m-row i {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--paper-deep);
}

.m-row em {
    font-style: normal;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* Mobile artisan — site vitrine */
.m-hero {
    padding: 18px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.m-hero i {
    height: 10px;
    border-radius: 5px;
    background: var(--ink);
    opacity: 0.9;
}

.m-hero i:nth-child(2) {
    width: 70%;
}

.m-hero i:nth-child(3) {
    height: 6px;
    width: 85%;
    background: var(--paper-deep);
    opacity: 1;
}

.m-badge-urgent {
    margin: 0 14px 10px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(178, 90, 44, 0.4);
    color: var(--copper-deep);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: fit-content;
}

.m-wa {
    margin: 0 14px 12px;
    padding: 10px;
    border-radius: 10px;
    background: var(--whatsapp);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 650;
    text-align: center;
}

/* Étoiles qui s'allument une à une */
.m-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 14px 16px;
    color: var(--copper);
    font-size: 0.8rem;
}

.m-stars b {
    font-weight: 400;
    opacity: 0;
    transform: scale(0.3);
}

.case.active .m-stars b {
    animation: starPop 0.45s var(--ease-out) forwards;
}

.case.active .m-stars b:nth-child(1) { animation-delay: 0.5s; }
.case.active .m-stars b:nth-child(2) { animation-delay: 0.65s; }
.case.active .m-stars b:nth-child(3) { animation-delay: 0.8s; }
.case.active .m-stars b:nth-child(4) { animation-delay: 0.95s; }
.case.active .m-stars b:nth-child(5) { animation-delay: 1.1s; }

@keyframes starPop {
    60% { opacity: 1; transform: scale(1.35); }
    100% { opacity: 1; transform: scale(1); }
}

.m-stars span {
    margin-left: 6px;
    color: var(--ink-soft);
    font-size: 0.66rem;
    font-weight: 700;
}

.m-call {
    position: relative;
    margin: 0 12px 12px;
    padding: 11px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--paper-soft);
    font-size: 0.7rem;
    font-weight: 650;
    text-align: center;
}

.m-call::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 13px;
    border: 2px solid rgba(27, 42, 36, 0.35);
    animation: mockPulse 2.2s ease-out infinite;
}

@keyframes mockPulse {
    0% { opacity: 1; transform: scale(0.98); }
    70%, 100% { opacity: 0; transform: scale(1.12); }
}

/* ----- Application Android de pointage (cas Nº4, boucle 12 s) ----- */

/* Caméra perforée, signature Android */
.mock-android::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0d1512;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.07);
    z-index: 2;
}

.mock-android .m-appbar {
    padding-top: 16px;
}

/* Statut de service en cours */
.m-shift-card {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 10px 12px;
    padding: 9px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    font-size: 0.62rem;
    font-weight: 650;
    color: var(--ink-soft);
}

.m-live {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22a35c;
    flex-shrink: 0;
}

.m-live::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid #22a35c;
    animation: mockPulse 2s ease-out infinite;
}

/* Missions du jour, cochées une à une */
.m-task {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
}

.m-task i {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--paper-deep);
}

.m-task em {
    font-style: normal;
    font-size: 0.56rem;
    font-weight: 700;
    color: var(--ink-faint);
}

.m-task-check {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--line);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: transparent;
    flex-shrink: 0;
}

.m-task-check::before {
    content: "✓";
}

.m-tasks .m-task:nth-child(1) .m-task-check { animation: taskTickA 12s ease infinite; }
.m-tasks .m-task:nth-child(2) .m-task-check { animation: taskTickB 12s ease infinite; }
.m-tasks .m-task:nth-child(3) .m-task-check { animation: taskTickC 12s ease infinite; }

@keyframes taskTickA {
    0%, 8% { background: transparent; border-color: var(--line); color: transparent; }
    12%, 86% { background: #22a35c; border-color: #22a35c; color: #fff; }
    92%, 100% { background: transparent; border-color: var(--line); color: transparent; }
}

@keyframes taskTickB {
    0%, 34% { background: transparent; border-color: var(--line); color: transparent; }
    38%, 86% { background: #22a35c; border-color: #22a35c; color: #fff; }
    92%, 100% { background: transparent; border-color: var(--line); color: transparent; }
}

@keyframes taskTickC {
    0%, 58% { background: transparent; border-color: var(--line); color: transparent; }
    62%, 86% { background: #22a35c; border-color: #22a35c; color: #fff; }
    92%, 100% { background: transparent; border-color: var(--line); color: transparent; }
}

/* Le bouton « Fin de service » s'active quand tout est coché */
.m-endshift {
    margin: 10px 12px 12px;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.66rem;
    font-weight: 650;
    background: var(--paper-deep);
    color: var(--ink-faint);
    animation: endShift 12s ease infinite;
}

@keyframes endShift {
    0%, 66% { background: var(--paper-deep); color: var(--ink-faint); transform: scale(1); }
    72% { transform: scale(1.05); }
    74%, 88% { background: var(--ink); color: var(--paper-soft); transform: scale(1); }
    94%, 100% { background: var(--paper-deep); color: var(--ink-faint); }
}

.work-footnote {
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: var(--ink-faint);
    font-style: italic;
}

@media (max-width: 820px) {
    .case {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .case-index {
        padding-top: 0;
    }
}

/* --------------------------------------------------------------------------
   Méthode — 4 étapes
   -------------------------------------------------------------------------- */

.method {
    background: var(--ink);
    color: var(--paper);
}

.method .kicker {
    border-color: rgba(246, 242, 233, 0.18);
}

.method .kicker-label {
    color: rgba(246, 242, 233, 0.65);
}

.method .section-intro {
    color: rgba(246, 242, 233, 0.68);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: clamp(2.25rem, 4vw, 3.5rem);
    border-left: 1px solid rgba(246, 242, 233, 0.16);
}

.step {
    padding: 0.4rem 1.6rem;
    border-right: 1px solid rgba(246, 242, 233, 0.16);
}

.step-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--copper);
    display: block;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 460;
    margin-bottom: 0.7rem;
    color: var(--paper-soft);
}

.step-desc {
    font-size: 0.93rem;
    color: rgba(246, 242, 233, 0.68);
}

.method-cta {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.method-cta p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(246, 242, 233, 0.8);
}

@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns: 1fr 1fr;
        border-left: none;
        gap: 2rem 0;
    }

    .step {
        border-right: none;
        border-left: 1px solid rgba(246, 242, 233, 0.16);
    }
}

@media (max-width: 560px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
    border-top: 1px solid var(--line);
    max-width: 820px;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    padding: 1.3rem 0;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 450;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--copper-deep);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--copper);
}

/* + fermé, − ouvert : la barre verticale se rétracte */
.faq-question .faq-icon-v {
    transform-origin: center;
    transition: transform 0.3s var(--ease-out), opacity 0.25s;
}

.faq-item.open .faq-question .faq-icon-v {
    transform: scaleY(0);
    opacity: 0;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s var(--ease-out);
}

.faq-answer > div {
    overflow: hidden;
}

.faq-answer p {
    padding-bottom: 1.4rem;
    color: var(--ink-soft);
    font-size: 0.99rem;
    max-width: 62ch;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    margin-top: clamp(2rem, 4vw, 3rem);
    align-items: start;
}

.contact-lede {
    font-size: 1.08rem;
    color: var(--ink-soft);
    max-width: 44ch;
    margin-bottom: 2rem;
}

/* Carte WhatsApp — canal principal */
.whatsapp-card {
    background: var(--paper-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.whatsapp-card-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.9rem;
}

.whatsapp-card-head svg {
    width: 34px;
    height: 34px;
    color: var(--whatsapp);
    flex-shrink: 0;
}

.whatsapp-card-head h3 {
    font-size: 1.25rem;
    font-weight: 460;
}

.whatsapp-card p {
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin-bottom: 1.3rem;
}

.contact-alt {
    font-size: 0.93rem;
    color: var(--ink-soft);
}

.contact-alt a {
    color: var(--copper);
    font-weight: 600;
    border-bottom: 1px solid currentColor;
}

/* Formulaire */
.contact-form {
    background: var(--paper-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font: inherit;
    font-size: 0.98rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234c5a52' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--copper);
    box-shadow: 0 0 0 3px rgba(178, 90, 44, 0.14);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--ink-faint);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #c0392b;
}

.error-message {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #c0392b;
}

.form-notice {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--ink-faint);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Spinner d'envoi */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

/* --------------------------------------------------------------------------
   Bouton WhatsApp flottant
   -------------------------------------------------------------------------- */

.whatsapp-float {
    position: fixed;
    bottom: 1.4rem;
    right: 1.4rem;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    box-shadow: 0 10px 26px -8px rgba(23, 130, 74, 0.55);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 32px -8px rgba(23, 130, 74, 0.6);
}

/* --------------------------------------------------------------------------
   Bandeau devise / langue (visiteurs canadiens)
   -------------------------------------------------------------------------- */

.geo-banner {
    position: fixed;
    left: 1.4rem;
    bottom: 1.4rem;
    z-index: 140;
    max-width: 330px;
    padding: 1rem 2.5rem 1rem 1.15rem;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 40px -18px rgba(27, 42, 36, 0.4);
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--ink-soft);
    animation: heroRise 0.6s var(--ease-out) both;
}

.geo-banner p {
    margin: 0;
}

.geo-banner p + p {
    margin-top: 0.4rem;
}

.geo-banner a {
    color: var(--copper);
    font-weight: 600;
    border-bottom: 1px solid currentColor;
    cursor: pointer;
}

.geo-banner a:hover {
    color: var(--copper-deep);
}

.geo-banner-close {
    position: absolute;
    top: 0.45rem;
    right: 0.55rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.85rem;
    color: var(--ink-faint);
}

.geo-banner-close:hover {
    color: var(--ink);
}

@media (max-width: 680px) {
    .geo-banner {
        left: 1rem;
        right: 5.6rem;
        bottom: 1rem;
        max-width: none;
    }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
    background: var(--ink);
    color: rgba(246, 242, 233, 0.7);
    padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}

.footer .logo {
    color: var(--paper-soft);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr repeat(auto-fit, minmax(140px, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(246, 242, 233, 0.14);
}

.footer-tagline {
    margin-top: 1rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.02rem;
    color: rgba(246, 242, 233, 0.6);
    max-width: 30ch;
}

.footer-column h4 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(246, 242, 233, 0.45);
    margin-bottom: 1.1rem;
}

.footer-column li {
    margin-bottom: 0.6rem;
}

.footer-column a {
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--paper-soft);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1.75rem;
    font-size: 0.85rem;
    color: rgba(246, 242, 233, 0.45);
}

@media (max-width: 720px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Pages internes (légal, merci)
   -------------------------------------------------------------------------- */

.page-hero {
    padding-top: clamp(8rem, 14vw, 10.5rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    max-width: 22ch;
}

.page-hero .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 1.75rem;
    transition: color 0.2s;
}

.page-hero .back-link:hover {
    color: var(--copper);
}

.page-hero .back-link svg {
    width: 16px;
    height: 16px;
}

.prose {
    max-width: 760px;
    padding-block: clamp(2.5rem, 5vw, 4rem);
}

.prose h2 {
    font-size: 1.55rem;
    margin: 2.4rem 0 0.9rem;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p {
    margin-bottom: 1rem;
    color: var(--ink-soft);
}

.prose ul {
    margin: 0 0 1rem;
}

.prose ul li {
    position: relative;
    padding: 0.3rem 0 0.3rem 1.5rem;
    color: var(--ink-soft);
}

.prose ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--copper);
}

.prose strong {
    color: var(--ink);
}

.prose a {
    color: var(--copper);
    border-bottom: 1px solid currentColor;
}

/* Page merci */
.thanks {
    min-height: 72vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 6rem;
}

.thanks-inner {
    max-width: 620px;
    margin-inline: auto;
}

.thanks-mark {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 3rem;
    color: var(--copper);
    line-height: 1;
    margin-bottom: 1.25rem;
}

.thanks h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 1rem;
}

.thanks p {
    color: var(--ink-soft);
    margin-bottom: 2rem;
}

.thanks-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* --------------------------------------------------------------------------
   Pages métier
   -------------------------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2.5rem, 6vw, 4.5rem);
    align-items: center;
}

@media (max-width: 900px) {
    .split {
        grid-template-columns: 1fr;
    }
}

/* Scène de maquette hors grille de réalisations */
.case.mock-stage {
    display: flex;
    justify-content: center;
    border-bottom: none;
    padding: 0;
}

/* Problèmes du métier */
.pain-list {
    max-width: 640px;
    border-top: 1px solid var(--line);
    margin-top: clamp(1.5rem, 3vw, 2rem);
}

.pain-list li {
    position: relative;
    padding: 1rem 0 1rem 2.2rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.pain-list li::before {
    content: "✕";
    position: absolute;
    left: 0.15rem;
    top: 1rem;
    color: var(--copper);
    font-weight: 700;
}

/* Bandeau formule recommandée */
.metier-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
}

.metier-band-price small {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(246, 242, 233, 0.55);
    margin-bottom: 0.25rem;
}

.metier-band-price strong {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 480;
}

.metier-band-price span {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.9rem;
    color: rgba(246, 242, 233, 0.72);
}

/* Liens vers les autres métiers */
.metier-others {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.metier-others a {
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-soft);
    transition: border-color 0.2s, color 0.2s, transform 0.25s var(--ease-out);
}

.metier-others a:hover {
    border-color: var(--copper);
    color: var(--copper-deep);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Révélation au scroll
   -------------------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* --------------------------------------------------------------------------
   Accessibilité — mouvement réduit
   -------------------------------------------------------------------------- */

@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;
    }
}
