/* =========================
   CSS COMMUNE — assets/page.css
   ========================= */

/* Fonte locale (si présente) */
@font-face{
  font-family: "Hiragino Maru Gothic ProN";
  src: local("Hiragino Maru Gothic ProN W4"), local("Hiragino Maru Gothic ProN");
  font-weight: 400 800;
  font-display: swap;
}

*{ box-sizing: border-box }

/* ===== Variables globales ===== */
:root{
  --page-pad: clamp(10px, 2.8vh, 28px);
  --gap-center: clamp(14px, 3vh, 28px);
  --gap: clamp(12px, 3vw, 32px);
  --radius: 18px;
  --module-max: 600px;

  /* carré partagé (plaque/carrousel) */
  --module-by-width: clamp(320px, 90vw, var(--module-max));
  --module-by-height: calc((4 * (100dvh - (2 * var(--page-pad)) - (2 * var(--gap-center))) + (3 * var(--gap))) / 9);
  --module: min(var(--module-by-width), var(--module-by-height));
  --u: calc(var(--module) / 100);

  /* NAV pilotée par variables */
  --nav-gap: clamp(5px, 1.4vmin, 18px);
  --nav-cols: 4;
  --btn-icon: 80%;
  --btn-radius: calc(var(--radius) * .66);
  --btn-hover-scale: 1.06;
}

/* ===== Fonds par défaut (ARCHITECTURE) ===== */
:root{
  --bg-640:  url("../Fonds/jpg/Fond_Architecture-640.jpg");
  --bg-1024: url("../Fonds/jpg/Fond_Architecture-1024.jpg");
  --bg-1536: url("../Fonds/jpg/Fond_Architecture-1536.jpg");
  --bg-1920: url("../Fonds/jpg/Fond_Architecture-1920.jpg");

  --bg-640-webp:  url("../Fonds/webp/Fond_Architecture-640.webp") type("image/webp");
  --bg-1024-webp: url("../Fonds/webp/Fond_Architecture-1024.webp") type("image/webp");
  --bg-1536-webp: url("../Fonds/webp/Fond_Architecture-1536.webp") type("image/webp");
  --bg-1920-webp: url("../Fonds/webp/Fond_Architecture-1920.webp") type("image/webp");

  --bg-640-jpg:  url("../Fonds/jpg/Fond_Architecture-640.jpg") type("image/jpeg");
  --bg-1024-jpg: url("../Fonds/jpg/Fond_Architecture-1024.jpg") type("image/jpeg");
  --bg-1536-jpg: url("../Fonds/jpg/Fond_Architecture-1536.jpg") type("image/jpeg");
  --bg-1920-jpg: url("../Fonds/jpg/Fond_Architecture-1920.jpg") type("image/jpeg");
}

