/* =========================================================================
   Meriova, feuille de style unique
   Direction artistique « Riviera » : ivoire, craie, bleu nuit, ambre, sauge.
   Cormorant Garamond (titres) · Lora (texte) · Public Sans (interface).
   Système de formes : angles vifs partout (rayon 0). Aucune icône : la
   hiérarchie est portée par la typographie et les filets.
   ========================================================================= */

/* ---------- Polices auto-hébergées (aucune requête tierce) --------------- */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-500.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lora-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lora-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/public-sans.woff2") format("woff2");
}

/* ---------- Jetons ------------------------------------------------------- */

:root {
  --ivoire: #f6f1e6;
  --craie: #fcfaf4;
  --nuit: #232a3d;
  --ambre: #bc8a34;        /* filets, lettrines sur fond sombre */
  --ambre-encre: #8c6224;  /* même accent, valeur lisible sur ivoire (4,8:1) */
  --sauge: #93a08e;

  --encre: #232a3d;
  --encre-douce: #565c6b;  /* 5,9:1 sur ivoire */
  --encre-claire: #f6f1e6;
  --encre-claire-douce: rgba(246, 241, 230, 0.78);

  --filet: rgba(35, 42, 61, 0.16);
  --filet-fin: rgba(35, 42, 61, 0.09);
  --filet-sauge: rgba(147, 160, 142, 0.55);
  --filet-ambre: rgba(188, 138, 52, 0.5);
  --filet-clair: rgba(246, 241, 230, 0.22);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --texte: "Lora", Georgia, "Times New Roman", serif;
  --ui: "Public Sans", "Helvetica Neue", system-ui, sans-serif;

  --shell: 74rem;
  --marge: clamp(1.25rem, 4.6vw, 3.5rem);
  --air-section: clamp(5.5rem, 11vw, 9.5rem);

  --courbe: cubic-bezier(0.32, 0.72, 0, 1);
  --ombre-douce: 0 26px 58px -34px rgba(35, 42, 61, 0.34);
  --ombre-levee: 0 30px 64px -30px rgba(35, 42, 61, 0.42);
}

/* ---------- Base --------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-padding-top: 2rem;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--encre);
  font-family: var(--texte);
  font-size: clamp(1rem, 0.965rem + 0.16vw, 1.075rem);
  line-height: 1.72;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Grain de papier : couche fixe, non interactive, au-dessus du contenu. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23g)'/></svg>");
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.008em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ambre-encre);
  outline-offset: 3px;
}

.saut {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  padding: 0.9rem 1.4rem;
  background: var(--nuit);
  color: var(--encre-claire);
  font-family: var(--ui);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.saut:focus { left: 1rem; top: 1rem; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--marge);
}

/* ---------- Filet double ambre (signature de section) -------------------- */

.filet-double {
  width: 5.75rem;
  height: 5px;
  margin: 0 0 1.85rem;
  border: 0;
  border-top: 1px solid var(--ambre);
  border-bottom: 1px solid var(--ambre);
  background: none;
}
.filet-double--centre { margin-inline: auto; }
.filet-double--clair {
  border-top-color: rgba(188, 138, 52, 0.85);
  border-bottom-color: rgba(188, 138, 52, 0.85);
}

/* ---------- Étiquettes d’interface --------------------------------------- */

.etiquette {
  margin: 0 0 1.15rem;
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.etiquette--espacee { margin-top: 2.75rem; }

/* ---------- En-tête (lettre à en-tête, non collante) --------------------- */

.entete {
  border-bottom: 1px solid var(--filet-fin);
  background: var(--ivoire);
}
.entete__grille {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  padding-block: 0.85rem;
}

.logotype {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  text-decoration: none;
}
.logotype__nom {
  font-family: var(--ui);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--encre);
}
.logotype__devise {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--encre-douce);
}

.nav {
  display: flex;
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
}
.nav a {
  position: relative;
  padding-block: 0.35rem;
  font-family: var(--ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--encre-douce);
  transition: color 0.4s var(--courbe);
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--ambre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--courbe);
}
.nav a:hover { color: var(--encre); }
.nav a:hover::after { transform: scaleX(1); }

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

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.85rem;
  margin-top: clamp(2rem, 3.4vw, 2.85rem);
}
.actions--centre { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--nuit);
  border-radius: 0;
  font-family: var(--ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.55s var(--courbe), box-shadow 0.55s var(--courbe),
              background-color 0.55s var(--courbe), color 0.55s var(--courbe);
}
.btn__mot { padding: 1.1rem 1.45rem; }

