/*
Theme Name: OKAM Orthopédie
Author: OKAM Orthopédie
Description: Thème bloc sur mesure pour OKAM Orthopédie, Reims.
Version: 1.0.24
Requires at least: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: okam
*/

/* Couleurs demandées par la cliente, neutres relevés sur la référence */
:root {
  --violet: #56408f;
  --violet-2: #6b55a6;
  --bleu: #6cb9e2;
  --blanc: #ffffff;
  --ivoire: #faf7ef;
  --ivoire-2: #eceae4;
  --fond: #efeef1;
  --encre: #211f2b;
  --gris: #6b6a75;
  --filet: #e6e6e3;
  --r: 14px;
  --r-s: 8px;
  --g: clamp(20px, 3.4vw, 56px);
}

@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("assets/polices/inter-tight-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("assets/polices/inter-tight-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; hyphens: none; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* Gutenberg : espacement coupé dans theme.json, filet à spécificité nulle */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }

.petit { font-size: 11.5px; color: var(--gris); line-height: 1.45; }
.attenue { color: var(--gris); }

.wp-site-blocks {
  position: relative;
  max-width: 1400px;
  margin: clamp(0px, 2.2vw, 28px) auto;
  background: var(--blanc);
  border-radius: var(--r);
  overflow: hidden;
}
.wp-site-blocks > * { margin-block: 0; }

/* Bouton : libellé + carré à flèche */
.bloc-bouton { display: flex; }
.wp-block-button.btn { display: inline-block; }
.btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 3px 3px 3px 15px;
  border-radius: 6px;
  background: var(--violet);
  color: var(--blanc);
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
  transition: gap .25s ease;
}
.btn .wp-block-button__link::after {
  content: "→";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--blanc);
  color: var(--violet);
  border-radius: 4px;
}
.btn .wp-block-button__link:hover { gap: 19px; }

.lien-fleche a { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lien-fleche a::after {
  content: "→";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--blanc);
  color: var(--violet);
  border-radius: 5px;
}

/* ENTÊTE */
.entete { position: absolute; inset: 0 0 auto 0; z-index: 20; color: var(--blanc); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--g); }
.marque { display: flex; align-items: center; gap: 16px; }
.marque-logo { flex: none; padding: 6px; background: var(--blanc); border-radius: var(--r-s); }
.marque-logo a { display: block; }
.marque-logo img { width: 76px; height: 76px; }
.marque-nom { font-size: 24px; line-height: 1.1; font-weight: 500; letter-spacing: .03em; }
.menu { font-size: 20px; }
.menu .wp-block-navigation__container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; margin: 0; padding: 0; list-style: none; }
.menu .wp-block-navigation-item__content { opacity: .92; color: inherit; }
.menu .wp-block-navigation-item__content:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { background: none; border: 0; color: inherit; cursor: pointer; padding: 6px; }
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--violet) !important;
  color: var(--blanc) !important;
  padding: 24px;
}
.wp-block-navigation.menu .is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: flex-start; font-size: 22px; gap: 14px; }

/* OUVERTURE */
.hero {
  position: relative;
  min-height: clamp(640px, 66vw, 900px);
  padding-top: 120px;
  color: var(--blanc);
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background: var(--violet);
}
.hero-page { min-height: clamp(460px, 40vw, 560px); }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(38,26,70,.55) 0%, rgba(38,26,70,.18) 38%, rgba(38,26,70,.28) 62%, rgba(38,26,70,.72) 100%);
}
.hero-page::after { background: linear-gradient(180deg, rgba(38,26,70,.62) 0%, rgba(38,26,70,.5) 60%, rgba(38,26,70,.72) 100%); }
.hero-contenu { padding: clamp(16px, 3vw, 40px) var(--g) 0; }
.pastille {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  font-size: 11.5px;
  letter-spacing: .02em;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(42px, 6.3vw, 88px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 300; max-width: 11.5em; }
.hero-intro { max-width: 50ch; margin-top: 16px; font-size: 16px; }
.hero-bas { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 32px var(--g) 22px; }
.hero-avatars { max-width: 300px; }
.hero-avatars > p { font-size: 12.5px; line-height: 1.4; margin-top: 12px; }
.avatars { display: flex; }
.avatars figure { margin-right: -10px; }
.avatars img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--blanc); }
.hero-carte { position: relative; width: 250px; padding: 14px; border-radius: var(--r); background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(14px); transition: background .25s; }
.hero-carte:hover { background: rgba(255,255,255,.26); }
.hero-carte > p:first-child { font-size: 13px; line-height: 1.3; margin-bottom: 12px; }
.hero-carte img { width: 100%; height: 118px; object-fit: cover; border-radius: var(--r-s); }
.hero-carte .lien-fleche { font-size: 12px; margin-top: 12px; }
.hero-carte .lien-fleche a::before { content: ""; position: absolute; inset: 0; }
.hero-filet { display: flex; justify-content: space-between; gap: 16px; margin: 0 var(--g); padding: 14px 0 18px; border-top: 1px solid rgba(255,255,255,.28); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.hero-page .hero-filet { margin-top: auto; }

/* BLOCS */
.bloc { padding: clamp(40px, 5vw, 72px) var(--g) clamp(56px, 7vw, 104px); position: relative; }
.entete-bloc { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); margin-bottom: clamp(28px, 3.4vw, 48px); }
.compteur { font-size: 12px; color: var(--gris); }