/* Fonds spécifiques par page */
body[data-page="ecofriendly"]{
  --bg-640:  url("../Fonds/jpg/Fond_Eco_Friendly-640.jpg");
  --bg-1024: url("../Fonds/jpg/Fond_Eco_Friendly-1024.jpg");
  --bg-1536: url("../Fonds/jpg/Fond_Eco_Friendly-1536.jpg");
  --bg-1920: url("../Fonds/jpg/Fond_Eco_Friendly-1920.jpg");
  --bg-640-webp:  url("../Fonds/webp/Fond_Eco_Friendly-640.webp") type("image/webp");
  --bg-1024-webp: url("../Fonds/webp/Fond_Eco_Friendly-1024.webp") type("image/webp");
  --bg-1536-webp: url("../Fonds/webp/Fond_Eco_Friendly-1536.webp") type("image/webp");
  --bg-1920-webp: url("../Fonds/webp/Fond_Eco_Friendly-1920.webp") type("image/webp");
  --bg-640-jpg:  url("../Fonds/jpg/Fond_Eco_Friendly-640.jpg") type("image/jpeg");
  --bg-1024-jpg: url("../Fonds/jpg/Fond_Eco_Friendly-1024.jpg") type("image/jpeg");
  --bg-1536-jpg: url("../Fonds/jpg/Fond_Eco_Friendly-1536.jpg") type("image/jpeg");
  --bg-1920-jpg: url("../Fonds/jpg/Fond_Eco_Friendly-1920.jpg") type("image/jpeg");
}
body[data-page="holistic"]{
  --bg-640:  url("../Fonds/jpg/Fond_Holistic-640.jpg");
  --bg-1024: url("../Fonds/jpg/Fond_Holistic-1024.jpg");
  --bg-1536: url("../Fonds/jpg/Fond_Holistic-1536.jpg");
  --bg-1920: url("../Fonds/jpg/Fond_Holistic-1920.jpg");
  --bg-640-webp:  url("../Fonds/webp/Fond_Holistic-640.webp") type("image/webp");
  --bg-1024-webp: url("../Fonds/webp/Fond_Holistic-1024.webp") type("image/webp");
  --bg-1536-webp: url("../Fonds/webp/Fond_Holistic-1536.webp") type("image/webp");
  --bg-1920-webp: url("../Fonds/webp/Fond_Holistic-1920.webp") type("image/webp");
  --bg-640-jpg:  url("../Fonds/jpg/Fond_Holistic-640.jpg") type("image/jpeg");
  --bg-1024-jpg: url("../Fonds/jpg/Fond_Holistic-1024.jpg") type("image/jpeg");
  --bg-1536-jpg: url("../Fonds/jpg/Fond_Holistic-1536.jpg") type("image/jpeg");
  --bg-1920-jpg: url("../Fonds/jpg/Fond_Holistic-1920.jpg") type("image/jpeg");
}
body[data-page="design"]{
  --bg-640:  url("../Fonds/jpg/Fond_Design-640.jpg");
  --bg-1024: url("../Fonds/jpg/Fond_Design-1024.jpg");
  --bg-1536: url("../Fonds/jpg/Fond_Design-1536.jpg");
  --bg-1920: url("../Fonds/jpg/Fond_Design-1920.jpg");
  --bg-640-webp:  url("../Fonds/webp/Fond_Design-640.webp") type("image/webp");
  --bg-1024-webp: url("../Fonds/webp/Fond_Design-1024.webp") type("image/webp");
  --bg-1536-webp: url("../Fonds/webp/Fond_Design-1536.webp") type("image/webp");
  --bg-1920-webp: url("../Fonds/webp/Fond_Design-1920.webp") type("image/webp");
  --bg-640-jpg:  url("../Fonds/jpg/Fond_Design-640.jpg") type("image/jpeg");
  --bg-1024-jpg: url("../Fonds/jpg/Fond_Design-1024.jpg") type("image/jpeg");
  --bg-1536-jpg: url("../Fonds/jpg/Fond_Design-1536.jpg") type("image/jpeg");
  --bg-1920-jpg: url("../Fonds/jpg/Fond_Design-1920.jpg") type("image/jpeg");
}
body[data-page="bio"]{
  --bg-640:  url("../Fonds/jpg/Fond_Bio-640.jpg");
  --bg-1024: url("../Fonds/jpg/Fond_Bio-1024.jpg");
  --bg-1536: url("../Fonds/jpg/Fond_Bio-1536.jpg");
  --bg-1920: url("../Fonds/jpg/Fond_Bio-1920.jpg");
  --bg-640-webp:  url("../Fonds/webp/Fond_Bio-640.webp") type("image/webp");
  --bg-1024-webp: url("../Fonds/webp/Fond_Bio-1024.webp") type("image/webp");
  --bg-1536-webp: url("../Fonds/webp/Fond_Bio-1536.webp") type("image/webp");
  --bg-1920-webp: url("../Fonds/webp/Fond_Bio-1920.webp") type("image/webp");
  --bg-640-jpg:  url("../Fonds/jpg/Fond_Bio-640.jpg") type("image/jpeg");
  --bg-1024-jpg: url("../Fonds/jpg/Fond_Bio-1024.jpg") type("image/jpeg");
  --bg-1536-jpg: url("../Fonds/jpg/Fond_Bio-1536.jpg") type("image/jpeg");
  --bg-1920-jpg: url("../Fonds/jpg/Fond_Bio-1920.jpg") type("image/jpeg");
}

