/* ==========================================================================
   COULEURS, RYTHME DES ANIMATIONS ET RÉGLAGES
   Modifiez ici l'identité visuelle et la vitesse des animations du site.
   ========================================================================== */
:root {
  /* --- Palette d'origine de litaen.com --- */
  --bleu: #0986C0;            /* bleu Litaen (logo, accents) */
  --bleu-ciel: #7AC7F1;       /* bleu clair */
  --encre: #1F2732;           /* titres, fonds sombres */
  --texte: #444444;           /* texte courant */
  --orange: #FF8F00;          /* boutique, étoiles */

  /* --- Nuances dérivées --- */
  --bleu-fonce: #0A6E9E;      /* boutons et liens (contraste AA sur blanc) */
  --bleu-tres-fonce: #075278; /* survol des boutons */
  --orange-fonce: #E67F00;    /* survol bouton boutique */
  --bleu-pale: #EEF7FD;       /* pastilles, icônes */
  --fond-teinte: #F5FAFD;     /* sections alternées */
  --bordure: #E4EEF5;
  --bordure-forte: #CFE3F0;
  --champ: #D5E2EC;
  --gris-clair: #F2F6F9;
  --gris-moyen: #5B6673;
  --texte-sur-sombre: #C9D3DE;
  --ligne-sombre: #3A4757;
  --erreur: #B42318;
  --blanc: #FFFFFF;
  --verre: rgba(255, 255, 255, .78);        /* fond de la pop-in (glassmorphism) */
  --verre-bordure: rgba(255, 255, 255, .6);
  --voile: rgba(31, 39, 50, .32);           /* voile derrière la pop-in */
  --lueur: rgba(122, 199, 241, .38);        /* lueur des cartes au survol */
  --papier: #FDFDFC;                        /* fond du croquis */
  --crayon: #2E3540;                        /* trait du croquis */
  --encre-claire: #26303D;                  /* panneaux légaux du pied de page */

  /* --- Ombres --- */
  --ombre-carte: 0 18px 40px -18px rgba(9, 134, 192, .45);
  --ombre-modal: 0 40px 80px -30px rgba(31, 39, 50, .55);

  /* --- Typographie --- */
  --police-titre: "Montserrat", system-ui, sans-serif;
  --police-texte: "Poppins", system-ui, sans-serif;
  --police-main: "Caveat", "Segoe Print", cursive;   /* annotations manuscrites du croquis */

  /* --- Mise en page --- */
  --largeur: 1200px;
  --gouttiere: 20px;
  --rayon: 20px;
  --hauteur-entete: 72px;

  /* --- RYTHME DES ANIMATIONS ---
     Durées en secondes ; augmentez-les pour ralentir, diminuez pour accélérer. */
  --duree-rapide: .2s;        /* survols, petits retours visuels */
  --duree: .45s;              /* menu, indicateur, champs */
  --duree-lente: .8s;         /* apparitions au défilement */
  --duree-titre: .9s;         /* révélation du titre mot par mot */
  --duree-modal: .5s;         /* ouverture / fermeture de la pop-in */
  --duree-blob: 22s;          /* mouvement des formes floues du héro */
  --decalage: .08s;           /* décalage entre éléments d'une même section (stagger) */
  --distance-apparition: 28px;/* glissement vertical à l'apparition */
  /* Courbes */
  --ease-sortie: cubic-bezier(.16, 1, .3, 1);   /* départ vif, arrivée douce */
  --ease-douce: cubic-bezier(.65, 0, .35, 1);   /* aller-retour */
  --ease-ressort: cubic-bezier(.34, 1.56, .64, 1);
  /* Réglages lus par le JavaScript (GSAP / Lenis) */
  --gsap-ease: "power3.out";
  --lenis-duree: 1.15;        /* inertie du défilement fluide */
  --parallaxe-force: 12;      /* amplitude de la parallaxe (en %) */
  --magnetisme: .3;           /* attraction des boutons magnétiques (0 à 1) */
  --inclinaison: 7;           /* inclinaison max des cartes (degrés) */
}