/* À PROPOS */
.apropos { overflow: hidden; }
.mot-geant { position: absolute; top: 96px; left: calc(var(--g) - .05em); font-size: clamp(100px, 15vw, 212px); font-weight: 300; line-height: 1; letter-spacing: -0.05em; color: #d3e9f6; white-space: nowrap; pointer-events: none; }
.apropos-grille { position: relative; display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: clamp(32px, 11vw, 150px); padding-top: clamp(40px, 6vw, 88px); }
.apropos .apropos-grille > .apropos-photo { position: relative; align-self: end; margin-top: clamp(40px, 8vw, 110px); }
.apropos-photo img { width: 100%; aspect-ratio: 330/400; object-fit: cover; border-radius: var(--r); }
.apropos-portrait { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(32px, 7vw, 100px); }
.legende { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; color: var(--blanc); font-size: 11.5px; line-height: 1.3; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.rond-plein { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--violet); border: 1px solid rgba(255,255,255,.5); text-shadow: none; }
.apropos-texte { max-width: 700px; border-left: 1px solid var(--filet); padding-left: clamp(0px, 3vw, 44px); margin-top: calc(clamp(40px, 6vw, 88px) * -1); }
.apropos-texte h2 { margin-bottom: 28px; }
.apropos-texte > p { max-width: 58ch; margin-bottom: 14px; }
.apropos-texte .bloc-bouton { margin-top: 14px; }
.apropos-pied { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: clamp(48px, 7vw, 100px); font-size: 12.5px; line-height: 1.35; }
.apropos-pied p:last-child { color: var(--gris); font-size: 12px; }

/* PLAGIOCÉPHALIE */
.plagio, .gamme, .couleur { padding-top: 0; }
.plagio-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.titre-rond { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 24px; }
.titre-rond h2 { max-width: 12em; }
.rond { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--filet); color: var(--gris); font-size: 18px; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puces li { padding: 6px 12px; background: var(--ivoire); border-radius: 999px; font-size: 12px; line-height: 1.3; }
.puces a:hover { text-decoration: underline; text-underline-offset: 3px; }
.portrait { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: clamp(32px, 4vw, 56px); }
.portrait-photo { position: relative; }
.portrait-photo img { width: 100%; aspect-ratio: 5/5.4; object-fit: cover; border-radius: var(--r); }
.legende-haute { position: absolute; left: 12px; bottom: 12px; color: var(--blanc); font-size: 11px; line-height: 1.25; text-transform: uppercase; letter-spacing: .05em; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.portrait-texte { display: flex; flex-direction: column; align-items: flex-start; }
.portrait-texte .petit { margin: 4px 0 18px; }
.citation-marie { margin-bottom: 22px; }
.plagio-photo { position: relative; }
.plagio-photo > figure, .plagio-photo > figure img { height: 100%; }
.plagio-photo img { width: 100%; min-height: 480px; object-fit: cover; border-radius: var(--r); }
.carte-donnees { position: absolute; top: 28px; left: 50%; translate: -50% 0; width: min(82%, 400px); padding: 18px; border-radius: 12px; background: var(--blanc); box-shadow: 0 18px 44px rgba(38,26,70,.18); }
.chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chiffre-titre { font-size: 10.5px; color: var(--gris); line-height: 1.45; margin-bottom: 4px; }
.chiffre-valeur { font-size: 38px; letter-spacing: -0.03em; line-height: 1; }
.chiffre-valeur em { font-style: normal; font-size: 13px; letter-spacing: 0; color: var(--gris); }
/* Frise de 12 mois, les mois 4 et 5 ressortis */
.frise::before {
  content: "";
  display: block;
  height: 28px;
  margin: 16px 0 12px;
  background:
    linear-gradient(90deg, var(--violet) calc(50% - 4px), transparent 0 50%, var(--violet) 0 calc(100% - 4px), transparent 0) 30% 0 / calc(100% / 6) 100% no-repeat,
    linear-gradient(90deg, var(--bleu) calc(100% - 4px), transparent 0) 0 0 / calc(100% / 12) 100% repeat-x;
}

/* LES ORTHÈSES */
.gamme-tete { display: grid; grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; margin-bottom: clamp(28px, 3.4vw, 44px); }
.gamme-tete h2 { max-width: 12em; }
.citation { max-width: 32ch; justify-self: end; font-size: 13px; }
.gamme-grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.gamme-photos { position: relative; aspect-ratio: 3/4; }
.gamme-photos > .vue { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.gamme-photos > .vue img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.gamme-photos > .vue.actif { opacity: 1; }
.carte-flottante { position: absolute; right: 18px; bottom: 18px; width: min(calc(100% - 36px), 300px); padding: 16px; border-radius: 12px; background: var(--blanc); box-shadow: 0 18px 44px rgba(38,26,70,.2); }
.carte-flottante-titre { font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; }
.carte-flottante-titre::after {
  content: "";
  display: block;
  height: 34px;
  margin: 6px 0;
  background: var(--violet);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C30 30 40 12 70 14 S110 34 140 22 S180 6 200 10' fill='none' stroke='%23000' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C30 30 40 12 70 14 S110 34 140 22 S180 6 200 10' fill='none' stroke='%23000' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.carte-flottante-pied { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.carte-flottante-pied .petit { max-width: 22ch; }
.carte-flottante-nb { font-size: 13px; white-space: nowrap; letter-spacing: -0.01em; }

.acc-item { border-bottom: 1px solid var(--filet); padding: 22px 0; }
.acc-item:first-child { padding-top: 6px; }
.acc-titre { display: flex; align-items: center; gap: 16px; cursor: pointer; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; line-height: 1.15; color: var(--gris); transition: color .25s; }
.acc-titre::before { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 15px; letter-spacing: 0; background: var(--ivoire); color: var(--gris); transition: background .25s, color .25s, rotate .25s; }
.ouvert > .acc-titre { color: var(--encre); }
.ouvert > .acc-titre::before { background: var(--violet); color: var(--blanc); rotate: 45deg; }
.acc-corps { display: none; padding: 12px 0 2px 46px; }
.ouvert > .acc-corps { display: block; }
.acc-corps p { max-width: 52ch; margin-bottom: 16px; }

/* FILTRES ET GALERIES */
.filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: clamp(22px, 2.6vw, 36px); font-size: 12px; }
.filtre { padding: 7px 14px; border-radius: 999px; background: var(--ivoire); font-size: 12.5px; line-height: 1.2; cursor: pointer; transition: background .25s, color .25s; }
.filtre.actif { background: var(--violet); color: var(--blanc); }
.filtrable > h2 { max-width: 15em; margin-bottom: clamp(28px, 3.4vw, 44px); }
.galerie { display: none; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, .95fr); gap: clamp(14px, 1.8vw, 24px); align-items: stretch; }
.galerie.actif { display: grid; }
.interagi .galerie.actif, .interagi .fiche.actif { animation: apparait .45s ease; }
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }
.vignettes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.2vw, 16px); }
.vignettes img { width: 100%; aspect-ratio: 1/1.05; object-fit: cover; border-radius: var(--r); }
.galerie-gauche { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.galerie-gauche .vignettes img { aspect-ratio: 1/1.25; }
.galerie-nav { display: flex; flex-direction: column; gap: 10px; }
.galerie-centre { position: relative; }
.galerie-centre > figure, .galerie-centre > figure img { height: 100%; }
.galerie-centre img { width: 100%; min-height: 440px; aspect-ratio: 1/1.25; object-fit: cover; border-radius: var(--r); }
.badge { position: absolute; top: 14px; left: 14px; padding: 4px 10px; border-radius: 999px; background: var(--bleu); color: var(--encre); font-size: 11px; }
.galerie-bouton { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 5px 5px 5px 14px; border-radius: 8px; background: var(--blanc); font-size: 12.5px; }
.galerie-bouton a::after { width: 30px; height: 30px; background: var(--violet); color: var(--blanc); }
.galerie-droite { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.galerie-droite > p { max-width: 38ch; font-size: 13px; }
.galerie-droite .vignettes { margin-top: auto; padding-top: 24px; }
.fleches { display: flex; gap: 6px; flex: none; }
.fleche { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; background: var(--violet-2); color: var(--blanc); cursor: pointer; transition: background .2s, color .2s; }
.fleche:hover { background: var(--blanc); color: var(--violet); }
.fleches-claires .fleche { background: var(--ivoire); color: var(--encre); }
.fleches-claires .fleche.suiv { background: var(--violet); color: var(--blanc); }
.fleches-claires .fleche:hover { background: var(--violet-2); color: var(--blanc); }

/* GRILLES À FILTRER */
.grille-tuiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.grille-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tuile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.grille-photos .tuile img { aspect-ratio: 3/4; }
.tuile-large { grid-column: span 3; grid-row: span 3; }
.tuile-large img { height: 100%; object-fit: contain; background: var(--blanc); border: 1px solid var(--filet); }
.tuile-pleine { grid-column: 1 / -1; }
.tuile-pleine img { height: auto; aspect-ratio: 2000 / 1198; object-fit: contain; }
.planche img { aspect-ratio: 2000 / 1990; }
.masque { display: none; }

/* PANNEAU */
.panneau { margin: 0 clamp(12px, 1.8vw, 24px); padding: clamp(28px, 3.6vw, 48px) clamp(20px, 3vw, 44px); background: var(--violet); color: var(--blanc); border-radius: 16px; }
.panneau .entete-bloc { color: rgba(255,255,255,.7); }
.panneau-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.panneau-tete h2 { max-width: 14em; font-weight: 300; }
.wp-site-blocks .wp-block-post-content > .panneau-simple { margin-bottom: clamp(56px, 7vw, 104px); }
.panneau-simple .panneau-tete { margin-bottom: 0; }
.panneau-simple .panneau-tete h2 { max-width: none; text-wrap: wrap; }
.panneau-grille { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: stretch; }
.panneau-photo { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.panneau-photo img { width: 100%; aspect-ratio: 300/250; object-fit: cover; border-radius: var(--r); margin-top: clamp(0px, 3.4vw, 48px); }
.panneau .compteur { color: rgba(255,255,255,.75); }
.carte-bleue { position: relative; display: flex; flex-direction: column; min-height: clamp(300px, 28vw, 400px); padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: var(--bleu); color: var(--encre); }
.etapes .carte-bleue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.etape { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(33,31,43,.25); }
.etape-texte { font-size: 16px; line-height: 1.45; }
.etape h3 { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.15; letter-spacing: -0.02em; }
.etape-num { font-size: 12.5px; opacity: .75; margin-bottom: 4px; }

/* APPEL */
.carte-appel { min-height: 0; align-items: flex-start; gap: 12px; }
.appel { padding-top: 0; }
.appel-texte { font-size: 16px; margin-bottom: 12px; }
.carte-appel h2 { font-weight: 300; }

/* RÉALISATIONS (ACCUEIL) */
.realisations-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: clamp(28px, 3.4vw, 44px); }
.realisations-tete h2 { max-width: 13em; margin-bottom: 12px; }
.realisations-intro > p { max-width: 46ch; font-size: 13px; }
.puces-pointees { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 280px; }
.puces-pointees li { padding: 2px 0 2px 16px; position: relative; font-size: 12px; line-height: 1.3; }
.puces-pointees li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.realisations-grille { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 36px); }
.bande-fenetre { overflow: hidden; border-radius: var(--r); }
.bande { --i: 0; --gap: clamp(10px, 1.2vw, 16px); display: flex; gap: var(--gap); transform: translateX(calc((-100% - var(--gap)) / 3 * var(--i))); transition: transform .55s cubic-bezier(.3,.7,.2,1); }
.bande figure { flex: 0 0 calc((100% - var(--gap) * 2) / 3); min-width: 0; }
.bande img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r); }
.fiche { display: none; }
.fiche.actif { display: block; }
.fiche-sous { text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; color: var(--gris); margin: 8px 0 14px; }
.fiche .attenue { font-size: 13px; }
.realisations-pied { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-top: 24px; }
.realisations-pied .compteur::after { content: ""; display: inline-block; vertical-align: middle; width: min(50%, 340px); height: 2px; margin-left: 16px; background: linear-gradient(90deg, var(--violet) var(--progres, 20%), var(--filet) 0); }