/* ===== BODY avec fond responsive ===== */
body{
  margin:0;
  min-height:100svh;
  padding-top: max(env(safe-area-inset-top), var(--page-pad));
  padding-bottom: max(env(safe-area-inset-bottom), var(--page-pad));
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  background-attachment:fixed;
  background-image: var(--bg-640);
  display:grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items:center;
  color:#fff;
  text-shadow:0 1px 3px rgba(0,0,0,.6);
  font-family:
    "Hiragino Maru Gothic ProN W4",
    "Hiragino Maru Gothic ProN",
    "M PLUS Rounded 1c",
    system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-synthesis:none;
}
@media (min-width: 641px){  body{ background-image: var(--bg-1024); } }
@media (min-width: 1025px){ body{ background-image: var(--bg-1536); } }
@media (min-width: 1537px){ body{ background-image: var(--bg-1920); } }

@supports (background-image: image-set(url("x") type("image/webp"))) {
  body{ background-image: image-set(var(--bg-640-webp),  var(--bg-640-jpg)); }
  @media (min-width: 641px){  body{ background-image: image-set(var(--bg-1024-webp), var(--bg-1024-jpg)); } }
  @media (min-width: 1025px){ body{ background-image: image-set(var(--bg-1536-webp), var(--bg-1536-jpg)); } }
  @media (min-width: 1537px){ body{ background-image: image-set(var(--bg-1920-webp), var(--bg-1920-jpg)); } }
}

/* ===== Carré du haut (plaque) ===== */
.zone-haut{
  align-self:end;
  width:var(--module);
  aspect-ratio:1/1;
  border-radius:var(--radius);
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: clamp(12px, 3cqw, 24px);
  margin-bottom: var(--gap-center);
  container-type: size;
}
@supports not (width: 1cqw){ .zone-haut{ padding: clamp(12px, calc(var(--u) * 3), 24px); } }
.zone-haut::before{
  content:""; position:absolute; inset:0;
  background:url("../Plaque/Plaque.jpg") center/cover no-repeat;
  opacity:.5; z-index:0; pointer-events:none;
}

.bloc-texte{
  position:relative; z-index:1; width:min(550px, 94%);
  text-align:center;
  display:grid; grid-template-rows:auto 1fr; height:100%;
  margin:0 auto;
}

/* Titre fluide centré */
/* Titre fluide centré avec clamp */
h1.titre {
  font-size: clamp(1.5rem, 5vw, 2.5rem); /* Taille minimale 1.5rem, taille idéale 5vw, taille maximale 3rem */
  line-height: 1.3;
  margin: 0 0 1rem 0;
  padding: 0;
  max-height: 4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
h1.titre-bio {
  font-size: clamp(1.5rem, 5vw, 1.5rem); /* Taille minimale 1.5rem, taille idéale 5vw, taille maximale 3rem */
  line-height: 1.3;
  margin: 0 0 1rem 0;
  padding: 0;
  max-height: 4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  
}

/* Ajustements spécifiques pour les petits écrans (iPhone) */
@media (max-width: 600px) {
  h1.titre {
    font-size: clamp(0.5rem, 8vw, 1.1rem); /* Réduit la taille du titre sur iPhone (8vw plus petit que 5vw) */
  }
  h1.titre-bio {
    font-size: clamp(0.5rem, 5vw, 0.8rem); /* Réduit la taille du titre sur iPhone (8vw plus petit que 5vw) */
  }
  h2.sous-texte {
    font-size: clamp(0.2rem, 4vw, 0.5rem);  /* Réduit la taille du sous-titre sur les petits écrans */
  }
}

/* Paragraphe FR/EN : scroll interne si ça dépasse */
/* Paragraphe sous le titre (h2.sous-texte) avec ajustement responsif */
h2.sous-texte {
  margin: 0;
  text-align: justify;
  display: block;
  line-height: 1.45;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: auto; /* <- pas de réserve côté droit */
  transition: font-size 140ms ease-out;
  font-size: clamp(0.8rem, 3vw, 1.1rem); /* Ajuste la taille du texte de manière fluide */
}

.fr {
  white-space: pre-line;
  display: block;
}

.en {
  white-space: pre-line;
  display: block;
  color: #fff;
  margin-block-start: 1.1em;
}

/* Césure/justification robustes */
h2.sous-texte,
h2.sous-texte .fr,
h2.sous-texte .en {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Masque visuel des scrollbars internes */
h2.sous-texte::-webkit-scrollbar {
  width: 0;
  height: 0;
}


/* Indication de scroll (fade bas) */

.scroll-fade{
  position:absolute; left:0; right:0;
  bottom: clamp(1px, 3cqw, 1px);  /* Ajuste ici la valeur */
  height: clamp(24px, 8cqw, 56px);
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  pointer-events:none; z-index:2;
  opacity:1; transition: opacity .25s ease;
}

.scroll-fade.is-hidden{ opacity:0; }

/* ===== Raccourcis de marges pour resserrer le milieu ===== */
.zone-haut{ margin-bottom: calc(var(--gap-center) * .5); }
.zone-bas { margin-top:    calc(var(--gap-center) * .5); }



.boutons-container{
  width: var(--module);
  max-width: var(--module);
  margin-inline: 0; padding-inline: 0;
  display: grid;
  grid-template-columns: repeat(var(--nav-cols), minmax(0, 1fr));
  gap: var(--nav-gap);
  justify-items: stretch; align-items: stretch;
  box-sizing: border-box;
}
.boutons-container a{
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  border-radius: var(--btn-radius);
  text-decoration: none;
}
.boutons-container img{
  width: var(--btn-icon); height: var(--btn-icon);
  object-fit: contain;
  transition: transform .2s ease, filter .2s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}
.boutons-container a:hover img{ transform: scale(var(--btn-hover-scale)); }

/* ===== Carré du bas (carrousel) ===== */
.zone-bas{
  align-self:start; width:100%;
  display:flex; flex-direction:column; align-items:center;
}
.carrousel{
  position:relative;
  width:var(--module);
  aspect-ratio: 1 / 1;
  border-radius:var(--radius);
  background: rgba(233,233,233,.7);
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
  touch-action: pan-y;
  container-type: size;
}
.carrousel::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:22%;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  z-index:1; pointer-events:none;
}
.carrousel img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity 500ms ease-in-out;
}
.carrousel img.active{ opacity:1; }