/* ==========================================================================
   Polices (hébergées localement, aucun appel à Google)
   ========================================================================== */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/caveat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--bleu-fonce); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--police-titre); color: var(--encre); margin: 0; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
section[id] { scroll-margin-top: calc(var(--hauteur-entete) + 8px); }

/* Lenis (défilement fluide) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.container { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--encre); color: var(--blanc); padding: 10px 16px; border-radius: 10px; transition: transform var(--duree-rapide);
}
.skip-link:focus { top: 12px; color: var(--blanc); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   Barre de progression de lecture
   ========================================================================== */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress-bar { display: block; height: 100%; background: linear-gradient(90deg, var(--bleu), var(--bleu-ciel)); transform: scaleX(0); transform-origin: 0 50%; }
.no-progress .progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress-bar.css-driven { animation: progression linear both; animation-timeline: scroll(root block); }
}
@keyframes progression { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 22px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  position: relative;
  transition: transform var(--duree-rapide) var(--ease-sortie), background-color var(--duree-rapide), color var(--duree-rapide);
}
.btn-primary { background: var(--bleu-fonce); color: var(--blanc); }
.btn-shop { background: var(--orange); color: var(--encre); }
.btn-ghost { background: transparent; color: var(--encre); border: 1.5px solid var(--bordure-forte); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn .arrow, .link-arrow .arrow { display: inline-block; transition: transform var(--duree-rapide) var(--ease-sortie); }
.btn-label { display: inline-flex; align-items: center; gap: 8px; pointer-events: none; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--bordure-forte); background: var(--blanc); color: var(--encre); cursor: pointer;
}

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 40; }
/* Le flou est porté par un pseudo-élément : un backdrop-filter sur l'en-tête lui-même
   « enfermerait » le menu mobile (position: fixed) dans les 72 px de l'en-tête. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
}
body.no-scroll .site-header::before { background: var(--blanc); } /* menu ouvert : en-tête opaque */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bordure); opacity: 0; transition: opacity var(--duree); }
.site-header.is-scrolled::after { opacity: 1; }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--hauteur-entete); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-logo { width: 40px; height: 40px; transition: transform var(--duree-lente) var(--ease-sortie); }
.brand-name { font-family: var(--police-titre); font-weight: 800; font-size: 1.25rem; color: var(--encre); letter-spacing: .02em; }

.shop-mini { background: var(--orange); border-color: var(--orange); color: var(--encre); }
.burger { position: relative; width: 20px; height: 14px; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--duree) var(--ease-sortie), opacity var(--duree-rapide); }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menu mobile : panneau plein écran */
.main-nav {
  position: fixed; inset: var(--hauteur-entete) 0 0 0; z-index: 39;
  background: var(--blanc); padding: 16px var(--gouttiere) 32px;
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--duree) var(--ease-sortie), transform var(--duree) var(--ease-sortie), visibility 0s var(--duree);
}
.main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-track { position: relative; }
.nav-indicator { display: none; }
.nav-list li { overflow: hidden; }
.nav-list a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--bordure);
  font-family: var(--police-titre); font-weight: 700; font-size: 1.75rem; color: var(--encre); text-decoration: none;
  transition: color var(--duree-rapide), transform var(--duree) var(--ease-sortie);
}
.nav-list a[aria-current="true"] { color: var(--bleu-fonce); }
/* entrée en cascade des liens du menu mobile */
.main-nav .nav-list a { transform: translateY(100%); }
.main-nav.is-open .nav-list a { transform: none; }
.main-nav.is-open .nav-list li:nth-child(2) a { transition-delay: calc(var(--decalage) * 1); }
.main-nav.is-open .nav-list li:nth-child(3) a { transition-delay: calc(var(--decalage) * 2); }
.main-nav.is-open .nav-list li:nth-child(4) a { transition-delay: calc(var(--decalage) * 3); }
.main-nav.is-open .nav-list li:nth-child(5) a { transition-delay: calc(var(--decalage) * 4); }
.main-nav.is-open .nav-list li:nth-child(6) a { transition-delay: calc(var(--decalage) * 5); }
.nav-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }

@media (min-width: 960px) {
  :root { --gouttiere: 32px; }
  .shop-mini, .menu-toggle { display: none; }
  .main-nav {
    position: static; inset: auto; padding: 0; background: none; overflow: visible;
    flex-direction: row; align-items: center; gap: 28px;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav-list { display: flex; gap: 4px; position: relative; z-index: 1; }
  .nav-list li { overflow: visible; }
  .main-nav .nav-list a, .main-nav.is-open .nav-list a { transform: none; transition-delay: 0s; }
  .nav-list a { border: 0; padding: 8px 14px; font-family: var(--police-texte); font-weight: 500; font-size: .95rem; position: relative; border-radius: 999px; }
  /* soulignement animé */
  .nav-list a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--bleu);
    transform: scaleX(0); transform-origin: right; transition: transform var(--duree) var(--ease-sortie);
  }
  /* indicateur de section active (pastille qui glisse) */
  .nav-indicator {
    display: block; position: absolute; left: 0; top: 50%; height: 36px; width: 100px; margin-top: -18px;
    border-radius: 999px; background: var(--bleu-pale); z-index: 0; opacity: 0;
    transform-origin: 0 50%;
    transition: transform var(--duree) var(--ease-sortie), opacity var(--duree);
  }
  .nav-indicator.is-visible { opacity: 1; }
  .nav-actions { flex-direction: row; margin: 0; gap: 10px; }
  .brand-logo { width: 44px; height: 44px; }
}
.nav-list a, .nav-actions .btn { white-space: nowrap; }
/* Écrans intermédiaires (petits portables, tablettes à l'horizontale) : menu plus compact */
@media (min-width: 960px) and (max-width: 1199px) {
  .main-nav { gap: 12px; }
  .nav-list { gap: 0; }
  .nav-list a { padding: 8px 9px; font-size: .88rem; }
  .nav-list a::after { left: 9px; right: 9px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 9px 14px; font-size: .85rem; min-height: 40px; }
  .nav-actions .btn-shop svg { display: none; }
  .brand-name { font-size: 1.1rem; }
  .brand-logo { width: 38px; height: 38px; }
}

/* ==========================================================================
   Sections communes
   ========================================================================== */