.btn--plein {
  background: var(--nuit);
  color: var(--encre-claire);
}
.btn--plein .btn__fleche {
  display: grid;
  place-items: center;
  align-self: stretch;
  width: 2.85rem;
  border-left: 1px solid rgba(188, 138, 52, 0.65);
  color: var(--ambre);
  font-size: 0.95rem;
  transition: transform 0.55s var(--courbe), background-color 0.55s var(--courbe);
}
.btn--plein:hover {
  transform: translateY(-2px);
  box-shadow: var(--ombre-levee);
}
.btn--plein:hover .btn__fleche {
  transform: translateX(3px);
  background: rgba(246, 241, 230, 0.12);
}
.btn--plein:active { transform: translateY(0) scale(0.988); }

.btn--fantome {
  padding: 1.1rem 1.45rem;
  background: transparent;
  color: var(--encre);
  border-color: var(--filet);
}
.btn--fantome:hover {
  border-color: var(--nuit);
  background: rgba(35, 42, 61, 0.045);
  transform: translateY(-2px);
}
.btn--fantome:active { transform: translateY(0) scale(0.988); }

/* Action secondaire : un lien discret, jamais un second bouton en concurrence
   avec l’appel principal. */
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--filet-ambre);
  font-family: var(--ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--encre);
  transition: border-color 0.5s var(--courbe), color 0.5s var(--courbe);
}
.lien-fleche__fleche {
  color: var(--ambre-encre);
  transition: transform 0.5s var(--courbe);
}
.lien-fleche:hover { border-bottom-color: var(--ambre); }
.lien-fleche:hover .lien-fleche__fleche { transform: translateX(4px); }

/* ---------- Héros -------------------------------------------------------- */

.heros {
  padding-block: clamp(3.25rem, 6.5vw, 5.5rem) clamp(4.5rem, 8vw, 7rem);
}
.heros__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  min-height: clamp(24rem, 56vh, 36rem);
}

.heros__titre {
  /* Pas de max-width : la colonne de grille borne la mesure, ce qui garde
     le titre sur deux lignes à toutes les largeurs de bureau. */
  padding-bottom: 0.1em;
  font-size: clamp(2.35rem, 6.4vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
}
.heros__titre em {
  font-style: italic;
  color: var(--ambre-encre);
}

.heros .actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.heros__chapo {
  max-width: 34ch;
  margin-top: clamp(1.4rem, 2.4vw, 1.9rem);
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.24rem);
  line-height: 1.68;
  color: var(--encre-douce);
}

/* Plaque d’adresse : l’artefact réel du produit, l’URL de la maquette. */
.plaque { margin: 0; }
.plaque__cadre {
  padding: 0.7rem;
  border: 1px solid var(--filet);
  background: linear-gradient(155deg, rgba(147, 160, 142, 0.14), rgba(246, 241, 230, 0.2));
  box-shadow: var(--ombre-douce);
}
.plaque__corps {
  padding: clamp(2.25rem, 4vw, 3.4rem) clamp(1.4rem, 2.6vw, 2.2rem);
  border: 1px solid var(--filet-sauge);
  background: var(--craie);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
}
.plaque__intitule {
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.plaque__adresse {
  margin-top: 1.1rem;
  font-family: var(--ui);
  font-size: clamp(1.02rem, 1.75vw, 1.34rem);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.4;
  word-break: break-word;
  color: var(--encre);
}
.plaque__slug {
  font-weight: 400;
  color: var(--encre-douce);
}
.plaque .filet-double { margin: 1.6rem auto; }
.plaque__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--encre-douce);
}

/* ---------- Trame de section --------------------------------------------- */

.section { padding-block: var(--air-section); }
.section--methode { border-top: 1px solid var(--filet-fin); }
.section--offre { background: linear-gradient(180deg, rgba(147, 160, 142, 0.07), rgba(147, 160, 142, 0)); }
.section--contact { padding-bottom: clamp(6rem, 12vw, 10rem); }

.section-tete { margin-bottom: clamp(3rem, 5.5vw, 4.75rem); }
.section-titre {
  max-width: 18ch;
  font-size: clamp(1.95rem, 3.9vw, 3.05rem);
  line-height: 1.12;
}
.section-chapo {
  max-width: 52ch;
  margin-top: 1.15rem;
  color: var(--encre-douce);
}