/* Boutons de nav (desktop par défaut) */
.nav-btn{
  position:absolute; top:80%; transform:translateY(-50%);
  border-radius:50%; border:none; cursor:pointer; user-select:none;
  background:rgba(255,255,255,.85); backdrop-filter:blur(2px);
  box-shadow:0 2px 10px rgba(0,0,0,.25); z-index:2; display:grid; place-items:center;
  padding:0;
}
@supports (width: 1cqw){
  .nav-btn{ width: 4cqw; height: 4cqw; }
  .nav-btn svg{ width: 2cqw; height: 2cqw; }
}
@supports not (width: 1cqw){
  .nav-btn{ width: calc(var(--u) * 4); height: calc(var(--u) * 4); }
  .nav-btn svg{ width: calc(var(--u) * 2); height: calc(var(--u) * 2); }
}
.nav-btn.left{ left:10px; } .nav-btn.right{ right:10px; }

.caption{
  position:absolute !important; bottom:0 !important; left:0 !important; right:0 !important;
  padding:4px 8px !important; color:#fff !important; font-weight:600 !important;
  text-align:center !important; text-shadow:0 1px 2px rgba(0,0,0,.7) !important;
  z-index:3 !important; white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important;
  line-height:1.2 !important; background:transparent !important;
  transition: font-size 140ms ease-out;
}