.section { padding: 64px 0; position: relative; }
.section-tint { background: var(--fond-teinte); border-block: 1px solid var(--bordure); }
.eyebrow { display: block; color: var(--bleu-fonce); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.section-title { font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.section-head.center { align-items: center; text-align: center; }
.lead { font-size: 1.0625rem; }

@media (min-width: 960px) {
  .section { padding: 112px 0; }
  .section-head { flex-direction: row; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
  .section-head.center { flex-direction: column; align-items: center; }
  .section-head > p { max-width: 380px; }
}

/* ==========================================================================
   Accueil (héro)
   ========================================================================== */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-blobs { position: absolute; inset: -10% -10% 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.blob-1 { width: 46vmax; height: 46vmax; left: 45%; top: -18%; background: var(--bleu-ciel); animation: derive-1 var(--duree-blob) var(--ease-douce) infinite alternate; }
.blob-2 { width: 34vmax; height: 34vmax; left: -10%; top: 30%; background: var(--bleu-pale); opacity: .9; animation: derive-2 calc(var(--duree-blob) * 1.2) var(--ease-douce) infinite alternate; }
.blob-3 { width: 22vmax; height: 22vmax; left: 70%; top: 55%; background: var(--orange); opacity: .18; animation: derive-3 calc(var(--duree-blob) * .9) var(--ease-douce) infinite alternate; }
@keyframes derive-1 { to { transform: translate3d(-12%, 10%, 0) scale(1.12); } }
@keyframes derive-2 { to { transform: translate3d(18%, -12%, 0) scale(.9); } }
@keyframes derive-3 { to { transform: translate3d(-30%, -20%, 0) scale(1.2); } }

.hero .container { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 56px; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; height: 300px; }
.hero-disc { position: absolute; width: 250px; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.hero-ring { position: absolute; width: 250px; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--bleu-ciel); transform: scale(1.12); animation: tourne 60s linear infinite; }
.hero-logo { position: relative; width: 180px; height: 180px; filter: drop-shadow(0 24px 40px rgba(9, 134, 192, .35)); animation: flotte 6s ease-in-out infinite; }


.hero-text { display: flex; flex-direction: column; gap: 22px; }
.badge { align-self: flex-start; background: rgba(255, 255, 255, .8); color: var(--bleu-fonce); border: 1px solid var(--bordure-forte); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 7px 13px; border-radius: 999px; }
.hero-title { font-weight: 800; font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.625rem); line-height: 1.08; letter-spacing: -.02em; }
.hero-title em { font-style: normal; color: var(--bleu); }
/* Révélation mot par mot avec masque */
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .w-in { display: inline-block; }
.anim .hero-title .w-in { transform: translateY(105%); animation: mot var(--duree-titre) var(--ease-sortie) both; animation-delay: calc(.15s + var(--wi, 0) * var(--decalage)); }
@keyframes mot { to { transform: translateY(0); } }
.anim .hero-fade { opacity: 0; animation: fondu-monte var(--duree-lente) var(--ease-sortie) both; animation-delay: calc(.35s + var(--fi, 0) * var(--decalage) * 2); }
/* « translate » plutôt que « transform » : laisse « transform » libre pour l'inclinaison 3D des cartes */
@keyframes fondu-monte { from { opacity: 0; translate: 0 var(--distance-apparition); } to { opacity: 1; translate: none; } }

.hero-lead { font-size: clamp(1rem, .95rem + .3vw, 1.19rem); max-width: 520px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }

@keyframes flotte { 50% { transform: translateY(-10px); } }
@keyframes tourne { to { transform: scale(1.12) rotate(360deg); } }

@media (min-width: 640px) { .hero-actions { flex-direction: row; flex-wrap: wrap; } }
@media (min-width: 960px) {
  .hero .container { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 104px; }
  .hero-text { order: -1; gap: 28px; }
  .hero-visual { height: 500px; }
  .hero-disc, .hero-ring { width: 430px; }
  .hero-logo { width: 320px; height: 320px; }
}

/* ==========================================================================
   Apparition au défilement
   - navigateurs récents : animations CSS pilotées par le scroll (view())
   - autres : GSAP + ScrollTrigger (classe .gsap-reveal)
   ========================================================================== */
.reveal-css .reveal { opacity: 0; translate: 0 var(--distance-apparition); }
@supports (animation-timeline: view()) {
  .reveal-css .reveal {
    animation: fondu-monte linear both;
    animation-timeline: view();
    animation-range: entry calc(4% + var(--i, 0) * 6%) entry calc(70% + var(--i, 0) * 6%);
  }
}
.reveal-js .reveal { opacity: 0; }

/* ==========================================================================
   Solutions
   ========================================================================== */
.solutions-grid { display: grid; gap: 24px; }
.solutions-body { display: flex; flex-direction: column; gap: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.stat { background: var(--blanc); border: 1px solid var(--bordure); border-radius: 16px; padding: 14px 12px; }
.stat-value { font-family: var(--police-titre); font-weight: 800; font-size: clamp(1.4rem, 1rem + 1.4vw, 1.9rem); color: var(--bleu); line-height: 1.2; }
.stat-label { font-size: .8rem; line-height: 1.4; }
@media (min-width: 960px) {
  .solutions-grid { grid-template-columns: 5fr 7fr; gap: 48px; }
  .solutions-body { font-size: 1.0625rem; }
  .stats { gap: 16px; }
  .stat { padding: 20px; }
  .stat-label { font-size: .875rem; }
}

/* ==========================================================================
   Cartes (services, avis, contact) + lueur qui suit la souris
   ========================================================================== */
.card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon);
  transition: transform var(--duree) var(--ease-sortie);
}
html:not(.no-tilt) .tilt { transition: none; } /* GSAP pilote l'inclinaison */
.card::after { /* ombre portée gérée en opacité (performances) */
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--ombre-carte); opacity: 0; z-index: -2;
  transition: opacity var(--duree) var(--ease-sortie); pointer-events: none;
}
.card-glow {
  position: absolute; left: 0; top: 0; width: 320px; height: 320px; margin: -160px 0 0 -160px; border-radius: 50%;
  background: radial-gradient(circle, var(--lueur), transparent 65%); z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity var(--duree); /* position pilotée en transform par animations.js */
}

.services-grid { display: grid; gap: 16px; }
.service { padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; }
.service-icon {
  grid-row: span 3; width: 48px; height: 48px; border-radius: 14px; background: var(--bleu-pale); color: var(--bleu);
  display: flex; align-items: center; justify-content: center; transition: transform var(--duree) var(--ease-ressort);
}
.service h3 { font-weight: 700; font-size: 1.15rem; }
.service p { font-size: .95rem; }
.link-arrow { font-weight: 600; font-size: .95rem; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }

@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 960px) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .service { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
  .service-icon { width: 52px; height: 52px; }
  .service h3 { font-size: 1.3rem; }
  .service .link-arrow { margin-top: auto; }
}