/* ---------- Étapes (rail segmenté, sans cartouche) ----------------------- */

.etapes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.25rem, 4.4vw, 4rem);
  counter-reset: etape;
}
.etape { padding-top: 1.5rem; border-top: 1px solid var(--filet-ambre); }
.etape__chiffre {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.2vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--ambre-encre);
}
.etape__titre {
  margin-top: 0.9rem;
  font-size: clamp(1.28rem, 1.9vw, 1.6rem);
  line-height: 1.25;
}
.etape__corps {
  margin-top: 0.7rem;
  max-width: 34ch;
  font-size: 0.99rem;
  color: var(--encre-douce);
}

/* ---------- Offre -------------------------------------------------------- */

.offre-grille {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2.25rem, 4.6vw, 4.25rem);
  align-items: start;
}

.prix-carte {
  padding: 0.7rem;
  border: 1px solid rgba(35, 42, 61, 0.5);
  background: var(--nuit);
  box-shadow: var(--ombre-douce);
}
.prix-carte__corps {
  padding: clamp(2.25rem, 3.6vw, 3rem) clamp(1.5rem, 2.8vw, 2.35rem);
  border: 1px solid rgba(188, 138, 52, 0.42);
  box-shadow: inset 0 1px 0 rgba(246, 241, 230, 0.12);
  text-align: center;
}
.prix-carte__intitule {
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sauge);
}

.prix {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.28em;
  margin-top: 0.85rem;
  font-family: var(--serif);
  /* Cormorant compose des chiffres elzéviriens par défaut : le zéro y prend
     la hauteur d’x et se lit « o ». Chiffres bâton pour toute donnée. */
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--ambre);
}
.prix__valeur { font-size: clamp(3.4rem, 7vw, 4.9rem); }
.prix__lien {
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--encre-claire-douce);
}
.prix__unite { font-size: clamp(2rem, 3.6vw, 2.7rem); }
.prix__periode {
  margin-top: 0.55rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.14rem;
  color: var(--encre-claire-douce);
}
.prix-carte .filet-double { margin: 1.9rem auto; }

.prix-faits {
  display: grid;
  gap: 0.05rem;
  text-align: left;
}
.prix-fait {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.72rem;
  border-bottom: 1px solid var(--filet-clair);
}
.prix-fait:last-child { border-bottom: 0; padding-bottom: 0; }
.prix-fait dt {
  font-family: var(--ui);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sauge);
}
.prix-fait dd {
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--encre-claire);
}

.liste-filets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem clamp(1.5rem, 3vw, 2.5rem);
}
.liste-filets li {
  position: relative;
  padding-top: 0.95rem;
  font-size: 1rem;
  line-height: 1.5;
}
.liste-filets li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1.35rem;
  height: 1px;
  background: var(--ambre);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.badge {
  padding: 0.62rem 1rem;
  border: 1px solid var(--filet-sauge);
  background: rgba(252, 250, 244, 0.7);
  font-family: var(--ui);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

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

.portfolio-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.portfolio-item { display: block; }
.portfolio-item__lien {
  display: block;
  text-decoration: none;
  transition: transform 0.6s var(--courbe);
}
.portfolio-item__lien:hover { transform: translateY(-4px); }

.portfolio-item__vue {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 1px solid var(--filet);
  background: var(--craie);
  box-shadow: var(--ombre-douce);
}
.portfolio-item__vue img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 1.1s var(--courbe);
}
.portfolio-item__lien:hover .portfolio-item__vue img { transform: scale(1.03); }

/* Vignette en attente : un passe-partout vide, pas une boîte grise.
   Même vocabulaire de cadre que le reste de la page. */
.portfolio-item--attente .portfolio-item__vue {
  background-color: var(--craie);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 11px,
    rgba(147, 160, 142, 0.16) 11px 12px
  );
  border-color: var(--filet-fin);
  box-shadow: none;
}
.portfolio-item--attente .portfolio-item__vue::after {
  content: "";
  position: absolute;
  inset: clamp(0.75rem, 2.2vw, 1.15rem);
  border: 1px solid var(--filet-sauge);
  background: rgba(252, 250, 244, 0.72);
}

