/* DOANGE — feuille de style unique */
:root {
  --rouge: #CC4A3C;
  --rouge-survol: #A93A2E;
  --noir: #111013;
  --pied: #161519;
  --gris: #82838C;
  --gris-clair: #F4F4F5;
  --blanc: #FFFFFF;
  --entete-fond: rgba(240, 240, 242, 0.78);

  --f-titre: "Playfair Display", Georgia, serif;
  --f-sans: "DM Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-corps: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --t-h1: 72px;
  --t-h2: 49px;
  --t-h3: 33px;
  --t-h4: 22.6px;
  --t-corps: 16.4px;

  --conteneur: 1344px;
  --gouttiere: 32px;
  --section: 115px;
  --rayon-btn: 28px;
  --rayon: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  font-family: var(--f-corps);
  font-size: var(--t-corps);
  line-height: 1.6;
  color: var(--noir);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--f-titre); font-weight: 800; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: var(--t-h1); line-height: 1.02; }
h2 { font-size: var(--t-h2); line-height: 1.06; }
h3 { font-size: var(--t-h3); line-height: 1.12; }
h4, h5, h6 { font-family: var(--f-sans); font-weight: 700; margin: 0 0 .5em; letter-spacing: -0.03em; line-height: 1.2; }
h4 { font-size: var(--t-h4); }
h5 { font-size: 18px; }
h6 { font-size: 15px; }
p { margin: 0 0 1em; }

.conteneur { max-width: var(--conteneur); margin: 0 auto; padding: 0 var(--gouttiere); }
.section { padding: var(--section) 0; }
.section--sombre { background: var(--noir); color: var(--blanc); }
.section--clair { background: var(--gris-clair); }
.surtitre {
  font-family: var(--f-sans); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--rouge); margin-bottom: 14px; display: block;
}
.chapo { font-size: 19px; color: var(--gris); max-width: 640px; }
.section--sombre .chapo { color: #B9BAC1; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 24px;
  font-family: var(--f-sans); font-weight: 700; font-size: 15.6px;
  border: 2px solid transparent; border-radius: var(--rayon-btn);
  background: var(--rouge); color: var(--blanc); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--rouge-survol); }
.btn--petit { height: 44px; padding: 0 20px; }
.btn--blanc { background: var(--blanc); color: var(--rouge); }
.btn--blanc:hover, .btn--blanc:focus-visible { background: var(--noir); color: var(--blanc); }
.btn--contour { background: transparent; border-color: currentColor; color: var(--noir); }
.btn--contour:hover { background: var(--noir); color: var(--blanc); border-color: var(--noir); }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }

/* En-tête */
.entete { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 20px var(--gouttiere) 0; transform: none !important; }
.entete__barre {
  max-width: calc(var(--conteneur) - 2 * var(--gouttiere)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 8px 8px 8px 24px; border-radius: var(--rayon-btn);
  background: rgba(255, 255, 255, .92); box-shadow: 0 6px 24px rgba(17, 16, 19, .08);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
}
.logo { display: flex; align-items: center; gap: 2px; text-decoration: none; flex-shrink: 0; }
.logo { font-family: var(--f-sans); font-weight: 700; font-size: 26px; letter-spacing: .12em; color: var(--rouge); line-height: 1; }
.logo span { color: var(--noir); }
.pied .logo span { color: var(--blanc); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 20px;
  font-family: var(--f-sans); font-weight: 500; font-size: 15px; text-decoration: none; color: var(--noir);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--rouge); }
.nav a[aria-current="page"] { color: var(--rouge); }
.entete__actions { display: flex; align-items: center; gap: 8px; }
.burger {
  display: none; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border: 0; border-radius: var(--rayon-btn); background: var(--blanc); color: var(--noir);
  font-family: var(--f-sans); font-weight: 700; font-size: 14px; cursor: pointer;
}
.burger i { font-size: 20px; }

/* Héro accueil : le texte est dans le cercle, dimensionné en unités du cercle (cqi) pour ne jamais en sortir */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: flex-end; overflow: hidden; color: var(--blanc);
  background: #3b3533 url("../img/hero-accueil.jpg") center / cover no-repeat; padding: 130px var(--gouttiere) 60px; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,16,19,.45), rgba(17,16,19,.05)); }