/* ==========================================================================
   Réalisations : croquis 3D au crayon
   ========================================================================== */
.works-grid { display: grid; gap: 28px; align-items: center; }
.works-text { display: flex; flex-direction: column; gap: 14px; }
.works-text .eyebrow { margin-bottom: 0; }
.works-text p { max-width: 52ch; }
.sketch { margin: 0; }
.sketch-paper {
  position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 20px; overflow: hidden;
  background: var(--papier) url("../img/fond-croquis.svg") center / cover no-repeat; border: 1px solid var(--bordure);
}
.sketch-poster, .sketch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sketch-poster { object-fit: contain; transition: opacity var(--duree-lente) var(--ease-sortie); }
.sketch-canvas { pointer-events: none; opacity: 0; transition: opacity var(--duree-lente) var(--ease-sortie); }
.sketch-paper.is-ready .sketch-canvas { opacity: 1; }
.sketch-paper.is-ready .sketch-poster { opacity: 0; }
.sketch-note {
  position: absolute; right: 22px; bottom: 14px; display: flex; flex-direction: column; align-items: flex-end;
  font-family: var(--police-main); font-weight: 600; font-size: 1.6rem; line-height: 1.1; color: var(--crayon);
  transform: rotate(-3deg); pointer-events: none;
}
@media (min-width: 960px) { .works-grid { grid-template-columns: 5fr 7fr; gap: 56px; } .works-text { font-size: 1.0625rem; } }

/* ==========================================================================
   Boutique
   ========================================================================== */