/* PAGES INTERNES */
.famille-grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.famille-inverse .famille-photo { order: 2; }
.famille-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); }
.famille-texte > h2 { margin-bottom: 18px; }
.famille-texte > .attenue { max-width: 58ch; }
.famille-liste { margin-top: clamp(20px, 3vw, 36px); }
.famille-ligne { padding: 18px 0; border-top: 1px solid var(--filet); }
.famille-ligne h3 { margin-bottom: 6px; }
.famille-ligne p { max-width: 60ch; }

.contact-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-infos h2 { margin-bottom: clamp(24px, 3vw, 36px); max-width: 11em; }
.contact-ligne { padding: 14px 0; border-top: 1px solid var(--filet); font-size: 16px; }
.contact-ligne a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-ligne .petit { margin-bottom: 2px; }
.contact-horaires strong { font-weight: 500; }
.contact-horaires p:not(.petit) + p { margin-top: 10px; }
.contact-infos .bloc-bouton { margin-top: 18px; }
.carte-formulaire { padding: clamp(20px, 2.6vw, 32px); border-radius: var(--r); background: var(--ivoire); }
.carte-formulaire h3 { margin-bottom: 18px; }
.mention-formulaire { margin-top: 14px; }
.mention-formulaire a { text-decoration: underline; text-underline-offset: 3px; }
.wpcf7 label { display: block; font-size: 12px; color: var(--gris); margin-bottom: 12px; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 4px; }
.wpcf7 input:not([type=submit]), .wpcf7 textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--filet); border-radius: 6px; background: var(--blanc); font: inherit; font-size: 14px; color: var(--encre); }
.wpcf7 input[type=submit] { padding: 12px 18px; border: 0; border-radius: 6px; background: var(--violet); color: var(--blanc); font: inherit; font-size: 13px; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--violet-2); }
.wpcf7 p { margin: 0; }
.wpcf7-spinner { display: none; }
.wpcf7-not-valid-tip { font-size: 12px; color: #a3273f; }
.wpcf7 form .wpcf7-response-output { margin: 12px 0 0; padding: 10px 12px; border-radius: 6px; border-color: var(--violet); font-size: 13px; color: var(--encre); }

.legal-texte { max-width: 760px; }
.legal-partie { padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--filet); }
.legal-partie:first-child { border-top: 0; padding-top: 0; }
.legal-partie h2 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 14px; }
.legal-partie p, .legal-liste { color: var(--gris); font-size: 15px; }
.legal-partie p + p, .legal-liste + p, p + .legal-liste { margin-top: 12px; }
.legal-liste { list-style: disc; padding-left: 20px; }
.legal-partie a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.article .legal-texte { max-width: 820px; }
.article .legal-partie p, .article .legal-liste { font-size: 17px; line-height: 1.6; color: var(--encre, inherit); }
.article .legal-liste li + li { margin-top: 8px; }
.article .legal-partie h3 { font-size: 19px; margin: 22px 0 8px; }
.article-suite { max-width: 820px; margin-top: clamp(28px, 3.4vw, 44px); padding-top: 24px; border-top: 1px solid var(--filet); }
.article-suite-titre { font-size: 13px; color: var(--gris); margin-bottom: 12px; }
.article-suite .puces li { font-size: 14px; padding: 8px 14px; }

