/* ==========================================================================
   HABITATION INTELLIGENTE — v2
   Base claire, sections sombres en contraste. Couleurs issues du logo.
   ========================================================================== */

:root {
  --blanc:      #FFFFFF;
  --papier:     #F2F5F1;
  --encre:      #12160F;
  --encre2:     #0A0D08;
  --gris:       #5E6B5B;
  --gris-clair: #97A394;

  --vert:       #5CDB3F;   /* anneau du logo — aplats, boutons */
  --vert-fonce: #1E5F12;   /* vert lisible en texte sur fond clair */
  --vert-pale:  #A7EC98;   /* vert du lettrage — texte sur fond sombre */
  --vert-voile: #E8F8E3;
  --ambre:      #E0902A;

  --trait:      #DCE3D8;
  --trait-noir: rgba(167, 236, 152, 0.18);

  --display: "Jost", "Century Gothic", sans-serif;
  --corps:   "Manrope", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  --page: 1240px;
  --gout: 24px;
  --sect: clamp(64px, 8vw, 112px);
  --r:    10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--corps);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--vert-fonce); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--vert); color: var(--encre2); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 300; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 500; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gout); }
.sect { padding-block: var(--sect); }
.sect--court { padding-block: calc(var(--sect) * 0.6); }

.noir { background: var(--encre2); color: var(--blanc); }
.noir h1, .noir h2, .noir h3 { color: var(--blanc); }
.noir .sur { color: var(--vert-pale); }
.noir .doux, .noir .chapeau { color: #A9B5A5; }
.gris { background: var(--papier); }

.sur {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--vert-fonce); margin: 0 0 18px; font-weight: 500;
}
.doux { color: var(--gris); }
.chapeau { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--gris); max-width: 56ch; }

.tete { max-width: 58ch; margin-bottom: clamp(36px, 4.5vw, 56px); }
.tete p { margin-top: 16px; }

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

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-size: 0.94rem; font-weight: 600;
  border: 2px solid transparent; white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--vert { background: var(--vert); color: var(--encre2); }
.btn--vert:hover { box-shadow: 0 10px 26px rgba(92, 219, 63, 0.4); }
.btn--fil { border-color: var(--trait); color: var(--encre); }
.btn--fil:hover { border-color: var(--encre); }
.noir .btn--fil { border-color: rgba(255,255,255,0.3); color: var(--blanc); }
.noir .btn--fil:hover { border-color: var(--vert); color: var(--vert); }
.btn--blanc { background: var(--blanc); color: var(--encre2); }
.btn--lien { padding: 0; color: var(--vert-fonce); font-weight: 600; border-radius: 0; }
.noir .btn--lien { color: var(--vert); }
.btn--lien:hover { transform: none; }
.btn--lien .fl { transition: transform 0.22s ease; display: inline-block; }
.btn--lien:hover .fl { transform: translateX(6px); }
.btn--large { width: 100%; justify-content: center; }

/* ------------------------------------------------------------- En-tête -- */

.top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--trait);
}
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo img { height: 30px; width: 30px; border-radius: 50%; }
.logo b { font-family: var(--display); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.13em; text-transform: uppercase; line-height: 1.2; }
.logo b i { display: block; font-style: normal; font-size: 0.6rem; letter-spacing: 0.26em; color: var(--gris-clair); font-weight: 400; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a.n { font-size: 0.95rem; font-weight: 500; color: var(--gris); padding-block: 6px; position: relative; transition: color 0.2s; }
.nav a.n:hover { color: var(--encre); }
.nav a.n::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--vert); transition: width 0.25s ease; }
.nav a.n:hover::after, .nav a.n[aria-current="page"]::after { width: 100%; }
.nav a.n[aria-current="page"] { color: var(--encre); }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--trait); border-radius: 8px; position: relative; flex: none; }
.burger span { position: absolute; left: 11px; width: 18px; height: 2px; background: var(--encre); border-radius: 2px; transition: transform 0.26s ease, opacity 0.2s ease; }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- Héro -- */