/* === MOBILE FINAL (<=600px) — marges égales + chevrons carousel === */
@media (max-width: 600px){
  /* 1) pas de réserve de scrollbar qui décale à droite */
  html{ scrollbar-gutter: auto !important; }

  /* 2) plaque haute : bords G/D égaux et plus serrés */
  .zone-haut{
    padding-left: clamp(6px, 2cqw, 10px);
    padding-right: clamp(6px, 2cqw, 10px);
  }
  .bloc-texte{ width: 100%; margin-inline: auto; }
  h1.titre{ padding-inline: clamp(4px, 1.6cqw, 8px); }
  h2.sous-texte{ padding-inline: clamp(4px, 1.6cqw, 8px); }
  h2.sous-texte::-webkit-scrollbar{ width: 0; height: 0; }

  /* 3) carrousel : flèches smartphone au milieu et à l’extérieur */
  .carrousel{ overflow: visible; }
  .carrousel .nav-btn{
    position: absolute !important;
    top: 50%; transform: translateY(-50%);
    background: transparent; border: none;
    width: auto; height: auto; padding: 0;
    box-shadow: none; backdrop-filter: none; z-index: 5;
  }
  .carrousel .nav-btn svg{ display: none; }
  .carrousel .nav-btn.left{  left:  calc(-1 * clamp(10px, 2cqw, 18px)); right: auto; }
  .carrousel .nav-btn.right{ right: calc(-1 * clamp(10px, 2cqw, 18px)); left: auto; }
  .carrousel .nav-btn.left::after,
  .carrousel .nav-btn.right::after{
    display:block; content:"";
    font-family: "Hiragino Maru Gothic ProN","Hiragino Maru Gothic ProN W8","M PLUS Rounded 1c",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    font-weight:800; font-size: clamp(56px, 16cqw, 88px); line-height:1;
    color:#fff; text-shadow:0 2px 6px rgba(0,0,0,.35); padding:6px 8px;
  }
  .carrousel .nav-btn.left::after{  content:"‹"; }
  .carrousel .nav-btn.right::after{ content:"›"; }

  .carrousel .nav-btn:focus-visible{
    outline: 3px solid rgba(255,255,255,.9);
    outline-offset: 4px; border-radius: 8px;
  }
}
/* === MOBILE FIX — nav en 4 colonnes sur smartphone === */
@media (max-width: 600px){
  :root{ --nav-cols: 4 !important; }  /* pilote la grille via la variable */
  .boutons-container{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important; /* ceinture+bretelles */
  }
}
/* ——— Eco-friendly : règles spécifiques + corrections responsive ——— */
/* Place this block at the end of assets/page.css so it overrides base styles */

body[data-page="ecofriendly"]{
  /* ↓ Réduit les marges par défaut entre le titre et le curseur/texte */
  --eco-img-top:  clamp(50px, 6cqw, 55px);
  --eco-text-gap: clamp(50px, 4cqw, 55px);
}

/* Le bloc devient un container pour rendre cqw fiable */
body[data-page="ecofriendly"] .bloc-texte{
  position: relative;           /* s’assure que l’overlay se positionne dessus */
  container-type: inline-size;  /* 1cqw = 1% de la largeur du bloc */
  width: 99.2%;
  margin-inline: auto;
}

/* Image "curseur" sous le titre */
body[data-page="ecofriendly"] .intro-eco{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: var(--eco-img-top);
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: .95;
}

/* Paragraphe sous le titre (FR/EN) */
body[data-page="ecofriendly"] .bloc-texte .sous-texte{ 
  position: relative; 
  z-index: 1; 
  margin-block-start: var(--eco-text-gap); 
}

/* Justification + césure propre + masquage des barres de scroll si besoin */
body[data-page="ecofriendly"] h2.sous-texte,
body[data-page="ecofriendly"] h2.sous-texte .fr,
body[data-page="ecofriendly"] h2.sous-texte .en{
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  word-break: normal;
  overflow-wrap: break-word;
  scrollbar-gutter: stable both-edges;
}
body[data-page="ecofriendly"] h2.sous-texte::-webkit-scrollbar{
  width: 0; height: 0;
}

/* Petits écrans : resserrer encore l’écart */
@media (max-width: 600px){
  body[data-page="ecofriendly"]{
    --eco-img-top:  clamp(16px, 5vw, 36px);
    --eco-text-gap: clamp(14px, 4vw, 28px);
  }
}
@media (max-width: 360px){
  body[data-page="ecofriendly"]{
    --eco-img-top:  clamp(12px, 5vw, 28px);
    --eco-text-gap: clamp(10px, 4vw, 22px);
  }
}


/* ============================================================
   SEO / REFACTORING 2026 — ajouts
   Hiérarchie Hn corrigée : le texte de contenu est désormais
   dans .sous-texte (div) > <p>, et non plus dans un <h2>.
   Ce bloc reprend le comportement de scroll de l'ancien h2.sous-texte.
   ============================================================ */