.hero__disque {
  position: relative; flex: none; width: min(56vw, 78vh, 820px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(204, 74, 60, .86); container-type: inline-size;
  display: grid; place-items: center; overflow: hidden; margin-right: max(0px, calc((100vw - var(--conteneur)) / 2));
}
.hero__contenu { width: 66cqi; }
.hero h1 { color: var(--blanc); font-size: 7.2cqi; line-height: 1.04; margin-bottom: 4cqi; }
.hero p { font-size: 2.3cqi; line-height: 1.5; margin-bottom: 4.5cqi; }
.hero .btn { height: auto; gap: 1.2cqi; padding: 1.8cqi 3.4cqi; font-size: 2.2cqi; }

/* Héro service : bandeau image de la marque (logo inclus dans l’image) */
.hero-service { position: relative; aspect-ratio: 1620 / 635; min-height: 300px; max-height: 640px; width: 100%; background: #1BA383 url("../img/entete-apori-1620.jpg") 62% center / cover no-repeat; }
.hero-service__marque { font-size: 92px; line-height: 1; margin: 0; }
.hero-service__service { font-family: var(--f-sans); font-weight: 700; font-size: 22px; margin: 12px 0 0; }
.ariane { padding: 18px var(--gouttiere); font-size: 14px; color: var(--gris); }
.ariane ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.ariane li + li::before { content: "›"; margin-right: 8px; }
.ariane a { text-decoration: none; color: var(--noir); font-weight: 600; }

/* Grilles */
.grille { display: grid; gap: 28px; }
.grille--2 { grid-template-columns: repeat(2, 1fr); }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--4 { grid-template-columns: repeat(4, 1fr); }
.entete-section { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }

/* Cartes pôles */
.pole { display: flex; flex-direction: column; border-radius: var(--rayon); overflow: hidden; background: #1E1D22; text-decoration: none; color: var(--blanc); transition: transform .25s; }
.pole:hover { transform: translateY(-6px); }
.pole__visuel { aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; }
.pole__visuel img { width: 100%; height: 100%; object-fit: cover; }
.pole__visuel--apori { background: #1BA383; }
.pole__visuel--apori img { width: 72%; height: auto; object-fit: contain; }
.pole__visuel--photo { background: #E9776B; }
.pole__visuel--wukish { background: #FFFFFF; }
.pole__visuel--wukish img { width: auto; height: 86%; object-fit: contain; }
.pole__corps { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.pole__marque { font-family: var(--f-titre); font-weight: 800; font-size: 28px; margin: 0; }
.pole__service { font-family: var(--f-sans); font-weight: 700; color: var(--rouge); font-size: 14px; margin: 2px 0 12px; text-transform: uppercase; letter-spacing: .08em; }
.pole p { color: #B9BAC1; font-size: 15.5px; }
.pole__lien { margin-top: auto; font-family: var(--f-sans); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }

/* Méthode */
.methode { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.fondamental { padding: 26px 0; border-top: 1px solid #E2E2E5; display: grid; grid-template-columns: 56px 1fr; gap: 16px; }
.fondamental i { font-size: 30px; color: var(--rouge); }
.fondamental p { color: var(--gris); margin: 0; }

/* Prestations */
.prestations { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; }
.prestation { border-left: 1px solid #D6D6DA; padding: 4px 0 4px 32px; }
.prestation__num { color: var(--gris); font-size: 15px; display: block; margin-bottom: 6px; }
.prestation p { color: var(--gris); margin: 0; }

/* Cas d’usage */
.cas-usage { background: var(--blanc); border-radius: var(--rayon); padding: 30px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 2px 0 rgba(17,16,19,.04); border: 1px solid #E7E7EA; }
.cas-usage__tag { align-self: flex-start; font-family: var(--f-sans); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; background: #F9E3E0; color: var(--rouge-survol); padding: 4px 10px; border-radius: 20px; }
.cas-usage__chiffre { font-family: var(--f-titre); font-weight: 800; font-size: 42px; color: var(--rouge); line-height: 1; }
.cas-usage p { color: var(--gris); margin: 0; }
.cas-usage__exemple { font-size: 12px; color: var(--gris); font-style: italic; }
.message-vide { color: var(--gris); }

/* Contact */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.formulaire { display: grid; gap: 18px; }
.champ label { display: block; font-family: var(--f-sans); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.champ input, .champ textarea {
  width: 100%; font: inherit; color: var(--noir); padding: 14px 18px;
  border: 1px solid #D6D6DA; border-radius: 14px; background: var(--blanc);
}
.champ textarea { min-height: 140px; resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(204,74,60,.18); }
.consentement { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--gris); }
.consentement input { margin-top: 4px; accent-color: var(--rouge); }
.formulaire__etat { font-size: 14px; min-height: 1.4em; margin: 0; }
.section--sombre .champ input, .section--sombre .champ textarea { background: #1E1D22; border-color: #34333A; color: var(--blanc); }

/* Bandeau CTA */
.cta { background: var(--rouge); color: var(--blanc); border-radius: 32px; padding: 64px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta h2 { margin: 0; }

/* Pied de page */
.pied { background: var(--pied); color: #B9BAC1; padding: 80px 0 32px; font-size: 15px; }
.pied__grille { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.pied h6 { color: var(--blanc); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--blanc); }
.pied__bas { margin-top: 56px; padding-top: 24px; border-top: 1px solid #2A292F; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.pied .logo--pied { display: inline-block; margin-bottom: 16px; opacity: .2; transition: opacity .2s; }
.pied .logo--pied:hover { opacity: .4; }
.pied__marque { display: inline-flex; flex-direction: column; max-width: 100%; }
.pied .logo--pied { display: block; margin-bottom: 18px; }
.pied .logo--pied img { width: 0; min-width: 100%; height: auto; } /* logo à la largeur du sous-texte */

/* Apparition */
.apparait { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.apparait.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .apparait { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ≤ 1180 px : tablette, menu burger */
@media (max-width: 1180px) {
  :root { --t-h1: 58px; --t-h2: 42px; --t-h3: 29px; }
  .burger { display: inline-flex; }
  .nav {
    position: absolute; top: calc(100% + 10px); left: var(--gouttiere); right: var(--gouttiere);
    background: var(--blanc); border-radius: 24px; padding: 12px; box-shadow: 0 18px 40px rgba(17,16,19,.18);
    display: none;
  }
  .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { padding: 12px 16px; font-size: 17px; }
  .grille--4 { grid-template-columns: repeat(2, 1fr); }
  .grille--3 { grid-template-columns: repeat(2, 1fr); }
  .pied__grille { grid-template-columns: 1fr 1fr; }
}

/* ≤ 768 px : mobile */
@media (max-width: 768px) {
  :root { --t-h1: 40px; --t-h2: 32px; --t-h3: 25px; --t-h4: 20px; --gouttiere: 16px; --section: 60px; }
  .entete { padding-top: 10px; }
  .entete__barre { padding: 6px 6px 6px 16px; gap: 10px; background: rgba(255, 255, 255, .9); }
  .logo { font-size: 21px; }
  .entete__actions .btn { display: none; }
  /* Mobile : titre et texte sur l’image, cercle décoratif aux 2/3 hors cadre à droite */
  .hero { min-height: min(76svh, 600px); overflow-x: clip; padding: 120px var(--gouttiere) 40px; align-items: flex-end; justify-content: flex-start; }
  .hero::before { z-index: 1; background: linear-gradient(0deg, rgba(17,16,19,.82) 0%, rgba(17,16,19,.55) 50%, rgba(17,16,19,.12) 100%); }
  .hero::after { content: ""; position: absolute; z-index: 0; top: 30%; right: 0; width: min(88vw, 480px); aspect-ratio: 1; border-radius: 50%;
    background: rgba(204, 74, 60, .86); transform: translate(66%, -50%); }
  .hero__disque { position: relative; z-index: 2; flex: 1 1 auto; min-width: 0; width: auto; aspect-ratio: auto; border-radius: 0; background: none; container-type: normal; display: block; overflow: visible; margin: 0; }
  .hero__contenu { width: auto; max-width: 32rem; margin: 0; justify-self: start; }
  .hero h1 { font-size: clamp(32px, 9.4vw, 48px); line-height: 1.05; margin-bottom: 14px; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
  .hero p { font-size: 16.5px; line-height: 1.5; margin-bottom: 22px; }
  .hero .btn { height: 50px; padding: 0 22px; gap: 8px; font-size: 15.6px; }
  .hero-service { aspect-ratio: auto; height: 300px; min-height: 0; background-position: 64% center; }
  .grille--2, .grille--3, .grille--4, .entete-section, .methode, .prestations, .contact, .pied__grille { grid-template-columns: 1fr; }
  .entete-section { gap: 12px; margin-bottom: 32px; }
  .methode, .contact, .prestations { gap: 32px; }
  .prestation { padding-left: 20px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 36px 24px; border-radius: 24px; }
  .chapo { font-size: 17px; }
  .pied__marque { max-width: 300px; }
}

/* Page Cas d’usage */
.hero-page { background: var(--noir); color: var(--blanc); padding: 170px 0 80px; }
.hero-page h1 { color: var(--blanc); max-width: 900px; }
.hero-page .chapo { color: #B9BAC1; }
@media (max-width: 768px) { .hero-page { padding: 120px 0 48px; } }

/* ===== Mode sombre (data-theme="dark" sur <html>) ===== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --rouge: #E0614F;          /* rouge éclairci : contraste AA sur fond sombre */
  --rouge-survol: #CC4A3C;
  --noir: #ECECEF;           /* « encre » : devient le texte clair */
  --blanc: #FFFFFF;
  --gris: #A3A4AD;
  --gris-clair: #1A191E;
  --fond: #111013;
  --carte: #1E1D22;
  --ligne: #2F2E35;
}
:root[data-theme="dark"] body { background: var(--fond); color: var(--noir); }
:root[data-theme="dark"] .section--sombre,
:root[data-theme="dark"] .hero-page { background: #0A090C; color: #fff; }
:root[data-theme="dark"] .section--clair { background: var(--gris-clair); }
:root[data-theme="dark"] .entete__barre { background: rgba(30, 29, 34, .9); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
:root[data-theme="dark"] .burger { background: #2A292F; color: var(--noir); }
:root[data-theme="dark"] .nav { background: var(--carte); }
@media (min-width: 1181px) { :root[data-theme="dark"] .nav { background: none; } }
:root[data-theme="dark"] .btn { color: #fff; }
:root[data-theme="dark"] .btn--blanc { background: #fff; color: #CC4A3C; }
:root[data-theme="dark"] .btn--blanc:hover { background: #111013; color: #fff; }
:root[data-theme="dark"] .hero .btn--blanc { color: #CC4A3C; }
:root[data-theme="dark"] .fondamental { border-top-color: var(--ligne); }
:root[data-theme="dark"] .prestation { border-left-color: var(--ligne); }
:root[data-theme="dark"] .cas-usage { background: var(--carte); border-color: var(--ligne); }
:root[data-theme="dark"] .cas-usage__tag { background: #3A2522; color: #F2A497; }
:root[data-theme="dark"] .champ input, :root[data-theme="dark"] .champ textarea { background: var(--carte); border-color: #34333A; color: var(--noir); }
:root[data-theme="dark"] .pole { background: #1E1D22; }
:root[data-theme="dark"] .pied { background: #0A090C; }

/* Menu : services en majuscules, numérotés */
.nav a.nav__service { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: 14px; padding-top: 12px; }
.nav__nom { position: relative; display: inline-block; }
/* numéro au-dessus du nom, aligné sur sa droite, dans la couleur de l’entrée (active, survol ou non) */
.nav__num { position: absolute; right: 0; bottom: 100%; margin-bottom: -3px; font-size: 9px; font-weight: 700; letter-spacing: .04em; line-height: 1; color: inherit; }
@media (max-width: 1180px) { .nav a.nav__service { font-size: 16px; padding-top: 18px; } .nav__num { font-size: 10px; } }

/* Contact : le formulaire démarre face au titre (bureau) */
@media (min-width: 769px) { .contact > form { padding-top: calc(13px * 1.6 + 14px); } }

/* Méthode : titre + image à gauche ; texte, 3 items et bouton à droite */
.methode .chapo { margin-bottom: 28px; }
/* bureau : le texte d’introduction démarre face au titre (sous la hauteur du surtitre) */
@media (min-width: 769px) { .methode > div:last-child { padding-top: calc(13px * 1.6 + 14px); } .methode .chapo { margin-top: 4px; } }
.methode__bouton { margin-top: 28px; }

/* Logo d’en-tête : couleur en mode clair, blanc en mode sombre */
.logo--entete img { width: 150px; height: auto; }
.logo--entete .logo__sombre { display: none; }
:root[data-theme="dark"] .logo--entete .logo__clair { display: none; }
:root[data-theme="dark"] .logo--entete .logo__sombre { display: block; }
@media (max-width: 768px) { .logo--entete img { width: 116px; } }

/* Illustrations (méthode, prise de contact) */
.illustration { width: 100%; height: auto; margin-top: 24px; border-radius: var(--rayon); object-fit: cover; }
.illustration--methode { aspect-ratio: 7 / 5; }
.illustration--contact { aspect-ratio: 16 / 10; object-position: 50% 15%; }
@media (max-width: 768px) { .illustration { margin-top: 28px; } }

.illustration--attente { display: grid; place-items: center; text-align: center; border: 2px dashed #D6D6DA; background: var(--gris-clair); color: var(--gris); font-family: var(--f-sans); font-weight: 700; }
:root[data-theme="dark"] .illustration--attente { border-color: var(--ligne); background: var(--carte); }

/* Image de fond de l’accueil : visages dans le haut de l’image */
.hero { background-position: 30% 22%; }

/* Interrupteur clair/sombre vertical, bord gauche */
.theme-bascule {
  position: fixed; z-index: 60; left: max(4px, env(safe-area-inset-left)); top: 50%; transform: translateY(-50%);
  width: 26px; height: 58px; padding: 0; border: 1px solid rgba(17,16,19,.12); border-radius: 15px; cursor: pointer;
  background: rgba(255,255,255,.88); box-shadow: 0 4px 16px rgba(17,16,19,.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 6px 0;
  color: #82838C; font-size: 12px; line-height: 1;
}
.theme-bascule i { position: relative; z-index: 1; width: 20px; height: 20px; display: grid; place-items: center; transition: color .25s; }
.theme-bascule::before {
  content: ""; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #CC4A3C; transition: transform .25s ease;
}
.theme-bascule .bi-sun-fill { color: #fff; }
:root[data-theme="dark"] .theme-bascule { background: rgba(30,29,34,.9); border-color: rgba(255,255,255,.12); color: #A3A4AD; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
:root[data-theme="dark"] .theme-bascule::before { transform: translateY(32px); background: #E0614F; }
:root[data-theme="dark"] .theme-bascule .bi-sun-fill { color: #A3A4AD; }
:root[data-theme="dark"] .theme-bascule .bi-moon-stars-fill { color: #fff; }
/* ≤ 1180 px : l’interrupteur passe dans la barre d’en-tête (à gauche du bouton Menu) pour ne rien masquer */
.entete__actions .theme-bascule { position: relative; left: auto; top: auto; transform: none; width: 26px; height: 44px; padding: 3px 0; box-shadow: none; flex: none; }
.entete__actions .theme-bascule i { width: 18px; height: 18px; font-size: 11px; }
.entete__actions .theme-bascule::before { width: 18px; height: 18px; left: 3px; top: 3px; }
:root[data-theme="dark"] .entete__actions .theme-bascule::before { transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { .theme-bascule::before { transition: none; } }
@media (min-width: 1181px) { .nav ul { align-items: baseline; } }

/* ===== Pages CTRL IA et Wukish ===== */
.hero-service--ctrl-ia { background: #E9776B url("../img/Touches-de-clavier-sur-fond-corail-1620.jpg") center / cover no-repeat; }
.hero-service--wukish { background: #27A6C6 url("../img/entete-wukish-1620.jpg") center / cover no-repeat; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.btn--clair { color: #fff; border-color: rgba(255,255,255,.6); }
.btn--clair:hover { background: #fff; color: #111013; border-color: #fff; }
.offre { background: var(--gris-clair); border-radius: var(--rayon); padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.offre__num { font-family: var(--f-titre); font-weight: 800; font-size: 40px; color: var(--rouge); line-height: 1; margin-bottom: 10px; }
.offre p { color: var(--gris); margin: 0; }
.offre .offre__plus { margin-top: auto; padding-top: 14px; border-top: 1px solid #E2E2E5; color: var(--noir); font-weight: 600; }
:root[data-theme="dark"] .offre { background: var(--carte); }
:root[data-theme="dark"] .offre .offre__plus { border-top-color: var(--ligne); }
.portfolio__case { margin-top: 0; aspect-ratio: 4 / 3; }
.app { display: flex; flex-direction: column; border-radius: var(--rayon); overflow: hidden; background: #1E1D22; color: #fff; text-decoration: none; transition: transform .25s; }
.app:hover { transform: translateY(-6px); }
.app__visuel { aspect-ratio: 16 / 9; background: #2A292F; }
.app__visuel img { width: 100%; height: 100%; object-fit: cover; }
.app__corps { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.app__corps h4 { margin: 0; }
.app__corps p { color: #B9BAC1; font-size: 15px; margin: 0; }
.app__badge { margin-top: auto; padding-top: 10px; display: inline-flex; gap: 6px; align-items: center; font-family: var(--f-sans); font-weight: 700; font-size: 13px; color: #B9BAC1; }
.app-dev { margin-top: 48px; display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; background: #1E1D22; border-radius: var(--rayon); overflow: hidden; }
.app-dev img { width: 100%; height: 100%; object-fit: cover; }
.app-dev > div { padding: 32px 32px 32px 0; }
.app-dev p { color: #B9BAC1; margin: 0; }
@media (max-width: 1180px) { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .hero-service--ctrl-ia, .hero-service--wukish { background-position: center; }
  .apps { grid-template-columns: 1fr; }
  .grille--4.portfolio { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .portfolio__case { font-size: 13px; }
  .app-dev { grid-template-columns: 1fr; gap: 0; }
  .app-dev > div { padding: 24px; }
}
.intro-image { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.intro-image .illustration { margin-top: calc(13px * 1.6 + 14px); }
.app--attente:hover { transform: none; }
.app__badge--actif { color: #fff; }
.app:hover .app__badge--actif { color: var(--rouge); }
@media (max-width: 768px) { .intro-image { grid-template-columns: 1fr; gap: 28px; } .intro-image .illustration { margin-top: 0; } }
.app__bouton { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--rayon-btn);
  background: var(--rouge); color: #fff; font-family: var(--f-sans); font-weight: 700; font-size: 14px; transition: background .2s; }
.app__corps p { margin-bottom: 14px; }
.app:hover .app__bouton { background: var(--rouge-survol); }
.app__bouton--eteint { background: #2E2D33; color: #8C8D95; cursor: not-allowed; }

/* ===== Bandeau promotionnel défilant (réglages : data/bandeau.json) ===== */
:root { --bandeau-h: 0px; }
.avec-bandeau { --bandeau-h: 40px; }
.avec-bandeau body { padding-top: var(--bandeau-h); }
.entete { top: var(--bandeau-h); }
.bandeau { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: var(--bandeau-h); display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(90deg, #A6F2C6 0%, #C9F3A6 55%, #E6F58F 100%); color: #161519; text-decoration: none;
  font-family: var(--f-corps); font-size: 14.8px; white-space: nowrap; }
.bandeau__piste { display: flex; width: max-content; animation: bandeau-defile var(--bandeau-duree, 40s) linear infinite; }
.bandeau--rtl .bandeau__piste { animation-name: bandeau-defile-rtl; }
.bandeau__rangee { display: flex; align-items: center; }
.bandeau__rangee span { padding: 0 10px; }
.bandeau__sep { opacity: .6; }
.bandeau:hover .bandeau__piste, .bandeau:focus-visible .bandeau__piste { animation-play-state: paused; }
.bandeau:focus-visible { outline-offset: -3px; }
@keyframes bandeau-defile { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes bandeau-defile-rtl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bandeau__piste { animation: none; } }
@media (max-width: 768px) { .avec-bandeau { --bandeau-h: 34px; } .bandeau { font-size: 13px; } }


/* ===== Galerie défilante (réglages : data/art-galerie.json) ===== */
.galerie { margin: 28px 0 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: var(--rayon); }
.galerie::-webkit-scrollbar { display: none; }
.galerie__piste { display: flex; gap: 14px; width: max-content; }
.galerie__case { margin: 0; flex: none; width: clamp(180px, 22vw, 260px); aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; }
.galerie__case img { width: 100%; height: 100%; object-fit: cover; }
.galerie__case--attente { display: grid; place-items: center; border: 2px dashed #D6D6DA; background: var(--gris-clair); color: var(--gris); font-family: var(--f-sans); font-weight: 700; font-size: 13px; }
:root[data-theme="dark"] .galerie__case--attente { border-color: var(--ligne); background: var(--carte); }
.methode > div, .contact > div, .intro-image > div { min-width: 0; }
.galerie { max-width: 100%; }
html { scroll-padding-top: calc(120px + var(--bandeau-h)); }
.galerie { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-x pan-y; }
.galerie--glisse { cursor: grabbing; }
.galerie:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }
.galerie-cadre { position: relative; }
.galerie__fleche { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255,255,255,.88); color: #111013; box-shadow: 0 4px 14px rgba(17,16,19,.18); opacity: .75; transition: opacity .2s; font-size: 16px; }
.galerie__fleche:hover, .galerie__fleche:focus-visible { opacity: 1; }
.galerie__fleche--prec { left: 8px; } .galerie__fleche--suiv { right: 8px; }
:root[data-theme="dark"] .galerie__fleche { background: rgba(30,29,34,.9); color: #fff; }
@media (hover: none) { .galerie__fleche { display: none; } }

/* ===== CTRL IA : blocs éditoriaux ===== */
.hero-service__legende { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); margin: 0; width: max-content; max-width: calc(100% - 32px); text-align: center;
  padding: 10px 22px; border-radius: var(--rayon-btn); background: rgba(17,16,19,.72); color: #fff; font-family: var(--f-sans); font-weight: 700; font-size: 17px; }
.accroche { font-family: var(--f-titre); font-weight: 800; font-size: 26px; line-height: 1.25; color: var(--rouge); margin: 8px 0 0; }
.atouts { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; gap: 12px; }
.atouts li { padding: 14px 18px 14px 20px; border-left: 3px solid var(--rouge); background: var(--gris-clair); border-radius: 0 12px 12px 0; }
.atouts strong { color: var(--noir); }
:root[data-theme="dark"] .atouts li { background: var(--carte); }
.bloc-idee { max-width: 860px; margin: 0 auto 72px; text-align: center; }
.bloc-idee p { font-size: 19px; color: var(--gris); }
.pour-qui h3 { text-align: center; margin-bottom: 28px; }
.pour-qui__col { border-radius: var(--rayon); padding: 28px 30px; }
.pour-qui__col h4 { display: flex; align-items: center; gap: 10px; }
.pour-qui__col p { margin: 0; color: var(--gris); }
.pour-qui__col--oui { background: #EAF7EF; } .pour-qui__col--oui i { color: #1E8E5A; }
.pour-qui__col--non { background: var(--gris-clair); } .pour-qui__col--non i { color: var(--gris); }
:root[data-theme="dark"] .pour-qui__col--oui { background: #16261D; } :root[data-theme="dark"] .pour-qui__col--oui i { color: #5BD394; }
:root[data-theme="dark"] .pour-qui__col--non { background: var(--carte); }
.encart-loi { margin-top: 36px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border: 1px solid #E2E2E5; border-radius: 14px; background: var(--blanc); color: var(--gris); font-size: 15px; }
.encart-loi i { color: var(--rouge); font-size: 20px; line-height: 1.3; }
.encart-loi p { margin: 0; }
:root[data-theme="dark"] .encart-loi { background: var(--fond); border-color: var(--ligne); }
.titre-long { font-size: clamp(26px, 2.6vw, 38px); }
@media (max-width: 768px) {
  .hero-service__legende { font-size: 14px; bottom: 14px; left: 16px; right: 16px; transform: none; width: auto; max-width: none; padding: 8px 16px; }
  .accroche { font-size: 21px; }
  .bloc-idee { margin-bottom: 48px; text-align: left; } .pour-qui h3 { text-align: left; }
  .titre-long { font-size: 24px; }
}
.titre-page { padding-top: 24px; padding-bottom: 8px; }
.titre-page h1 { font-size: clamp(32px, 4.4vw, 60px); max-width: 1000px; margin: 0; }
.reservation { padding: 14px 16px; border-radius: 14px; background: var(--gris-clair); color: var(--noir); }
.reservation small { color: var(--gris); font-size: 13.5px; }
.section--sombre .reservation, :root[data-theme="dark"] .reservation { background: #1E1D22; color: #fff; }
.section--sombre .reservation small { color: #B9BAC1; }

/* ===== Pages de texte (mentions légales…) ===== */
.texte-legal { max-width: 760px; padding-top: 170px; padding-bottom: 110px; }
.texte-legal h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 40px; }
.texte-legal h2 { font-family: var(--f-sans); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1.3; margin: 48px 0 14px; }
.texte-legal__num { color: var(--rouge); margin-right: 4px; }
.texte-legal p { line-height: 1.75; margin-bottom: 1.1em; color: var(--noir); }
.texte-legal a { color: var(--rouge); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 768px) { .texte-legal { padding-top: 120px; padding-bottom: 64px; } .texte-legal h2 { font-size: 19px; margin-top: 36px; } }
.texte-legal h1 + .texte-legal__maj { margin-top: -28px; margin-bottom: 36px; font-size: 14px; color: var(--gris); }
.texte-legal ul { padding-left: 22px; margin: 0 0 1.1em; line-height: 1.75; }
.texte-legal li { margin-bottom: 6px; }
.texte-legal li::marker { color: var(--rouge); }
.texte-legal h2[id] { scroll-margin-top: 130px; }
.texte-legal__chapo { font-size: 19px; line-height: 1.65; }
.tableau-legal { margin: 0 0 1.4em; overflow-x: auto; }
.tableau-legal table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.tableau-legal th { text-align: left; font-family: var(--f-sans); font-weight: 700; padding: 12px 14px; background: var(--gris-clair); border-bottom: 2px solid var(--rouge); }
.tableau-legal td { padding: 12px 14px; border-bottom: 1px solid #E2E2E5; vertical-align: top; }
:root[data-theme="dark"] .tableau-legal th { background: var(--carte); }
:root[data-theme="dark"] .tableau-legal td { border-bottom-color: var(--ligne); }
@media (max-width: 600px) {
  .tableau-legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tableau-legal tr { display: block; padding: 12px 0; border-bottom: 1px solid #E2E2E5; }
  .tableau-legal td { display: block; border: 0; padding: 4px 0; }
  .tableau-legal td::before { content: attr(data-label); display: block; font-family: var(--f-sans); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--rouge); }
  :root[data-theme="dark"] .tableau-legal tr { border-bottom-color: var(--ligne); }
}

/* ===== Page À propos ===== */
.hero-service--a-propos { background: #F6E3DE url("../img/apropos-logo-doange.jpg") center / cover no-repeat; }
@media (max-width: 768px) { .hero-service--a-propos { background-position: 66% 50%; } }
.titre-page__chapo { margin-top: 16px; max-width: 760px; }
.frise { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--rouge); display: grid; gap: 22px; }
.frise li { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 16px; align-items: baseline; }
.frise li::before { content: ""; position: absolute; left: -33px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 4px var(--blanc); }
:root[data-theme="dark"] .frise li::before { box-shadow: 0 0 0 4px var(--fond); }
.frise__annee { font-family: var(--f-titre); font-weight: 800; font-size: 24px; color: var(--rouge); line-height: 1; }
.frise__texte { color: var(--noir); }
.atouts--blanc li { background: var(--blanc); }
:root[data-theme="dark"] .atouts--blanc li { background: var(--carte); }
#poles .entete-section .chapo { max-width: none; }
.portrait { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.portrait__photo { aspect-ratio: 4 / 5; border-radius: var(--rayon); background: var(--gris-clair); display: grid; place-items: center; align-content: center; gap: 14px; color: var(--gris); font-family: var(--f-sans); font-weight: 700; font-size: 14px; }
.portrait__photo img { width: 96px; height: 96px; opacity: .55; }
:root[data-theme="dark"] .portrait__photo { background: var(--carte); }
.citation { margin: 28px 0 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--rouge); font-family: var(--f-titre); font-weight: 800; font-size: 24px; line-height: 1.35; color: var(--noir); }
@media (max-width: 768px) {
  .frise { padding-left: 22px; } .frise li { grid-template-columns: 1fr; gap: 2px; } .frise li::before { left: -29px; }
  .portrait { grid-template-columns: 1fr; gap: 32px; } .portrait__photo { max-width: 360px; }
  .citation { font-size: 20px; }
}
@media (max-width: 360px) { .hero-service--a-propos { height: 250px; } }

/* ===== Arc fléché du titre CTRL IA ===== */
.titre-arc { position: relative; padding-top: 1.62em; }
.arc-groupe { white-space: nowrap; }
@media (max-width: 360px) { .titre-page h1.titre-arc { font-size: 29px; } }
.arc-mot { white-space: nowrap; }
.arc-fleche { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; color: var(--rouge); }
.arc-fleche__trait { fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; transition: stroke-dashoffset 1.1s ease .2s; }
@media (prefers-reduced-motion: reduce) { .arc-fleche__trait { transition: none; stroke-dasharray: none !important; stroke-dashoffset: 0 !important; } }

/* ===== Portfolio ===== */
.globale { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; align-items: center; }
.globale__image { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--rayon); overflow: hidden; display: block; width: 100%; }
.globale__image img { width: 100%; height: auto; display: block; transition: transform .4s; }
.globale__image:hover img { transform: scale(1.02); }
.portfolio-filtres { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.portfolio-filtres__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-filtre { border: 1px solid #D6D6DA; background: var(--blanc); color: var(--noir); border-radius: 20px; padding: 7px 15px; font-family: var(--f-sans); font-weight: 700; font-size: 14px; cursor: pointer; }
.pf-filtre[aria-pressed="true"] { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.pf-filtre:hover { border-color: var(--rouge); }
:root[data-theme="dark"] .pf-filtre { background: var(--carte); border-color: var(--ligne); }
:root[data-theme="dark"] .pf-filtre[aria-pressed="true"] { background: var(--rouge); border-color: var(--rouge); }
.portfolio-compte { color: var(--gris); font-size: 14px; margin: 0 0 22px; }
.portfolio-grille { columns: 3 300px; column-gap: 20px; }
.portfolio-grille .pf-carte { margin-bottom: 20px; break-inside: avoid; }
.pf-carte { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--gris-clair); text-align: left; }
.pf-carte img { width: 100%; height: auto; display: block; transition: transform .4s; }
.portfolio-recents .pf-carte { aspect-ratio: 4 / 3; } .portfolio-recents .pf-carte img { height: 100%; object-fit: cover; }
.pf-carte:hover img, .pf-carte:focus-visible img { transform: scale(1.04); }
.pf-carte__legende { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(0deg, rgba(17,16,19,.78), rgba(17,16,19,0)); color: #fff; display: flex; flex-direction: column; opacity: 0; transition: opacity .25s; }
.pf-carte:hover .pf-carte__legende, .pf-carte:focus-visible .pf-carte__legende { opacity: 1; }
@media (hover: none) { .pf-carte__legende { opacity: 1; } }
.pf-carte__client { font-family: var(--f-sans); font-weight: 700; font-size: 15px; }
.pf-carte__cat { font-size: 12.5px; opacity: .85; }
.portfolio-tout { margin: 28px 0 0; text-align: center; }
.visionneuse { position: fixed; inset: 0; z-index: 100; background: rgba(10,9,12,.94); display: flex; align-items: center; justify-content: center; padding: 56px 72px; }
.visionneuse[hidden] { display: none; }
.visionneuse-ouverte, .visionneuse-ouverte body { overflow: hidden; }
.visionneuse__cadre { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.visionneuse__cadre img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 8px; }
.visionneuse__cadre figcaption { color: #E8E8EC; font-family: var(--f-sans); font-weight: 500; font-size: 15px; text-align: center; }
.visionneuse button { position: absolute; border: 0; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 20px; display: grid; place-items: center; }
.visionneuse button:hover, .visionneuse button:focus-visible { background: rgba(255,255,255,.25); }
.visionneuse__fermer { top: 16px; right: 16px; }
.visionneuse__fleche--prec { left: 14px; top: 50%; transform: translateY(-50%); }
.visionneuse__fleche--suiv { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 768px) {
  .globale { grid-template-columns: 1fr; gap: 28px; }
  .portfolio-grille { columns: 2 150px; column-gap: 12px; } .portfolio-grille .pf-carte { margin-bottom: 12px; }
  .portfolio-filtres { flex-direction: column; align-items: flex-start; }
  .visionneuse { padding: 60px 8px 24px; }
  .visionneuse__fleche { top: auto !important; bottom: 18px; transform: none !important; }
  .visionneuse__cadre img { max-height: calc(100vh - 190px); }
  .grille--4.portfolio-recents { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.pf-une { margin: 0; }
.pf-une__cat { margin-top: 10px; font-family: var(--f-sans); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--rouge); }
.titre-page--globale { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; padding-bottom: 64px; }
.globale { margin: 0; display: block; }
.globale__legende { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.5; color: var(--gris); }
.globale__titre { font-family: var(--f-sans); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--rouge); }
.globale__legende strong { font-family: var(--f-sans); font-size: 16px; color: var(--noir); }
@media (max-width: 768px) { .titre-page--globale { grid-template-columns: 1fr; gap: 24px; padding-bottom: 40px; } }
@media (min-width: 769px) { .titre-page--globale .globale { margin-top: calc(13px * 1.6 + 14px); } }
.globale__exemple { margin-top: 28px; padding: 4px 0 4px 18px; border-left: 3px solid var(--rouge); color: var(--noir); font-size: 17px; line-height: 1.6; max-width: 520px; }
.globale__client { color: var(--rouge); }

/* ===== CTRL IA : cas d’usage par cible ===== */
.cible { background: var(--gris-clair); border-radius: var(--rayon); padding: 30px 28px; border-top: 4px solid var(--rouge); }
:root[data-theme="dark"] .cible { background: var(--carte); }
.cible__titre { font-size: 28px; display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.cible__titre i { font-size: 24px; color: var(--rouge); }
.cible__infos { margin: 0; }
.cible__infos dt:not(:first-child) { margin-top: 16px; }
.cible__infos dt { font-family: var(--f-sans); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--rouge); }
.cible__infos dd { margin: 4px 0 0; color: var(--noir); font-size: 15.5px; line-height: 1.55; }
.cible__infos dt:last-of-type + dd { padding: 10px 12px; margin-top: 6px; border-radius: 10px; background: rgba(204,74,60,.08); }
.cas-usage__etapes { list-style: none; counter-reset: etape; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.cas-usage__etapes li { counter-increment: etape; position: relative; padding-left: 34px; color: var(--gris); line-height: 1.55; }
.cas-usage__etapes li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--rouge); color: #fff; font-family: var(--f-sans); font-weight: 700; font-size: 12px; display: grid; place-items: center; }

/* ===== Accueil : cas d’usage par pôle ===== */
.cas-pole + .cas-pole { margin-top: 64px; padding-top: 48px; border-top: 1px solid #E2E2E5; }
:root[data-theme="dark"] .cas-pole + .cas-pole { border-top-color: var(--ligne); }
.cas-pole__titre { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 22px; font-family: var(--f-sans); }
.cas-pole__titre .nav__nom { font-size: 22px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rouge); }
.cas-pole__titre .nav__num { font-size: 11px; margin-bottom: -2px; }
.cas-pole__service { font-size: 15px; font-weight: 500; color: var(--gris); letter-spacing: 0; }
.cas-pole__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; justify-content: space-between; }
.cas-usage__format { font-size: 14.5px; }
.cas-usage__format strong { color: var(--noir); }
.cas-usage--image { text-align: left; font: inherit; color: inherit; cursor: zoom-in; padding: 0 0 26px; overflow: hidden; }
.cas-usage--image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; display: block; margin-bottom: 18px; }
.cas-usage--image > :not(img) { margin-left: 26px; margin-right: 26px; }
.cas-usage--image:hover img { opacity: .92; }
@media (max-width: 600px) { .cas-pole__actions { flex-direction: column; } .cas-pole__actions .btn { width: 100%; justify-content: center; height: auto; min-height: 52px; padding-top: 10px; padding-bottom: 10px; text-align: center; } }
.lien-insta { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--rouge); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.lien-insta i { font-size: 1.05em; text-decoration: none; }
.lien-insta:hover { color: var(--rouge-survol); }

/* ===== Formulaires : piège anti-robot et messages de retour ===== */
.champ-piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire__etat--ok, .formulaire__etat--erreur { padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.formulaire__etat--ok { background: #EAF7EF; color: #1E6E47; }
.formulaire__etat--erreur { background: #FBE9E7; color: #A93A2E; }
:root[data-theme="dark"] .formulaire__etat--ok { background: #16261D; color: #7FDCA8; }
:root[data-theme="dark"] .formulaire__etat--erreur { background: #3A2522; color: #F2A497; }

/* ===== Page 404 ===== */
.page-404 { min-height: 72vh; padding-top: 170px; padding-bottom: 110px; display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.page-404 h1 { font-size: clamp(40px, 5.4vw, 72px); margin-bottom: 18px; }
.page-404__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-404__poles { display: grid; gap: 14px; }
.page-404__pole { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 22px 24px; border-radius: var(--rayon); background: var(--gris-clair); text-decoration: none; color: var(--noir); border-left: 4px solid var(--rouge); transition: transform .2s; }
.page-404__pole:hover { transform: translateX(4px); }
.page-404__pole .nav__nom { font-family: var(--f-sans); font-weight: 700; letter-spacing: .06em; color: var(--rouge); font-size: 18px; grid-column: 1; }
.page-404__pole .nav__num { font-size: 10px; }
.page-404__pole > span:nth-of-type(2) { grid-column: 1; color: var(--gris); font-size: 15px; }
.page-404__pole i { grid-column: 2; grid-row: 1 / span 2; color: var(--rouge); font-size: 20px; }
:root[data-theme="dark"] .page-404__pole { background: var(--carte); }
@media (max-width: 900px) { .page-404 { grid-template-columns: 1fr; gap: 40px; padding-top: 130px; padding-bottom: 64px; min-height: 0; } }
.page-404__pole .nav__nom { justify-self: start; }