.hero {
  position: relative; min-height: min(86vh, 760px);
  display: flex; align-items: flex-end; color: var(--blanc);
  background-color: var(--encre2);
  background-image:
    linear-gradient(180deg, rgba(10,13,8,0.2) 0%, rgba(10,13,8,0.6) 50%, rgba(10,13,8,0.95) 100%),
    var(--img, none),
    radial-gradient(ellipse 120% 90% at 68% 22%, #244A19 0%, #0A0D08 64%);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.hero__in { padding-block: clamp(56px, 7vw, 92px); position: relative; z-index: 2; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--vert); }
.hero .chapeau { color: #C6D0C2; margin-top: 20px; max-width: 44ch; }
.hero__btn { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn--fil { border-color: rgba(255,255,255,0.4); color: var(--blanc); }
.hero .btn--fil:hover { border-color: var(--vert); color: var(--vert); background: rgba(92,219,63,0.08); }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(167,236,152,0.35);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--vert-pale); margin-bottom: 24px;
}
.badge img { height: 22px; width: 22px; border-radius: 50%; }

/* ------------------------------------------------- Panneau de scènes -- */

.panneau__box { border: 1px solid var(--trait-noir); border-radius: 16px; background: linear-gradient(180deg, #131A10 0%, #0A0D08 100%); overflow: hidden; }
.panneau__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 22px; border-bottom: 1px solid var(--trait-noir);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: #A9B5A5;
}
.dot { display: inline-flex; align-items: center; gap: 9px; color: var(--vert); }
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--vert); animation: puls 2.4s ease-out infinite; }
@keyframes puls {
  0% { box-shadow: 0 0 0 0 rgba(92,219,63,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(92,219,63,0); }
  100% { box-shadow: 0 0 0 0 rgba(92,219,63,0); }
}

.scenes { display: flex; gap: 8px; padding: 18px 22px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--trait-noir); }
.scenes::-webkit-scrollbar { display: none; }
.scene { flex: none; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--trait-noir); color: #A9B5A5; font-size: 0.86rem; font-weight: 600; transition: all 0.22s ease; }
.scene:hover { color: var(--blanc); border-color: rgba(167,236,152,0.4); }
.scene[aria-pressed="true"] { background: var(--vert); border-color: var(--vert); color: var(--encre2); }

.mes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--trait-noir); }
.mes__c { background: #0A0D08; padding: 24px 22px; }
.mes__n { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8A9687; display: block; margin-bottom: 10px; }
.mes__v { font-family: var(--display); font-weight: 300; font-size: 2.2rem; line-height: 1; display: flex; align-items: baseline; gap: 3px; color: var(--blanc); }
.mes__v .u { font-size: 0.9rem; color: #8A9687; font-family: var(--mono); }
.mes__j { display: block; height: 3px; border-radius: 3px; background: #212A1D; margin: 14px 0 11px; overflow: hidden; }
.mes__j i { display: block; height: 100%; width: 0; background: var(--vert); border-radius: 3px; transition: width 0.75s cubic-bezier(0.22,1,0.36,1); }
.mes__j i[data-ton="chaud"] { background: var(--ambre); }
.mes__e { font-family: var(--mono); font-size: 0.73rem; color: var(--vert-pale); display: block; min-height: 1.4em; }
.mes__e[data-ton="chaud"] { color: #F0B45E; }
.mes__e[data-ton="eteint"] { color: #8A9687; }
.panneau__pied { padding: 16px 22px; border-top: 1px solid var(--trait-noir); font-size: 0.88rem; color: #A9B5A5; }

/* -------------------------------------------------------------- Pièces -- */



/* --------------------------------------------------------- Fonctions -- */

.fx { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 14px; }
.fx__c { padding: 28px 24px 26px; border-radius: var(--r); background: var(--papier); border: 1px solid transparent; transition: background 0.28s ease, border-color 0.28s ease, transform 0.28s ease; }
.fx__c:hover { background: var(--vert-voile); border-color: rgba(92,219,63,0.45); transform: translateY(-3px); }
.fx__c i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--vert); color: var(--encre2); margin-bottom: 18px; }
.fx__c i svg { width: 24px; height: 24px; }
.fx__c i[data-t="chaud"] { background: var(--ambre); color: #fff; }
.fx__c h3 { font-size: 1.08rem; margin-bottom: 7px; }
.fx__c p { font-size: 0.9rem; color: var(--gris); }

/* ---------------------------------------------------------- Deux blocs -- */

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.duo--haut { align-items: start; }

.visuel {
  border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; position: relative;
  background-color: #16200F;
  background-image: radial-gradient(ellipse at 42% 32%, #274120 0%, #0F1509 72%);
}
.visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visuel--carre { aspect-ratio: 1; }

.pts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; }
.pts li { display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid var(--trait); }
.noir .pts li { border-color: var(--trait-noir); }
.pts li:last-child { border-bottom: 1px solid var(--trait); }
.noir .pts li:last-child { border-color: var(--trait-noir); }
.pts b { display: block; font-weight: 600; margin-bottom: 2px; }
.pts span { color: var(--gris); font-size: 0.93rem; }
.noir .pts span { color: #A9B5A5; }
.pts em { flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px; background: var(--vert); color: var(--encre2); display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 0.7rem; font-weight: 600; }

/* ---------------------------------------------------------- Chiffres -- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px; }
.stat b { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(2.4rem, 4.4vw, 3.2rem); line-height: 1; color: var(--vert); }
.stat span { display: block; margin-top: 10px; font-size: 0.92rem; }

/* ------------------------------------------------------------ Étapes -- */

.pas { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 22px; }
.pas__c { padding-top: 20px; border-top: 3px solid var(--vert); }
.pas__c span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--vert-fonce); font-weight: 500; }
.noir .pas__c span { color: var(--vert); }
.pas__c h3 { margin: 10px 0 8px; font-size: 1.1rem; }
.pas__c p { font-size: 0.9rem; color: var(--gris); }
.noir .pas__c p { color: #A9B5A5; }

/* ------------------------------------------------------ Réalisations -- */

.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filtre { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--trait); font-size: 0.88rem; font-weight: 500; color: var(--gris); transition: all 0.2s ease; }
.filtre:hover { color: var(--encre); border-color: var(--encre); }
.filtre[aria-pressed="true"] { background: var(--vert); border-color: var(--vert); color: var(--encre2); }

.projs { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.proj { border-radius: var(--r); overflow: hidden; background: var(--blanc); border: 1px solid var(--trait); text-align: left; width: 100%; display: flex; flex-direction: column; transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease; }
.proj:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(18,22,15,0.13); }
.proj[hidden] { display: none; }
.proj__img { aspect-ratio: 3/2; position: relative; overflow: hidden; background-color: #16200F;
  background-image: radial-gradient(ellipse at 45% 35%, #274120 0%, #101609 72%); }
.proj__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.proj:hover .proj__img img { transform: scale(1.04); }
.proj__tag { position: absolute; top: 13px; left: 13px; padding: 6px 13px; border-radius: 999px; background: var(--vert); color: var(--encre2); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.proj__b { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.proj__b h3 { font-size: 1.14rem; margin-bottom: 8px; }
.proj__b p { font-size: 0.91rem; color: var(--gris); }
.proj__m { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-size: 0.74rem; font-weight: 500; color: var(--vert-fonce); background: var(--vert-voile); border-radius: 999px; padding: 5px 11px; }

/* ------------------------------------------------------------- Ruban -- */

.ruban { border-radius: 18px; padding: clamp(36px, 5vw, 60px); text-align: center; background: linear-gradient(135deg, #5CDB3F 0%, #2E9A1C 100%); color: var(--encre2); }
.ruban h2 { color: var(--encre2); }
.ruban p { max-width: 52ch; margin-inline: auto; margin-top: 14px; color: #123008; font-weight: 500; }
.ruban .btn__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.ruban .btn--fil { border-color: rgba(18,48,8,0.4); color: #123008; }
.ruban .btn--fil:hover { border-color: #123008; }

/* --------------------------------------------------------- Formulaires -- */

.form { display: grid; gap: 18px; }
.form__r { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ch { display: flex; flex-direction: column; gap: 7px; }
.ch label { font-size: 0.83rem; font-weight: 600; }
.ch label .r { color: var(--vert-fonce); }
.ch input, .ch select, .ch textarea {
  width: 100%; padding: 14px 15px; border: 1.5px solid var(--trait); border-radius: 9px;
  background: var(--blanc); color: var(--encre); font-family: var(--corps); font-size: 0.97rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease; -webkit-appearance: none; appearance: none;
}
.ch textarea { resize: vertical; min-height: 130px; }
.ch select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6B5B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 17px; padding-right: 42px;
}
.ch input:focus, .ch select:focus, .ch textarea:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 4px rgba(92,219,63,0.18); }
.ch input::placeholder, .ch textarea::placeholder { color: var(--gris-clair); }

fieldset.bloc { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; }
fieldset.bloc legend { padding: 0; }

.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 9px; }
.cse { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1.5px solid var(--trait); border-radius: 9px; cursor: pointer; font-size: 0.92rem; transition: border-color 0.18s ease, background 0.18s ease; }
.cse:hover { border-color: var(--gris-clair); }
.cse input { accent-color: var(--vert-fonce); margin-top: 2px; flex: none; width: 16px; height: 16px; }
.cse:has(input:checked) { border-color: var(--vert); background: var(--vert-voile); }

.aside__c { border: 1px solid var(--trait); border-radius: var(--r); padding: 28px 26px; background: var(--papier); }
.aside__c h3 { margin-bottom: 18px; }
.co { list-style: none; padding: 0; margin: 0; }
.co li { padding: 14px 0; border-top: 1px solid var(--trait); }
.co li:first-child { border-top: 0; padding-top: 0; }
.co b { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gris); font-weight: 500; margin-bottom: 5px; }
.co a, .co span { font-size: 1rem; }
.co a:hover { color: var(--vert-fonce); }
.note { font-size: 0.85rem; color: var(--gris); }

/* --------------------------------------------------------- Titre page -- */

.titre { padding-block: clamp(52px, 6vw, 84px) clamp(32px, 4vw, 48px); background: var(--papier); border-bottom: 1px solid var(--trait); }
.titre p { margin-top: 16px; }

/* --------------------------------------------------------------- Prose -- */

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--gris); font-size: 0.96rem; }
.prose a { color: var(--vert-fonce); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------- Modale -- */

.modale { position: fixed; inset: 0; z-index: 90; background: rgba(10,13,8,0.72); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 22px; }
.modale[hidden] { display: none; }
.modale__b { max-width: 820px; width: 100%; border-radius: 14px; background: var(--blanc); overflow: hidden; max-height: 88vh; overflow-y: auto; position: relative; }
.modale__i { aspect-ratio: 16/9; position: relative; overflow: hidden; background-color: #16200F;
  background-image: radial-gradient(ellipse at 45% 35%, #274120 0%, #101609 72%); }
.modale__i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modale__c { padding: 30px; }
.modale__x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--blanc); display: grid; place-items: center; box-shadow: 0 3px 12px rgba(0,0,0,0.22); z-index: 3; }

/* --------------------------------------------------------- Bas de page -- */

.pied { background: var(--encre2); color: #A9B5A5; padding-block: 56px 28px; }
.pied__g { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 38px; border-bottom: 1px solid var(--trait-noir); }
.pied h4 { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--vert); font-weight: 500; margin-bottom: 16px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 10px; }
.pied a { font-size: 0.92rem; }
.pied a:hover { color: var(--vert-pale); }
.pied .logo b { color: var(--blanc); }
.pied p { font-size: 0.9rem; margin-top: 16px; max-width: 34ch; }
.pied__b { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; padding-top: 22px; font-size: 0.82rem; }

/* ------------------------------------------------------------- Reveal -- */

.rv { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22,1,0.36,1); }
.rv.on { opacity: 1; transform: none; }

/* --------------------------------------------------------- Responsive -- */

@media (max-width: 960px) {
  .duo { grid-template-columns: 1fr; }
  .duo .visuel { order: -1; }
  .pied__g { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 70px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--blanc); border-bottom: 1px solid var(--trait); padding: 10px 24px 24px;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav.on { opacity: 1; transform: none; pointer-events: auto; }
  .nav a.n { padding-block: 15px; border-bottom: 1px solid var(--trait); font-size: 1rem; }
  .nav a.n::after { display: none; }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .form__r { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --gout: 18px; }
  body { font-size: 16px; }
  .mes { grid-template-columns: repeat(2, 1fr); }
  .pied__g { grid-template-columns: 1fr; }
  .hero__btn .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .rv { opacity: 1; transform: none; }
}

/* ==========================================================================
   v3 — Héro clair, cartes produits, rangée audio
   ========================================================================== */

.hero-clair {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #F6FAF4 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--trait);
  padding-block: clamp(44px, 5.5vw, 80px);
}
.hero-clair::before {
  content: ""; position: absolute; top: -220px; right: -120px;
  width: 720px; height: 620px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(92,219,63,0.20) 0%, rgba(92,219,63,0.05) 45%, transparent 70%);
}
.hero-clair__g { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-clair h1 em { font-style: normal; color: var(--vert-fonce); }
.hero-clair .chapeau { margin-top: 18px; }
.hero-clair__v { position: relative; }
.hero-clair__v img { width: 100%; height: auto; }

.badge--clair { background: var(--vert-voile); border-color: rgba(92,219,63,0.55); color: var(--vert-fonce); }

/* Cartes produits */
.prods { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 16px; }
.prod {
  border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; background: var(--blanc);
  display: flex; flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.prod:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(18,22,15,0.12); border-color: rgba(92,219,63,0.5); }
.prod__i { aspect-ratio: 4/3; display: grid; place-items: center; background: var(--papier); padding: 16px; overflow: hidden; }
.prod__i img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform 0.4s ease; }
.prod:hover .prod__i img { transform: scale(1.05); }
.prod--sombre .prod__i { background: #2D282E; }
.prod__b { padding: 18px 20px 22px; flex: 1; }
.prod__b h3 { font-size: 1.05rem; margin-bottom: 6px; }
.prod__b p { font-size: 0.88rem; color: var(--gris); }
.prod__k { display: inline-block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--vert-fonce); background: var(--vert-voile); border-radius: 999px; padding: 4px 10px; margin-bottom: 10px; }

/* Rangée audio */
.audio3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; align-items: end; }
.audio3 figure { margin: 0; text-align: center; }
.audio3 img { margin-inline: auto; max-height: 230px; width: auto; }
.audio3 figcaption { margin-top: 16px; font-weight: 600; font-size: 0.95rem; }
.audio3 small { display: block; color: var(--gris); font-size: 0.84rem; margin-top: 4px; }
.noir .audio3 small { color: #A9B5A5; }

/* Visuel produit : on montre l'objet entier, pas un recadrage */
.visuel--produit { background-image: none; background-color: var(--papier); }
.visuel--produit img { object-fit: contain; padding: 22px; }
.gris .visuel--produit { background-color: var(--blanc); }
.noir .visuel--produit { background-color: #131A10; }

/* Image pleine largeur */
.pleine { border-radius: var(--r); overflow: hidden; border: 1px solid var(--trait); }
.pleine img { width: 100%; height: auto; }

@media (max-width: 900px) {
  .hero-clair__g { grid-template-columns: 1fr; }
  .hero-clair__v { order: -1; max-width: 520px; margin-inline: auto; }
}


/* -------------------------------------------------------- Choix de langue -- */

.langues { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--trait); border-radius: 999px; }
.langues a {
  padding: 5px 11px; border-radius: 999px; font-family: var(--mono);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; color: var(--gris);
  transition: background 0.2s ease, color 0.2s ease;
}
.langues a:hover { color: var(--encre); background: var(--papier); }
.langues a[aria-current="true"] { background: var(--vert); color: var(--encre2); font-weight: 600; }

@media (max-width: 820px) {
  .langues { margin-top: 18px; justify-content: center; }
  .langues a { flex: 1; text-align: center; padding-block: 11px; font-size: 0.82rem; }
}


/* ==========================================================================
   v4 — Boucles vidéo. Fichiers locaux, muets, aucun service tiers.
   ========================================================================== */

.boucles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.boucles--solo { grid-template-columns: minmax(0, 620px); justify-content: center; margin-top: 44px; }
.boucles figure { margin: 0; }
.boucles figcaption { margin-top: 16px; font-weight: 600; font-size: 0.95rem; }
.boucles figcaption small { display: block; color: var(--gris); font-size: 0.84rem; margin-top: 4px; }
.noir .boucles figcaption small { color: #A9B5A5; }

.boucle {
  position: relative; overflow: hidden; aspect-ratio: 16/9;
  border-radius: var(--r); border: 1px solid var(--trait); background: #2A0C24;
}
.noir .boucle { border-color: var(--trait-noir); }
.boucle video { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; }