.portfolio-item__pied {
  display: block;
  padding-top: 1.15rem;
}
.portfolio-item__nom {
  display: block;
  font-family: var(--serif);
  font-size: 1.34rem;
  line-height: 1.25;
  color: var(--encre);
}
.portfolio-item__vertical {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--encre-douce);
}
.portfolio-item__etat,
.portfolio-item__action {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.portfolio-item__etat { color: var(--ambre-encre); }
.portfolio-item__action {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--ambre);
  color: var(--encre);
}

/* ---------- Pour qui (bento 1 + 2) --------------------------------------- */

.publics-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: clamp(1.5rem, 2.8vw, 2.25rem);
}
.public--majeur { grid-row: span 2; }

.public {
  padding: 0.65rem;
  border: 1px solid var(--filet-fin);
  background: var(--craie);
  transition: transform 0.6s var(--courbe), box-shadow 0.6s var(--courbe);
}
.public:hover {
  transform: translateY(-3px);
  box-shadow: var(--ombre-douce);
}
.public__corps {
  height: 100%;
  padding: clamp(1.75rem, 3vw, 2.6rem);
  border: 1px solid var(--filet-fin);
  border-top: 1px solid var(--filet-sauge);
}
.public--majeur {
  background: linear-gradient(158deg, rgba(147, 160, 142, 0.2), rgba(147, 160, 142, 0.05) 62%, rgba(252, 250, 244, 0.6));
}
.public--majeur .public__corps {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--ambre);
}
.public--mairie { background: rgba(35, 42, 61, 0.05); }

.public__titre {
  font-size: clamp(1.32rem, 2.1vw, 1.72rem);
  line-height: 1.2;
}
.public--majeur .public__titre { font-size: clamp(1.55rem, 2.7vw, 2.15rem); }

.public__accroche {
  margin-top: 1.15rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  line-height: 1.3;
  color: var(--ambre-encre);
}
.public__corps-texte {
  margin-top: 1rem;
  max-width: 38ch;
  font-size: 0.99rem;
  color: var(--encre-douce);
}

/* ---------- Contact ------------------------------------------------------ */

.coupon {
  padding: 0.7rem;
  border: 1px solid var(--filet);
  background: linear-gradient(170deg, rgba(147, 160, 142, 0.13), rgba(246, 241, 230, 0.25));
  box-shadow: var(--ombre-douce);
}
.coupon__corps {
  padding: clamp(2.75rem, 6vw, 5rem) clamp(1.1rem, 5vw, 4.5rem);
  border: 1px solid var(--filet-sauge);
  background: var(--craie);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
}
.coupon__titre {
  max-width: 20ch;
  margin-inline: auto;
  font-size: clamp(1.85rem, 3.7vw, 2.9rem);
  line-height: 1.14;
}
.coupon__chapo {
  max-width: 48ch;
  margin: 1.15rem auto 0;
  color: var(--encre-douce);
}
.coupon__email {
  margin-top: clamp(1.85rem, 3vw, 2.5rem);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  word-break: break-word;
}
.coupon__email a {
  padding-bottom: 0.12em;
  border-bottom: 1px solid var(--filet-ambre);
  text-decoration: none;
  transition: border-color 0.5s var(--courbe), color 0.5s var(--courbe);
}
.coupon__email a:hover {
  border-bottom-color: var(--ambre);
  color: var(--ambre-encre);
}

/* ---------- Pied --------------------------------------------------------- */

.pied {
  padding-top: clamp(3rem, 5vw, 4.25rem);
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--filet);
  background: rgba(147, 160, 142, 0.07);
  font-size: 0.95rem;
}
.pied__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.pied__marque {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pied__colonne .etiquette { margin-bottom: 0.85rem; }
.pied__colonne p + p { margin-top: 0.45rem; }
.pied__colonne a {
  text-decoration: none;
  border-bottom: 1px solid var(--filet-ambre);
  padding-bottom: 0.1em;
  transition: border-color 0.5s var(--courbe);
}
.pied__colonne a:hover { border-bottom-color: var(--ambre); }
.pied__gris { color: var(--encre-douce); }

.pied__bas {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--filet-fin);
  font-family: var(--ui);
  font-size: 0.78rem;
  color: var(--encre-douce);
}

/* ---------- Page mentions légales ---------------------------------------- */