/* .sous-texte fonctionne maintenant en <div> contenant des <p> */
div.sous-texte{
  margin: 0;
  text-align: justify;
  display: block;
  line-height: 1.45;
  color: #fff;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
  transition: font-size 140ms ease-out;
  font-size: clamp(0.8rem, 3vw, 1.1rem);
  -webkit-hyphens: auto;
  hyphens: auto;
  word-break: normal;
  overflow-wrap: break-word;
}
div.sous-texte::-webkit-scrollbar{ width: 0; height: 0; }
div.sous-texte p{
  margin: 0 0 1em 0;
  white-space: normal;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
div.sous-texte p:last-child{ margin-bottom: 0; }

/* Marge basse dans la zone de texte : permet de défiler jusqu'à la
   dernière ligne sans qu'elle reste masquée par le dégradé .scroll-fade.
   (Réserve modérée. Quand le lien "plus" sera réaffiché, augmenter cette
   valeur sur les 4 rubriques pour laisser la place au lien — voir note plus bas.) */
div.sous-texte{
  padding-bottom: clamp(2.6em, 9cqh, 3.4em);
}

/* NOTE (réactivation études de cas) : quand le lien "plus" + flèche sera
   réaffiché sur les rubriques, la réserve ci-dessus suffit déjà à le dégager.
   Aucun réglage supplémentaire nécessaire. */

@media (max-width: 600px){
  div.sous-texte{ font-size: clamp(0.7rem, 4vw, 0.95rem); }
}

/* Compat ecofriendly : mêmes réglages que l'ancien h2.sous-texte */
body[data-page="ecofriendly"] div.sous-texte{
  text-align: justify;
  -webkit-hyphens: auto; hyphens: auto;
  word-break: normal; overflow-wrap: break-word;
}

/* Lien d'accès rapide (accessibilité + SEO) */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: #fff;
  color: #111;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus{ left: 0; }

/* Sélecteur de langue */
.lang-switch{
  position: fixed;
  top: max(env(safe-area-inset-top), 12px);
  right: max(env(safe-area-inset-right), 12px);
  z-index: 9000;
}
.lang-switch a{
  display: inline-block;
  min-width: 40px;
  text-align: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  color: #111;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .04em;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  backdrop-filter: blur(4px);
  transition: transform .15s ease, background .15s ease;
}
.lang-switch a:hover{ transform: translateY(-1px); background:#fff; }
.lang-switch a:focus-visible{ outline: 2px solid #111; outline-offset: 2px; }

/* CTA étude de cas : flèche arrondie ancrée en bas à droite de la plaque */
.cas-link[hidden]{ display: none !important; }  /* garde-fou : 'hidden' doit primer sur display:inline-flex */
.cas-link{
  position: absolute;
  right: clamp(10px, 3cqw, 22px);
  bottom: clamp(10px, 3cqw, 22px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(.74rem, 2.2cqw, .92rem);
  letter-spacing: .01em;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  padding: .35em .2em .35em .4em;
  transition: transform .18s ease, opacity .18s ease;
}
.cas-link:hover{ transform: translateX(3px); }
.cas-link:focus-visible{ outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }
.cas-link .cas-arrow{
  width: 1.6em;
  height: 1.6em;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
/* Petits écrans : on garde le mot mais plus compact */
@media (max-width: 600px){
  .cas-link{ font-size: .76rem; gap: .4em; }
  .cas-link .cas-arrow{ width: 1.4em; height: 1.4em; }
}
@media (prefers-reduced-motion: reduce){
  .cas-link{ transition: none; }
}

/* ============================================================
   PAGES ÉTUDE DE CAS (gabarit structuré, vrais H2)
   ============================================================ */
body.cas-page{
  display: block;
  min-height: 100svh;
  background: #f4f2ee;
  color: #1a1a1a;
  font-family: "Hiragino Maru Gothic ProN","M PLUS Rounded 1c",
               system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  -webkit-text-size-adjust: 100%;
}
.cas-wrap{
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 6vw, 64px) clamp(18px, 5vw, 32px) 80px;
}
.cas-back{ margin: 0 0 24px; }
.cas-back a{
  color: #555; text-decoration: none; font-weight: 700; font-size: 15px;
}
.cas-back a:hover{ color:#111; text-decoration: underline; }

.cas-header{ margin-bottom: clamp(28px, 6vw, 48px); }
.cas-eyebrow{
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  font-weight: 800;
  color: #8a8378;
  margin: 0 0 10px;
}
.cas-h1{
  font-size: clamp(1.8rem, 6vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 16px;
}
.cas-intro{
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  line-height: 1.6;
  color: #4a463f;
  margin: 0;
}

.cas-section{
  margin: clamp(28px, 5vw, 44px) 0;
  padding-top: clamp(20px, 4vw, 32px);
  border-top: 1px solid #e2ddd3;
}
.cas-section h2{
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.2;
}
.cas-section p{
  font-size: clamp(1rem, 2.4vw, 1.08rem);
  line-height: 1.65;
  margin: 0;
  color: #3a352e;
}
.cas-placeholder{ color: #9a9082; font-style: italic; }

.cas-gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.cas-gallery figure{ margin: 0; }
.cas-ph-img{
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: repeating-linear-gradient(45deg,#e8e3d8,#e8e3d8 12px,#ddd6c8 12px,#ddd6c8 24px);
  border: 1px dashed #c9c0af;
}
.cas-gallery figcaption{
  font-size: 13px; color: #8a8378; margin-top: 8px; text-align: center;
}

.cas-cta-final{
  margin-top: clamp(36px, 6vw, 56px);
  text-align: center;
}
.cas-cta-final a{
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.cas-cta-final a:hover{ transform: translateY(-2px); background:#000; }

@media (prefers-reduced-motion: reduce){
  .lang-switch a, .cas-cta-final a{ transition: none; }
}


/* ============================================================
   ANIMATION D'OUVERTURE — apparition fondu/glissé (4 rubriques)
   Le texte est TOUJOURS dans le HTML : on n'anime que l'opacité
   et la position (translateY). Aucun impact SEO.
   N'agit que si JS confirme (classe .reveal-ready sur <body>) :
   sans JS, le texte reste visible normalement (fallback sûr).
   Respecte prefers-reduced-motion (pas d'animation).
   ============================================================ */

/* Pages concernées uniquement : architecture, ecofriendly, holistic, design */
body[data-page="architecture"].reveal-ready .titre,
body[data-page="ecofriendly"].reveal-ready .titre,
body[data-page="holistic"].reveal-ready .titre,
body[data-page="design"].reveal-ready .titre,
body[data-page="architecture"].reveal-ready div.sous-texte > p,
body[data-page="ecofriendly"].reveal-ready div.sous-texte > p,
body[data-page="holistic"].reveal-ready div.sous-texte > p,
body[data-page="design"].reveal-ready div.sous-texte > p{
  opacity: 0;
  transform: translateY(12px);
  animation: reveal-up .85s cubic-bezier(.22,.61,.36,1) forwards;
}

/* Titre en premier */
body[data-page="architecture"].reveal-ready .titre,
body[data-page="ecofriendly"].reveal-ready .titre,
body[data-page="holistic"].reveal-ready .titre,
body[data-page="design"].reveal-ready .titre{
  animation-delay: .15s;
}

/* Paragraphes en cascade (léger décalage entre chacun) */
body.reveal-ready div.sous-texte > p:nth-of-type(1){ animation-delay: .45s; }
body.reveal-ready div.sous-texte > p:nth-of-type(2){ animation-delay: .65s; }
body.reveal-ready div.sous-texte > p:nth-of-type(3){ animation-delay: .85s; }
body.reveal-ready div.sous-texte > p:nth-of-type(4){ animation-delay: 1.05s; }
body.reveal-ready div.sous-texte > p:nth-of-type(5){ animation-delay: 1.25s; }

/* Le lien "plus" apparaît en dernier, en fondu simple */
body[data-page="architecture"].reveal-ready .cas-link,
body[data-page="ecofriendly"].reveal-ready .cas-link,
body[data-page="holistic"].reveal-ready .cas-link,
body[data-page="design"].reveal-ready .cas-link{
  opacity: 0;
  animation: reveal-fade .7s ease forwards;
  animation-delay: 1.45s;
}

@keyframes reveal-up{
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes reveal-fade{
  to{ opacity: 1; }
}

/* Accessibilité : si l'utilisateur a réduit les animations, tout est visible direct */
@media (prefers-reduced-motion: reduce){
  body.reveal-ready .titre,
  body.reveal-ready div.sous-texte > p,
  body.reveal-ready .cas-link{
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