/* PIED DE PAGE */
.pied { padding-top: clamp(32px, 3vw, 48px); }
.pied-grille { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); padding: 0 var(--g) clamp(40px, 5vw, 72px); font-size: 13px; }
.pied-appel h2 { font-size: clamp(28px, 2.9vw, 40px); max-width: 15em; margin-bottom: 12px; }
@media (min-width: 1101px) {
  .pied-grille { grid-template-columns: auto repeat(3, minmax(0, 1fr)); }
  .pied-appel h2 { max-width: none; white-space: nowrap; text-wrap: wrap; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .pied-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pied-appel { grid-column: 1 / -1; }
  .pied-appel h2 { max-width: none; }
}
.pied-appel p { color: var(--gris); margin-bottom: 26px; }
.pied-colonne { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; border-left: 1px solid var(--filet); }
.pied-colonne h4 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); margin-bottom: 6px; }
.pied-colonne a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pied-colonne a { overflow-wrap: anywhere; }
.pied-colonne strong { font-weight: 500; }
.pied-marque { position: relative; background: var(--ivoire); overflow: hidden; padding: clamp(24px, 3vw, 44px) var(--g) 20px; }
.mot-final { font-size: clamp(120px, 31vw, 440px); line-height: .8; letter-spacing: -0.05em; color: var(--ivoire-2); text-align: center; white-space: nowrap; }
.pied-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 20px; font-size: 11.5px; color: var(--gris); position: relative; }