.section-shop { padding-top: 0; }
.shop-panel {
  position: relative; overflow: hidden; isolation: isolate; background: var(--encre); color: #DCE6EF;
  border-radius: 24px; padding: 36px 24px; display: grid; gap: 24px; align-items: center;
}
.shop-panel .eyebrow { color: var(--bleu-ciel); }
.shop-panel .section-title { color: var(--blanc); }
.shop-text { position: relative; display: flex; flex-direction: column; gap: 16px; }
.shop-thumbs { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.thumbs { display: flex; padding-left: 10px; }
.thumbs li { margin-left: -10px; }
.thumb {
  display: block; width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--encre); background: var(--blanc);
  transition: transform var(--duree) var(--ease-ressort);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumbs-label { font-size: .85rem; color: var(--texte-sur-sombre); }
.shop-cta { position: relative; display: flex; flex-direction: column; gap: 10px; }
.shop-cta .btn { padding: 18px 28px; font-size: 1.05rem; }
.shop-cta a:not(.btn) { color: var(--bleu-ciel); text-align: center; padding: 10px; }
.shop-deco1 { position: absolute; right: -80px; top: -80px; width: 300px; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(122, 199, 241, .35); z-index: -1; }
.shop-deco2 { position: absolute; right: 40px; bottom: -140px; width: 260px; aspect-ratio: 1; border-radius: 50%; background: rgba(9, 134, 192, .25); z-index: -1; }
@media (min-width: 960px) {
  .shop-panel { grid-template-columns: 7fr 5fr; gap: 48px; padding: 64px; border-radius: 28px; }
  .shop-text { font-size: 1.0625rem; }
}

/* ==========================================================================
   Avis
   ========================================================================== */
.reviews-grid { display: grid; gap: 16px; }
.review { margin: 0; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.stars { color: var(--orange); font-size: 1.2rem; letter-spacing: 3px; line-height: 1; }
.review blockquote { margin: 0; color: var(--encre); font-size: 1.05rem; flex-grow: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: .875rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bleu-pale); color: var(--bleu-fonce); display: flex; align-items: center; justify-content: center; font-weight: 600; text-transform: uppercase; }
.review strong { display: block; color: var(--encre); font-weight: 600; }
@media (min-width: 960px) { .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } .review { padding: 32px; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; gap: 28px; }
.contact-intro { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; text-decoration: none; color: var(--texte); }
.contact-card .ico-wrap { color: var(--bleu); margin-bottom: 6px; }
.contact-card .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-card strong { color: var(--encre); font-weight: 600; word-break: break-word; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 48px; } .contact-card { padding: 24px; } }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { background: var(--encre); color: var(--texte-sur-sombre); font-size: .95rem; }
.site-footer a { color: var(--texte-sur-sombre); text-decoration: none; transition: color var(--duree-rapide); }
.footer-grid { display: grid; gap: 32px; padding-top: 56px; padding-bottom: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 16px; }
.footer-brand .brand-name { color: var(--blanc); }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h2 { font-size: 1rem; font-weight: 700; color: var(--blanc); margin-bottom: 4px; }
.footer-services { grid-column: 1 / -1; }
.socials { display: flex; gap: 10px; }
.socials a { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ligne-sombre); display: flex; align-items: center; justify-content: center; transition: transform var(--duree-rapide) var(--ease-sortie), color var(--duree-rapide); isolation: isolate; }
.socials a::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: var(--bleu); opacity: 0; transform: scale(.6); z-index: -1; transition: opacity var(--duree-rapide), transform var(--duree) var(--ease-sortie); }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid var(--ligne-sombre); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; font-size: .85rem; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 4fr 2fr 3fr 3fr; padding-top: 72px; }
  .footer-brand, .footer-services { grid-column: auto; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* Informations légales dans le pied de page */
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.legal-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; color: var(--texte-sur-sombre); font-size: .85rem; cursor: pointer;
  transition: color var(--duree-rapide), border-color var(--duree-rapide);
}
.legal-toggle .chevron { display: inline-flex; transition: transform var(--duree) var(--ease-sortie); }
.legal-toggle[aria-expanded="true"] { color: var(--blanc); border-color: var(--ligne-sombre); }
.legal-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.footer-legal { grid-column: 1 / -1; }
.legal-panel {
  background: var(--encre-claire); border: 1px solid var(--ligne-sombre); border-radius: 20px;
  padding: 24px 20px 28px; animation: fondu-monte var(--duree) var(--ease-sortie); --distance-apparition: 12px;
}
.legal-panel:focus { outline: none; }
.legal-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 18px; padding-right: 52px; position: relative; }
.legal-head h2 { color: var(--blanc); font-size: 1.25rem; font-weight: 700; }
.legal-maj { font-size: .8rem; color: var(--bleu-ciel); }
.legal-close {
  position: absolute; right: 0; top: -6px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ligne-sombre);
  background: transparent; color: var(--texte-sur-sombre); display: flex; align-items: center; justify-content: center; cursor: pointer;
  transform: rotate(180deg); transition: transform var(--duree) var(--ease-sortie), color var(--duree-rapide);
}
.legal-columns { font-size: .875rem; line-height: 1.7; color: var(--texte-sur-sombre); }
.legal-columns h3 { color: var(--blanc); font-family: var(--police-texte); font-size: .875rem; font-weight: 600; margin: 16px 0 4px; break-after: avoid; }
.legal-columns h3:first-child { margin-top: 0; }
.legal-columns p { margin-bottom: 8px; }
.legal-ul { list-style: disc; padding-left: 20px; margin-bottom: 8px; }
@media (min-width: 960px) {
  .legal-panel { padding: 32px 36px 36px; }
  .legal-columns { column-count: 2; column-gap: 48px; }
  .legal-columns p, .legal-columns ul { break-inside: avoid-column; }
}