.legal { padding-block: clamp(3.5rem, 7vw, 6rem) var(--air-section); }
.legal__tete { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.legal__titre {
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  line-height: 1.12;
}
.legal__maj {
  margin-top: 0.9rem;
  font-family: var(--ui);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.legal__corps {
  display: grid;
  gap: clamp(2.25rem, 4vw, 3.25rem);
  max-width: 62ch;
}
.legal__bloc h2 {
  font-size: clamp(1.3rem, 2vw, 1.62rem);
  line-height: 1.25;
}
.legal__bloc h2 + * { margin-top: 0.85rem; }
.legal__bloc p + p { margin-top: 0.85rem; }
.legal__bloc a {
  text-decoration: none;
  border-bottom: 1px solid var(--filet-ambre);
  padding-bottom: 0.08em;
  transition: border-color 0.5s var(--courbe);
}
.legal__bloc a:hover { border-bottom-color: var(--ambre); }
/* Lora n’est chargée qu’en 400 : pas de gras synthétique. L’emphase se fait
   au surligneur ambre, ce qui signale aussi le champ restant à compléter. */
.legal__bloc strong {
  font-weight: 400;
  box-shadow: inset 0 -0.48em 0 rgba(188, 138, 52, 0.2);
}
.legal__note {
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--ambre);
  background: var(--craie);
  font-style: italic;
  color: var(--encre-douce);
}
.legal__retour { margin-top: clamp(3rem, 5vw, 4rem); }

/* ---------- Mouvement ----------------------------------------------------
   Deux gestes seulement, chacun motivé :
   1) entrée en cascade du héros, pour hiérarchiser la promesse ;
   2) révélation au défilement, pour révéler chaque section à son tour.
   Aucun JavaScript : timeline de défilement native, désactivée si
   `prefers-reduced-motion` ou si le navigateur ne la gère pas.
   ------------------------------------------------------------------------ */

@keyframes monte {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .heros__titre,
  .heros__chapo,
  .heros .actions,
  .plaque {
    animation: monte 0.95s var(--courbe) both;
  }
  .heros__titre { animation-delay: 0.05s; }
  .heros__chapo { animation-delay: 0.17s; }
  .heros .actions { animation-delay: 0.29s; }
  .plaque { animation-delay: 0.41s; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: monte linear both;
      animation-timeline: view();
      animation-range: entry 4% entry 62%;
    }
    .etape:nth-child(2) { animation-range: entry 1% entry 59%; }
    .etape:nth-child(3) { animation-range: entry -2% entry 56%; }
    .portfolio-item:nth-child(2) { animation-range: entry 1% entry 59%; }
    .portfolio-item:nth-child(3) { animation-range: entry -2% entry 56%; }
  }
}

/* ---------- Adaptations ---------------------------------------------------
   Repli explicite de chaque grille multi-colonnes.
   ------------------------------------------------------------------------ */

@media (max-width: 1000px) {
  .heros__grille {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 3.5rem);
    min-height: 0;
  }
  .heros__titre { max-width: 16ch; }
  .heros__chapo { max-width: 46ch; }
  .plaque { max-width: 30rem; }

  .offre-grille,
  .publics-grille {
    grid-template-columns: minmax(0, 1fr);
  }
  .public--majeur { grid-row: auto; }

  .pied__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pied__marque { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .etapes,
  .portfolio-grille {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 2.75rem);
  }
  .etape__corps,
  .public__corps-texte { max-width: 48ch; }
}

@media (max-width: 640px) {
  .entete__grille {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-block: 1.1rem 0;
  }
  .nav {
    width: 100%;
    gap: 1.1rem;
    padding-top: 0.9rem;
    padding-bottom: 0.85rem;
    border-top: 1px solid var(--filet-fin);
  }
  .nav a { font-size: 0.68rem; letter-spacing: 0.11em; }

  .heros__titre { max-width: none; }
  .heros__chapo { max-width: none; }
  .plaque { max-width: none; }

  .actions { gap: 0.7rem; }
  .btn { width: 100%; justify-content: space-between; }
  .btn--fantome { justify-content: center; }
  .btn__mot {
    padding: 1.05rem 1rem;
    font-size: 0.67rem;
    letter-spacing: 0.1em;
    white-space: normal;
    text-wrap: balance;
  }
  .btn--plein .btn__fleche { width: 2.6rem; }

  .liste-filets { grid-template-columns: minmax(0, 1fr); }

  .pied__grille { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 400px) {
  .btn__mot { letter-spacing: 0.1em; }
  .badge { font-size: 0.665rem; letter-spacing: 0.08em; }
}

/* ---------- Impression --------------------------------------------------- */

@media print {
  body::after, .nav, .actions { display: none; }
  body { background: #fff; }
}