.insecable { white-space: nowrap; }
:where(a, [tabindex]):focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; border-radius: 4px; }

/* Le menu réduit par paliers pour rester sur une ligne */
@media (max-width: 1240px) {
  .menu { font-size: 17px; }
}

/* TABLETTE */
@media (max-width: 1040px) {
  .menu .wp-block-navigation__container { gap: 6px 16px; font-size: 15px; }
  .gamme-tete { grid-template-columns: minmax(0, 1fr) auto; }
  .citation { display: none; }
  .grille-tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grille-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Le menu passe sous le logo plutôt que sur deux lignes */
@media (max-width: 920px) {
  .nav { flex-wrap: wrap; }
}

/* MOBILE */
@media (max-width: 820px) {
  .wp-site-blocks { margin: 0; border-radius: 0; }
  .nav { flex-wrap: wrap; }
  .marque { gap: 10px; }
  .marque-nom { font-size: 18px; }
  .marque-logo img { width: 60px; height: 60px; }
  .hero { min-height: 720px; padding-top: 104px; }
  .hero-page { min-height: 520px; }
  .hero::after { background: linear-gradient(180deg, rgba(38,26,70,.55) 0%, rgba(38,26,70,.3) 30%, rgba(38,26,70,.72) 52%, rgba(38,26,70,.82) 100%); }
  .hero-page::after { background: rgba(38,26,70,.58); }
  .photo-cadenas img { object-position: 74% 50%; }
  .photo-justice img { object-position: 66% 50%; }
  .hero-bas { flex-direction: column; align-items: stretch; }
  .hero-carte { width: 100%; }
  .hero-carte img { height: auto; aspect-ratio: 610 / 328; }
  .apropos { --mot: min(calc((100vw - 2 * var(--g)) / 4.55), 130px); }
  .mot-geant { top: clamp(40px, 6vw, 88px); left: var(--g); font-size: var(--mot); }
  .apropos-grille { grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--mot) + 16px); }
  .apropos .apropos-grille > .apropos-photo { margin-top: 0; order: 2; }
  .apropos-texte { border-left: 0; padding-left: 0; margin-top: 0; }
  .plagio-grille, .gamme-grille, .panneau-grille, .realisations-grille, .pied-grille, .famille-grille, .contact-grille { grid-template-columns: minmax(0, 1fr); }
  .plagio-photo img { min-height: 440px; }
  .etapes .carte-bleue { grid-template-columns: minmax(0, 1fr); }
  .gamme-photos { order: 2; }
  .famille-inverse .famille-photo { order: 0; }
  .galerie { grid-template-columns: minmax(0, 1fr); }
  .galerie.actif { display: grid; }
  .galerie-centre img { min-height: 0; }
  .panneau-tete, .realisations-tete { flex-direction: column; }
  .puces-pointees { justify-content: flex-start; max-width: none; }
  .bande figure { flex-basis: calc((100% - var(--gap)) / 1.6); }
  .bande { transform: translateX(calc((-100% - var(--gap)) / 1.6 * var(--i))); }
  .pied-colonne { border-left: 0; padding-left: 0; border-top: 1px solid var(--filet); padding-top: 16px; }
  .grille-tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tuile-large { grid-column: 1 / -1; grid-row: auto; }
  .tuile-large img { height: auto; aspect-ratio: 909 / 1197; }
  .grille-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Le panneau mobile de core/navigation, même seuil que WordPress */
@media (max-width: 599px) {
  .menu .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
}
@media (min-width: 600px) {
  .wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { display: none; }
}

/* Fondu enchaîné entre les pages (sans effet sur les navigateurs qui ne le gèrent pas) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: ease-in-out; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