/* ==========================================================================
   Pop-in de contact — verre dépoli (glassmorphism)
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0; background: var(--voile);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity var(--duree-modal) var(--ease-sortie);
}
.modal-dialog {
  position: relative; width: 100%; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--verre);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--verre-bordure);
  border-radius: 28px 28px 0 0; padding: 32px 22px 28px;
  box-shadow: var(--ombre-modal), inset 0 1px 0 rgba(255, 255, 255, .7);
  opacity: 0; transform: translateY(40px);
  transition: opacity var(--duree-modal) var(--ease-sortie), transform var(--duree-modal) var(--ease-sortie);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .modal-dialog { background: rgba(255, 255, 255, .97); }
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-dialog { opacity: 1; transform: none; }
/* Pendant une View Transition, c'est le navigateur qui anime : pas de double effet */
.modal.vt .modal-dialog { transition: none; }
.modal-dialog:focus { outline: none; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .7); color: var(--encre); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform var(--duree) var(--ease-sortie); }
.modal-title { font-weight: 700; font-size: 1.6rem; margin-bottom: 6px; padding-right: 48px; }
.modal-sub { font-size: .95rem; margin-bottom: 24px; }
@media (min-width: 640px) {
  .modal { align-items: center; padding: 24px; }
  .modal-dialog { max-width: 520px; border-radius: 28px; padding: 40px; transform: translateY(16px) scale(.96); }
  .modal-title { font-size: 1.75rem; }
}

/* View Transitions : le bouton cliqué se transforme en pop-in */
::view-transition-group(contact-morph) { animation-duration: var(--duree-modal); animation-timing-function: var(--ease-sortie); }
::view-transition-old(contact-morph), ::view-transition-new(contact-morph) { height: 100%; width: 100%; object-fit: cover; overflow: clip; }
::view-transition-old(contact-morph) { animation: vt-sortie calc(var(--duree-modal) * .5) var(--ease-sortie) both; }
::view-transition-new(contact-morph) { animation: vt-entree var(--duree-modal) var(--ease-sortie) both; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--duree-modal); }
@keyframes vt-sortie { to { opacity: 0; } }
@keyframes vt-entree { from { opacity: 0; } 40% { opacity: 0; } to { opacity: 1; } }

/* Champs à label flottant */
.field { position: relative; margin-bottom: 18px; }
.field input, .field textarea {
  display: block; width: 100%; font: inherit; color: var(--encre);
  padding: 24px 16px 8px; border: 1.5px solid var(--champ); border-radius: 14px; background: rgba(255, 255, 255, .85);
  transition: border-color var(--duree-rapide);
}
.field textarea { resize: vertical; min-height: 140px; padding-top: 28px; }
.field input::placeholder, .field textarea::placeholder { color: var(--gris-moyen); opacity: 0; transition: opacity var(--duree); }
.field input:focus::placeholder, .field textarea:focus::placeholder { opacity: 1; }
.field label {
  position: absolute; left: 17px; top: 17px; font-size: 1rem; color: var(--gris-moyen); pointer-events: none;
  transform-origin: 0 0; transition: transform var(--duree) var(--ease-sortie), color var(--duree-rapide);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-11px) scale(.78); color: var(--bleu-fonce); font-weight: 500;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bleu); }
/* halo de focus animé (opacité + échelle) */
.field-box { position: relative; }
.field-line {
  position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 4px rgba(9, 134, 192, .18); opacity: 0; transform: scale(.98); transition: opacity var(--duree) var(--ease-sortie), transform var(--duree) var(--ease-sortie);
}
.field:focus-within .field-line { opacity: 1; transform: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--erreur); }
.field input[aria-invalid="true"] + label, .field textarea[aria-invalid="true"] + label { color: var(--erreur); }
.field-error { color: var(--erreur); font-size: .825rem; margin-top: 6px; }
.field-error:empty { display: none; }
.form-error { color: var(--erreur); font-size: .9rem; margin-bottom: 12px; }
.form-error:empty { display: none; }
.form-note { font-size: .8rem; margin-top: 12px; text-align: center; }
.form-note a { color: var(--gris-moyen); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.shake { animation: secoue .4s; }
@keyframes secoue { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Confirmation : coche animée */
.success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0 4px; }
.success[hidden] { display: none; }
.success .modal-title { padding: 0; margin: 4px 0 0; }
.success .btn { margin-top: 10px; }
.success-icon { color: var(--bleu); animation: pop var(--duree-lente) var(--ease-ressort) both; }
.success-icon .check-circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: trace var(--duree-lente) var(--ease-sortie) .1s forwards; }
.success-icon .check { stroke-dasharray: 34; stroke-dashoffset: 34; animation: trace var(--duree) var(--ease-sortie) .55s forwards; }
.success > *:not(.success-icon) { animation: fondu-monte var(--duree-lente) var(--ease-sortie) both; --distance-apparition: 10px; }
.success > :nth-child(2) { animation-delay: .5s; }
.success > :nth-child(3) { animation-delay: .6s; }
.success > :nth-child(4) { animation-delay: .7s; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes trace { to { stroke-dashoffset: 0; } }

.noscript { padding: 48px 20px; }

/* ==========================================================================
   Effets de survol — uniquement souris / pavé tactile (pas sur écrans tactiles)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--bleu-tres-fonce); }
  .btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }
  .btn-primary:hover { background: var(--bleu-tres-fonce); color: var(--blanc); }
  .btn-shop:hover { background: var(--orange-fonce); color: var(--encre); }
  .btn-ghost:hover { background: var(--bleu-pale); color: var(--bleu-fonce); }
  .brand:hover .brand-logo { transform: rotate(-10deg) scale(1.06); }
  .nav-list a:hover { color: var(--bleu-fonce); }
  .nav-list a:hover::after { transform: scaleX(1); transform-origin: left; }
  .card:hover::after { opacity: 1; }
  .card:hover .card-glow { opacity: 1; }
  .no-tilt .card:hover { transform: translateY(-4px); }
  .card:hover .service-icon { transform: rotate(-8deg) scale(1.08); }
  .contact-card:hover { color: var(--texte); }
  .shop-cta a:not(.btn):hover { color: var(--blanc); }
  .thumb:hover, .thumb:focus-visible { transform: translateY(-6px) scale(1.08); position: relative; z-index: 1; }
  .legal-toggle:hover { color: var(--blanc); border-color: var(--ligne-sombre); }
  .legal-close:hover { color: var(--blanc); transform: rotate(180deg) translateY(2px); }
  .site-footer a:hover { color: var(--bleu-ciel); }
  .socials a:hover { color: var(--blanc); transform: translateY(-2px); }
  .socials a:hover::before { opacity: 1; transform: scale(1); }
  .modal-close:hover { transform: rotate(90deg); }
  .form-note a:hover { color: var(--encre); }
}

/* ==========================================================================
   Mouvement réduit : on coupe animations et transitions
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal-css .reveal, .reveal-js .reveal { opacity: 1; translate: none; animation: none; }
  .anim .hero-title .w-in { transform: none; }
  .anim .hero-fade { translate: none; opacity: 1; }
  .blob, .hero-ring, .hero-logo { animation: none !important; }
  .success-icon .check, .success-icon .check-circle { stroke-dashoffset: 0; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
/* Animations coupées depuis content.json */
.no-anim *, .no-anim *::before, .no-anim *::after { animation: none !important; }
.no-anim .reveal, .no-anim .hero-fade { opacity: 1 !important; translate: none !important; }
.no-anim .hero-title .w-in { transform: none !important; }
.no-anim .success-icon .check, .no-anim .success-icon .check-circle { stroke-dashoffset: 0; }
