/* ==========================================================================
   Studio Nacre · Maxime Prigent, créateur de sites web
   Feuille de style commune — direction artistique « Pierre de Caen »

   Sommaire
     1. Variables (couleurs, typographie, espacements)
     2. Base
     3. Mise en page
     4. En-tête et navigation
     5. Boutons et liens
     6. Accueil : accroche et vitrine
     7. Cadres de navigateur et de téléphone
     8. Cartes, engagements, étapes
     9. Bloc « maquette offerte » et appel final
    10. Pages intérieures
    11. Questions fréquentes
    12. Réalisations, étude de cas, avis
    13. À propos et contact
    14. Texte long, pages de message (merci, 404)
    15. Pied de page
    16. Animations, transitions de page, mouvement réduit
    17. Impression
   ========================================================================== */


/* 1. VARIABLES
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Couleurs — mode clair */
  --fond: #F6F1E7;            /* pierre blonde : fond général */
  --surface: #FFFCF6;         /* crème : cartes, champs de formulaire */
  --bandeau: #ECE4D4;         /* pierre soutenue : bandeaux, socles */
  --texte: #231E19;           /* encre brune */
  --texte-doux: #675C50;      /* texte secondaire */
  --accent: #23513F;          /* vert devanture : boutons, liens d’action */
  --accent-survol: #1A3F31;
  --sur-accent: #FFFCF6;      /* texte posé sur le vert */
  --relief: #A8492A;          /* terre cuite : surtitres, mots en italique */
  --filet: rgb(35 30 25 / .13);   /* filets et bordures discrètes */
  --contour: #8A7F72;         /* contour des champs de formulaire */
  --erreur: #A3261B;
  --vert-bandeau: #23513F;    /* fond du bloc « maquette offerte » */
  --sur-vert: #FFFCF6;
  --sur-vert-doux: #D9E6DC;
  --pied-fond: #1E1A16;       /* pied de page */
  --pied-texte: #F2EBDF;
  --pied-doux: #B9AE9F;
  --coque: #1B1714;           /* coque du téléphone dessiné */
  --ombre-teinte: 74 56 34;   /* les ombres sont brunes, jamais grises */
  --ombre-bouton: 35 81 63;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231E19' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

  /* Ombres : toujours en deux ou trois couches, pour la profondeur */
  --ombre-carte: 0 1px 2px rgb(var(--ombre-teinte) / .06), 0 10px 24px -12px rgb(var(--ombre-teinte) / .18);
  --ombre-carte-survol: 0 2px 4px rgb(var(--ombre-teinte) / .06), 0 26px 44px -18px rgb(var(--ombre-teinte) / .3);
  --ombre-cadre: 0 1px 2px rgb(var(--ombre-teinte) / .1), 0 14px 28px -10px rgb(var(--ombre-teinte) / .2), 0 46px 80px -32px rgb(var(--ombre-teinte) / .45);

  /* Typographie */
  --police-titres: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --police-texte: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --t-petit: .875rem;
  --t-corps: 1.0625rem;
  --t-chapeau: clamp(1.125rem, 1.06rem + .35vw, 1.3125rem);
  --t-h3: clamp(1.3125rem, 1.22rem + .45vw, 1.5625rem);
  --t-h2: clamp(1.875rem, 1.42rem + 2.1vw, 3rem);
  --t-h1: clamp(2.25rem, 1.55rem + 3.4vw, 4rem);
  --t-hero: clamp(2rem, 1.2rem + 3.7vw, 3.875rem);

  /* Espacements et formes */
  --largeur: 75rem;
  --marge: clamp(1.25rem, 5vw, 2.5rem);
  --section: clamp(4rem, 2.4rem + 7vw, 7.5rem);
  --rayon: 1.25rem;
  --rayon-grand: 2rem;
  --arche: 999px 999px .625rem .625rem;   /* forme d’arche, signature du site */
  --courbe: cubic-bezier(.22, .8, .24, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #181512;
    --surface: #27221D;
    --bandeau: #1F1B17;
    --texte: #F2EBDF;
    --texte-doux: #B5AA9B;
    --accent: #8CCBAE;
    --accent-survol: #A8DBC4;
    --sur-accent: #12211A;
    --relief: #E59A73;
    --filet: rgb(242 235 223 / .14);
    --contour: #8F8576;
    --erreur: #F2A99F;
    --vert-bandeau: #1E4737;
    --sur-vert: #F2EBDF;
    --sur-vert-doux: #C9DBCF;
    --pied-fond: #100E0C;
    --coque: #0D0B09;
    --ombre-teinte: 0 0 0;
    --ombre-bouton: 0 0 0;
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2EBDF' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  }
}


/* 2. BASE
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: var(--t-corps);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--police-titres);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.018em;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1);
  line-height: 1.04;
  letter-spacing: -.026em;
}

h2 {
  font-size: var(--t-h2);
  line-height: 1.08;
  letter-spacing: -.022em;
}

h3 {
  font-size: var(--t-h3);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -.012em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

/* Listes (« :where » garde une priorité nulle : les composants peuvent
   ensuite régler leurs marges librement) */
:where(ul, ol) {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

/* Listes sans puces */
:where(ul[role="list"], ol[role="list"]) {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

strong {
  font-weight: 600;
}

address {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: 6rem;
}

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

::selection {
  background: var(--accent);
  color: var(--sur-accent);
}

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Lien « Aller au contenu » : visible seulement au clavier */
.lien-evitement {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  border-radius: 0 0 .75rem .75rem;
  background: var(--texte);
  color: var(--fond);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform .2s;
}

.lien-evitement:focus {
  transform: none;
}

/* Icônes au trait : même épaisseur partout */
.icone {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* 3. MISE EN PAGE
   ========================================================================== */

.conteneur {
  width: min(100% - 2 * var(--marge), var(--largeur));
  margin-inline: auto;
}

.conteneur--etroit {
  --largeur: 46rem;
}

.section {
  padding-block: var(--section);
}

.section--bandeau {
  background: var(--bandeau);
}

.section--collee {
  padding-top: 0;
}

/* Après un bandeau visible, une section « collée » retrouve son espace */
.section--bandeau:not([hidden]) + .section--collee {
  padding-top: var(--section);
}

.titre-discret {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
}

.section__entete {
  max-width: 44rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
}

.section__entete--centre {
  margin-inline: auto;
  text-align: center;
}

.section__suite {
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* Petite mention au-dessus d’un titre */
.surtitre {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.125rem;
  color: var(--relief);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.surtitre::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

.surtitre--centre {
  justify-content: center;
}

.surtitre--centre::after {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

/* Paragraphe d’introduction */
.chapeau {
  max-width: 40em;
  color: var(--texte-doux);
  font-size: var(--t-chapeau);
  line-height: 1.55;
}

h1 + .chapeau,
h2 + .chapeau {
  margin-top: 1.375rem;
}

.section__entete--centre .chapeau {
  margin-inline: auto;
}

/* Deux colonnes : un titre fixe à gauche, le contenu à droite */
.duo {
  display: grid;
  gap: clamp(2.25rem, 5vw, 5rem);
}

.duo__fixe > .lien-fleche {
  margin-top: 1.75rem;
}

@media (min-width: 60rem) {
  .duo {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .duo__fixe {
    position: sticky;
    top: 7rem;
  }
}


/* 4. EN-TÊTE ET NAVIGATION
   ========================================================================== */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--fond);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .entete {
    background: color-mix(in srgb, var(--fond) 84%, transparent);
    -webkit-backdrop-filter: saturate(1.5) blur(16px);
    backdrop-filter: saturate(1.5) blur(16px);
  }
}

.entete.est-defilee {
  border-bottom-color: var(--filet);
}

.entete__barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 .75rem;
  min-height: 4.25rem;
}

.entete__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Logo : sigle en forme d’arche + nom */
.marque {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-height: 2.75rem;
  color: var(--texte);
  text-decoration: none;
}

.marque__sigle {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 2.375rem;
  height: 2.625rem;
  padding-top: .1875rem;
  border-radius: 999px 999px .5rem .5rem;
  background: var(--accent);
  color: var(--sur-accent);
  font: 500 .9375rem/1 var(--police-titres);
  letter-spacing: .02em;
}

/* Reflet nacré : un éclat de lumière en haut de l’arche, à peine irisé
   (rose, bleu, vert d’eau très pâles), comme sur l’intérieur d’une coquille */
.marque__sigle::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(80% 55% at 30% 6%, rgb(255 255 255 / .4), transparent 72%),
    linear-gradient(145deg, rgb(255 196 228 / .5) 8%, rgb(190 216 255 / .38) 42%, rgb(196 246 224 / .24) 66%, transparent 88%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.marque__nom {
  display: none;
  font: 450 1.1875rem/1 var(--police-titres);
  letter-spacing: -.012em;
  white-space: nowrap;
}

/* Le nom s’affiche dès que la barre a la place de le loger sur une ligne */
@media (min-width: 34rem) {
  .marque__nom {
    display: block;
  }
}

/* Navigation : sans JavaScript, simple liste sous la barre */
.nav {
  order: 3;
  flex: 1 0 100%;
  padding-bottom: 1rem;
}

.nav__lien {
  display: flex;
  align-items: center;
  min-height: 3rem;
  color: var(--texte);
  text-decoration: none;
}

.nav__pied {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.nav__tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 3rem;
  font-weight: 600;
  text-decoration: none;
}

.nav__tel .icone {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
}

.bouton-menu {
  display: none;
  align-items: center;
  gap: .375rem;
  min-height: 2.75rem;
  padding: 0 .375rem 0 .25rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--texte);
  font: 600 .9375rem/1 var(--police-texte);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bouton-menu__trait {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .35s var(--courbe);
}

.bouton-menu[aria-expanded="true"] .bouton-menu__trait:first-child {
  transform: translateY(4px) rotate(45deg);
}

.bouton-menu[aria-expanded="true"] .bouton-menu__trait:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Petits écrans, avec JavaScript : menu déroulant sous la barre */
@media (max-width: 71.99rem) {
  .js .bouton-menu {
    display: inline-flex;
  }

  .js .nav {
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100vh - 4.25rem);
    max-height: calc(100dvh - 4.25rem);
    padding: .5rem var(--marge) 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid var(--filet);
    background: var(--fond);
    box-shadow: 0 32px 40px -24px rgb(var(--ombre-teinte) / .35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-.5rem);
  }

  /* La transition n’existe qu’une fois le menu utilisé : rien ne clignote
     quand la fenêtre passe d’une grande à une petite largeur */
  .js .entete[data-menu] .nav {
    transition: opacity .25s, transform .35s var(--courbe), visibility 0s .35s;
  }

  .js .entete[data-menu="ouvert"] .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .js .nav__lien {
    justify-content: space-between;
    min-height: 3.5rem;
    border-bottom: 1px solid var(--filet);
    font: 450 1.375rem/1.2 var(--police-titres);
    letter-spacing: -.012em;
  }

  .nav__lien[aria-current] {
    color: var(--relief);
  }

  .menu-ouvert {
    overflow: hidden;
  }
}

/* Très petits écrans (moins de 360 px de large) : le bouton de menu se réduit
   à son icône, pour que la barre tienne toujours sur une seule ligne.
   Le mot « Menu » reste lu par les lecteurs d’écran. */
@media (max-width: 22.49rem) {
  .bouton-menu {
    position: relative;
    justify-content: center;
    width: 2.75rem;
    padding: 0;
  }

  .bouton-menu span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Écrans de moins de 320 px (téléphones pliants fermés, par exemple) */
@media (max-width: 19.99rem) {
  :root {
    --marge: 1rem;
  }

  /* Au plus serré (280 px, même avec une barre de défilement classique),
     le sigle, le bouton et le menu tiennent encore sur une seule ligne */
  .entete__barre {
    gap: 0 .25rem;
  }

  .entete__actions {
    gap: .25rem;
  }

  .entete__actions .bouton {
    padding-inline: .625rem;
    font-size: .875rem;
  }
}

/* Grands écrans : menu en ligne */
@media (min-width: 72rem) {
  .entete__barre {
    flex-wrap: nowrap;
    gap: 1.5rem;
  }

  .nav {
    order: 0;
    flex: 0 1 auto;
    padding: 0;
  }

  .nav__liste {
    display: flex;
    align-items: center;
    gap: clamp(.875rem, 1.25vw, 1.25rem);
  }

  .nav__mobile {
    display: none;
  }

  .nav__lien {
    min-height: 2.75rem;
    background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - .5rem) / 0% 1.5px;
    font-size: .9375rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background-size .4s var(--courbe);
  }

  .nav__lien:hover,
  .nav__lien[aria-current] {
    background-size: 100% 1.5px;
  }

  .nav__lien[aria-current] {
    background-image: linear-gradient(var(--relief), var(--relief));
  }
}


/* 5. BOUTONS ET LIENS
   ========================================================================== */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 3.25rem;
  padding: .75rem 1.625rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--police-texte);
  text-align: center;
  text-wrap: balance;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .25s, border-color .25s, color .25s, box-shadow .3s, transform .25s var(--courbe);
}

/* Sur téléphone, un peu moins de marge intérieure :
   les libellés longs tiennent sur une seule ligne */
@media (max-width: 35.99rem) {
  .bouton {
    gap: .5rem;
    padding-inline: 1rem;
  }
}

.bouton .icone {
  width: 1.125rem;
  height: 1.125rem;
  stroke-width: 1.75;
}

.bouton__fleche {
  transition: transform .4s var(--courbe);
}

.bouton:hover .bouton__fleche {
  transform: translateX(4px);
}

.bouton:active {
  transform: scale(.98);
}

.bouton--principal {
  background: var(--accent);
  color: var(--sur-accent);
  box-shadow: 0 1px 2px rgb(var(--ombre-bouton) / .3), 0 10px 22px -10px rgb(var(--ombre-bouton) / .55);
}

.bouton--principal:hover {
  background: var(--accent-survol);
  box-shadow: 0 1px 2px rgb(var(--ombre-bouton) / .3), 0 16px 28px -12px rgb(var(--ombre-bouton) / .6);
}

.bouton--secondaire {
  border-color: color-mix(in srgb, var(--texte) 32%, transparent);
  color: var(--texte);
}

.bouton--secondaire:hover {
  border-color: var(--texte);
  background: var(--texte);
  color: var(--fond);
}

/* Bouton clair, posé sur le bandeau vert */
.bouton--clair {
  background: var(--sur-vert);
  color: var(--vert-bandeau);
}

.bouton--clair:hover {
  background: #fff;
}

.bouton--compact {
  min-height: 2.75rem;
  padding: .5rem 1rem;
  white-space: nowrap;
  font-size: .9375rem;
}

.bouton--compact[aria-current] {
  box-shadow: 0 0 0 2px var(--fond), 0 0 0 3.5px var(--relief);
}

.bouton__long {
  display: none;
}

@media (min-width: 80rem) {
  .bouton__court {
    display: none;
  }

  .bouton__long {
    display: inline;
  }
}

/* Lien suivi d’une flèche */
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - .5rem) / 100% 1px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: background-size .45s var(--courbe);
}

.lien-fleche .icone {
  width: 1.125rem;
  height: 1.125rem;
  stroke-width: 1.75;
  transition: transform .4s var(--courbe);
}

a.lien-fleche:hover .icone,
.carte--lien:hover .lien-fleche .icone,
.projet:hover .lien-fleche .icone {
  transform: translateX(4px);
}

a.lien-fleche:hover {
  background-position: 100% calc(100% - .5rem);
  background-size: 0% 1px;
}

/* Lien dans un texte : soulignement terre cuite */
.lien,
.prose a {
  text-decoration: underline;
  text-decoration-color: var(--relief);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .22em;
  transition: color .2s, text-decoration-color .2s;
}

.lien:hover,
.prose a:hover {
  color: var(--relief);
}


/* 6. ACCUEIL : ACCROCHE ET VITRINE
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(2.5rem, 1.4rem + 5.5vw, 5.75rem) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

/* Halo crème très doux derrière l’accroche */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 130%;
  background: radial-gradient(58% 60% at 50% 0%, var(--surface), transparent 72%);
  pointer-events: none;
}

.hero__titre {
  max-width: 17.5em;
  margin-inline: auto;
  font-size: var(--t-hero);
  line-height: 1.06;
}

.hero__titre em {
  color: var(--relief);
  font-style: italic;
}

.hero__texte {
  max-width: 37em;
  margin: 1.625rem auto 0;
  color: var(--texte-doux);
  font-size: var(--t-chapeau);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .875rem;
  margin-top: 2.25rem;
}

.hero__rassurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.75rem;
  margin-top: 1.625rem;
  color: var(--texte-doux);
  font-size: .9375rem;
}

.hero__rassurance li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.hero__rassurance .icone {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--accent);
  stroke-width: 2;
}

@media (max-width: 35.99rem) {
  /* Sur téléphone, le surtitre passe sur deux lignes : sans filets */
  .hero .surtitre::before,
  .hero .surtitre::after {
    content: none;
  }

  .hero__actions .bouton {
    width: 100%;
  }

  .hero__rassurance {
    flex-direction: column;
    align-items: center;
  }
}

/* Vitrine : la réalisation posée sur un socle de pierre,
   l’ordinateur au centre et le téléphone qui chevauche le coin */
.vitrine {
  position: relative;
  width: 100%;
  max-width: 66rem;
  margin-inline: auto;
  padding: 0 min(5.5%, 4.5rem) clamp(2.75rem, 6%, 4rem);
}

.vitrine__socle {
  position: absolute;
  inset: 24% 0 0;
  border-radius: var(--rayon-grand);
  background: var(--bandeau);
}

/* Sur un bandeau, le socle s’éclaircit pour rester visible */
.section--bandeau .vitrine__socle {
  background: var(--fond);
}

.vitrine__ordinateur {
  position: relative;
}

.vitrine__telephone {
  position: absolute;
  right: min(2.5%, 2.5rem);
  bottom: clamp(.75rem, 1.6vw, 1.5rem);
  width: clamp(4.75rem, 20%, 13rem);
}

/* Légende sous la vitrine */
.une {
  display: grid;
  gap: 1rem 4rem;
  margin-top: clamp(2rem, 4.5vw, 3.5rem);
}

.une h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.5vw, 2.5rem);
}

.une p:not(.surtitre) {
  color: var(--texte-doux);
}

@media (min-width: 52rem) {
  .une {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: end;
  }
}


/* 7. CADRES DE NAVIGATEUR ET DE TÉLÉPHONE (dessinés en CSS)
   ========================================================================== */

/* Les dimensions internes des cadres sont proportionnelles à leur largeur
   (unités « cqw »), pour rester justes à toutes les tailles. */
.navigateur {
  position: relative;
  container-type: inline-size;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(.625rem, 1.3vw, 1rem);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--filet), var(--ombre-cadre);
}

.navigateur__barre {
  display: flex;
  align-items: center;
  gap: .75rem;
  height: 2rem;
  height: clamp(1.5rem, 4.4cqw, 2.5rem);
  padding-inline: .75rem;
  padding-inline: clamp(.625rem, 1.8cqw, 1rem);
  border-bottom: 1px solid var(--filet);
}

.navigateur__barre::after {
  content: "";
  flex: none;
  width: 2rem;
}

.navigateur__points {
  display: flex;
  flex: none;
  gap: .3125rem;
  width: 2rem;
}

.navigateur__points i {
  width: .4375rem;
  height: .4375rem;
  border-radius: 50%;
  background: var(--bandeau);
  box-shadow: inset 0 0 0 1px var(--filet);
}

.navigateur__adresse {
  display: grid;
  flex: 0 1 19rem;
  place-items: center;
  height: 64%;
  margin-inline: auto;
  padding-inline: .75rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--fond);
  color: var(--texte-doux);
  font-size: .6875rem;
  font-size: clamp(.625rem, 1.4cqw, .75rem);
  line-height: 1;
  white-space: nowrap;
}

.telephone {
  display: grid;
  container-type: inline-size;
  margin: 0;
  border-radius: 1.75rem;
  border-radius: 14% / 6.71%;
  background: var(--coque);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14), 0 0 0 1px rgb(0 0 0 / .3), var(--ombre-cadre);
}

.telephone .ecran {
  aspect-ratio: 9 / 19.5;
  margin: .375rem;
  margin: 3.4cqw;
  border-radius: 1.25rem;
  border-radius: 10.6cqw;
}

/* Encoche */
.telephone .ecran::after {
  content: "";
  position: absolute;
  top: 2.3%;
  left: 50%;
  z-index: 2;
  width: 30%;
  height: 3.3%;
  border-radius: 999px;
  background: var(--coque);
  transform: translateX(-50%);
}

/* Écran : fond neutre tant que la capture n’est pas chargée (ou absente) */
.ecran {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 18% 0%, var(--surface), transparent 70%),
    linear-gradient(165deg, var(--bandeau), var(--fond)) var(--bandeau);
}

.ecran > img,
.ecran > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ecran > img {
  object-fit: cover;
  object-position: top center;
  color: transparent;
}

.ecran__nom {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8%;
  color: var(--texte-doux);
  font: italic 400 1.25rem/1.1 var(--police-titres);
  font-size: clamp(.75rem, 9cqw, 3.5rem);
  letter-spacing: -.02em;
  text-align: center;
}

/* Écrans schématiques (pages métiers) */
.schema .s-fond { fill: var(--surface); }
.schema .s-bloc { fill: var(--bandeau); }
.schema .s-ligne { fill: var(--texte); opacity: .16; }
.schema .s-accent { fill: var(--accent); }
.schema .s-accent-doux { fill: var(--accent); opacity: .16; }
.schema .s-relief { fill: var(--relief); }
.schema .s-contour { fill: none; stroke: var(--texte); stroke-opacity: .3; stroke-width: 1; }
.schema .s-pointilles { fill: none; stroke: var(--texte); stroke-opacity: .35; stroke-width: 1; stroke-dasharray: 1 3; stroke-linecap: round; }
.schema .s-tirets { fill: none; stroke: var(--texte); stroke-opacity: .4; stroke-width: 1; stroke-dasharray: 4 3; }
.schema .s-trait { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.schema .s-trait-clair { fill: none; stroke: var(--sur-accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.schema text { fill: var(--texte); font-family: var(--police-texte); }
.schema .s-titre { font-family: var(--police-titres); letter-spacing: -.01em; }
.schema .s-doux { fill: var(--texte-doux); }
.schema .s-etiquette { fill: var(--relief); font-weight: 600; letter-spacing: .08em; }
.schema .s-sur-accent { fill: var(--sur-accent); font-weight: 600; }


/* 8. CARTES, ENGAGEMENTS, ÉTAPES
   ========================================================================== */

.cartes {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

@media (min-width: 40rem) {
  .cartes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cartes--3 > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 62rem) {
  .cartes--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cartes--3 > :last-child:nth-child(odd) {
    grid-column: auto;
  }

}

@media (min-width: 76rem) {
  .cartes--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.carte {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre-carte);
  transition: transform .5s var(--courbe), box-shadow .5s var(--courbe);
}

.carte__icone {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.625rem;
  margin-bottom: .625rem;
  padding-top: .25rem;
  border-radius: var(--arche);
  background: var(--bandeau);
  color: var(--accent);
}

.carte__titre a {
  text-decoration: none;
}

/* Toute la carte est cliquable */
.carte__titre a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.carte__texte {
  margin: 0;
  color: var(--texte-doux);
}

.carte .lien-fleche {
  align-self: flex-start;
  margin-top: auto;
}

@media (hover: hover) {
  .carte--lien:hover {
    box-shadow: var(--ombre-carte-survol);
    transform: translateY(-4px);
  }
}

.carte--lien:focus-within {
  box-shadow: var(--ombre-carte-survol);
}

/* Engagements : liste éditoriale numérotée */
.engagement {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--filet);
}

.engagement:last-child {
  border-bottom: 1px solid var(--filet);
}

.engagement__numero {
  padding-top: .125rem;
  color: var(--relief);
  font: italic 400 1.3125rem/1.25 var(--police-titres);
}

.engagement p {
  margin: .5rem 0 0;
  color: var(--texte-doux);
}

/* Étapes : frise verticale sur téléphone, horizontale sur grand écran */
.etape {
  position: relative;
  padding: .25rem 0 2.25rem 4.25rem;
}

.etape:last-child {
  padding-bottom: 0;
}

.etape__numero {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--filet);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  font: 500 1.125rem/1 var(--police-titres);
}

.etape:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 2.75rem;
  bottom: 0;
  left: calc(1.375rem - .5px);
  width: 1px;
  background: var(--filet);
}

.etape__titre {
  font-size: clamp(1.1875rem, 1.12rem + .3vw, 1.375rem);
}

.etape p {
  margin: .5rem 0 0;
  color: var(--texte-doux);
}

@media (min-width: 62rem) {
  .etapes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .etape {
    padding: 4.25rem 0 0;
  }

  .etape:not(:last-child)::before {
    top: calc(1.375rem - .5px);
    right: -2.5rem;
    bottom: auto;
    left: 2.75rem;
    width: auto;
    height: 1px;
  }
}


/* 9. BLOC « MAQUETTE OFFERTE » ET APPEL FINAL
   ========================================================================== */

.offre {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding: clamp(2rem, 6vw, 5rem);
  overflow: hidden;
  border-radius: var(--rayon-grand);
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(255 252 246 / .1), transparent 60%),
    var(--vert-bandeau);
  color: var(--sur-vert);
}

.offre .surtitre {
  color: var(--sur-vert-doux);
}

.offre h2 {
  max-width: 13em;
}

.offre__texte > p:not(.surtitre) {
  max-width: 34em;
  margin-top: 1.375rem;
  color: var(--sur-vert-doux);
  font-size: var(--t-chapeau);
  line-height: 1.55;
}

.offre__points {
  display: grid;
  gap: .625rem;
  margin-top: 1.75rem;
}

.offre__points li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
}

.offre__points .icone {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .2rem;
  stroke-width: 2;
}

.offre .bouton {
  margin-top: 2.25rem;
}

.offre :focus-visible {
  outline-color: var(--sur-vert);
}

/* Esquisse de maquette, tracée au trait */
.esquisse {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
  fill: none;
  stroke: var(--sur-vert);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .8;
}

.esquisse .e-plein {
  fill: var(--sur-vert);
  fill-opacity: .14;
}

.esquisse .e-fin {
  stroke-opacity: .55;
}

@media (min-width: 56rem) {
  .offre {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 4rem;
  }
}

/* Appel final : fond pierre, bord supérieur en arche très douce */
.appel {
  border-radius: 50% 50% 0 0 / clamp(1.5rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 4.5rem) 0 0;
  background: var(--bandeau);
  text-align: center;
}

.appel .chapeau {
  margin-inline: auto;
}

.appel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .875rem;
  margin-top: 2.25rem;
}

.appel__note {
  margin-top: 1.625rem;
  color: var(--texte-doux);
  font-size: .9375rem;
}

@media (max-width: 35.99rem) {
  .appel__actions .bouton {
    width: 100%;
  }
}


/* 10. PAGES INTÉRIEURES
   ========================================================================== */

.entete-page {
  padding-block: clamp(1.75rem, 1rem + 4vw, 4rem) clamp(2.75rem, 6vw, 5rem);
}

.entete-page h1 {
  max-width: 15.5em;
}

.entete-page h1 em {
  color: var(--relief);
  font-style: italic;
}

.entete-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-top: 2.25rem;
}

@media (max-width: 35.99rem) {
  .entete-page__actions .bouton {
    width: 100%;
  }
}

/* Fil d’Ariane */
.fil {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--texte-doux);
  font-size: var(--t-petit);
}

.fil ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fil li {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 2rem;
}

.fil li + li::before {
  content: "/";
  opacity: .55;
}

.fil a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  text-decoration: none;
}

.fil a:hover {
  color: var(--texte);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.fil [aria-current] {
  color: var(--texte);
}

/* En-tête de page métier : texte + aperçu dans une arche */
.entete-page__grille {
  display: grid;
  gap: 3rem;
}

@media (min-width: 62rem) {
  .entete-page__grille {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: center;
    gap: clamp(3rem, 6vw, 6rem);
  }
}

.entete-page--metier h1 {
  max-width: none;
  font-size: clamp(2rem, 1.4rem + 2.7vw, 3.125rem);
  line-height: 1.07;
}

.apercu {
  width: min(100%, 17.5rem);
  margin-inline: auto;
  padding: 2.5rem 2.5rem 0;
  overflow: hidden;
  border-radius: 999px 999px var(--rayon) var(--rayon);
  background: var(--bandeau);
}

@media (min-width: 62rem) {
  .apercu {
    width: min(100%, 21rem);
    padding: 3rem 3rem 0;
  }
}

.apercu .telephone {
  margin-bottom: -22%;
}

/* Constats : les difficultés du métier */
.constats {
  display: grid;
}

.constat {
  padding-block: 1.75rem;
  border-top: 1px solid var(--filet);
}

.constat__numero {
  display: block;
  margin-bottom: .875rem;
  color: var(--relief);
  font: italic 400 1.3125rem/1 var(--police-titres);
}

.constat p {
  margin: .625rem 0 0;
  color: var(--texte-doux);
}

@media (min-width: 56rem) {
  .constats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .constat {
    padding-bottom: 0;
  }
}

/* Apports : ce que le site change */
.apports {
  display: grid;
  gap: 2rem 3.5rem;
}

.apport {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 1rem;
}

.apport .icone {
  grid-row: span 2;
  margin-top: .25rem;
  color: var(--accent);
}

.apport h3 {
  font-size: clamp(1.1875rem, 1.12rem + .3vw, 1.375rem);
}

.apport p {
  grid-column: 2;
  margin: .5rem 0 0;
  color: var(--texte-doux);
}

@media (min-width: 48rem) {
  .apports {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Encadré de franchise */
.note {
  max-width: 54rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border: 1px solid var(--filet);
  border-radius: var(--rayon-grand);
  background: var(--surface);
  box-shadow: var(--ombre-carte);
}

.note__texte {
  font: 400 clamp(1.25rem, 1.08rem + .9vw, 1.75rem)/1.35 var(--police-titres);
  letter-spacing: -.014em;
  text-wrap: balance;
}

.note__suite {
  margin-top: 1.25rem;
  color: var(--texte-doux);
}

/* Liens vers les autres métiers */
.autres {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 40rem) {
  .autres {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .autres--3 > :last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 68rem) {
  .autres--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .autres--3 > :last-child {
    grid-column: auto;
  }
}

.autres__lien {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  font: 450 1.25rem/1.2 var(--police-titres);
  text-decoration: none;
  transition: background-color .3s, border-color .3s;
}

.autres__lien .icone {
  color: var(--accent);
  transition: transform .4s var(--courbe);
}

.autres__lien:hover {
  border-color: transparent;
  background: var(--surface);
}

.autres__lien:hover .icone {
  transform: translateX(4px);
}

/* Démarche détaillée (page Méthode) */
.demarche__etape {
  display: grid;
  gap: 1rem 3rem;
  padding-block: clamp(2rem, 4.5vw, 3.5rem);
  border-top: 1px solid var(--filet);
}

.demarche__etape:last-child {
  border-bottom: 1px solid var(--filet);
}

.demarche__numero {
  color: var(--relief);
  font: italic 400 clamp(2.5rem, 2rem + 2.5vw, 4rem)/1 var(--police-titres);
}

.demarche__etape h3 {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
  font-weight: 400;
  letter-spacing: -.02em;
}

.demarche__etape p {
  max-width: 38em;
  color: var(--texte-doux);
}

.demarche__etape h3 + p {
  margin-top: 1rem;
}

.demarche__etape .demarche__repere {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  margin-top: 1.25rem;
  padding: .5rem 1rem .5rem .75rem;
  border-radius: 1.25rem;
  background: var(--bandeau);
  color: var(--texte);
  font-size: .9375rem;
  font-weight: 500;
}

.demarche__repere .icone {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--accent);
  stroke-width: 2;
}

@media (min-width: 52rem) {
  .demarche__etape {
    grid-template-columns: 8rem minmax(0, 1fr);
  }
}


/* 11. QUESTIONS FRÉQUENTES
   ========================================================================== */

.faq {
  border-bottom: 1px solid var(--filet);
}

.faq__item {
  border-top: 1px solid var(--filet);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  font: 450 clamp(1.125rem, 1.06rem + .4vw, 1.3125rem)/1.3 var(--police-titres);
  letter-spacing: -.012em;
  list-style: none;
  cursor: pointer;
  transition: color .2s;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--accent);
}

.faq__signe {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--filet);
  border-radius: 50%;
  color: var(--accent);
  transition: transform .45s var(--courbe), background-color .3s, color .3s, border-color .3s;
}

.faq__signe .icone {
  width: 1.125rem;
  height: 1.125rem;
  stroke-width: 1.75;
}

.faq__item[open] .faq__signe {
  border-color: transparent;
  background: var(--accent);
  color: var(--sur-accent);
  transform: rotate(45deg);
}

.faq__reponse {
  max-width: 44rem;
  padding: 0 3.25rem 1.5rem 0;
  color: var(--texte-doux);
}


/* 12. RÉALISATIONS, ÉTUDE DE CAS, AVIS
   ========================================================================== */

/* Autant de colonnes que la largeur le permet (trois au maximum sur grand
   écran) ; avec peu de projets, les cartes s’élargissent d’elles-mêmes. */
.projets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.projet {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre-carte);
  transition: transform .5s var(--courbe), box-shadow .5s var(--courbe);
}

.projet__visuel {
  padding: 1.5rem 1.5rem 0;
  overflow: hidden;
  background: var(--bandeau);
}

.projet__visuel .navigateur {
  border-radius: .75rem .75rem 0 0;
  box-shadow: 0 0 0 1px var(--filet), 0 18px 30px -14px rgb(var(--ombre-teinte) / .4);
  transition: transform .6s var(--courbe);
}

.projet__corps {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .5rem;
  padding: 1.5rem;
}

.projet__meta {
  margin: 0;
  color: var(--relief);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.projet__titre {
  font-size: clamp(1.5rem, 1.35rem + .8vw, 1.875rem);
}

.projet__titre a {
  text-decoration: none;
}

.projet__titre a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.projet__resume {
  margin: 0;
  color: var(--texte-doux);
}

.projet .lien-fleche {
  align-self: flex-start;
  margin-top: auto;
  padding-top: .25rem;
}

@media (hover: hover) {
  .projet:not(.projet--invitation):hover {
    box-shadow: var(--ombre-carte-survol);
    transform: translateY(-4px);
  }

  .projet:hover .navigateur {
    transform: translateY(-.375rem);
  }
}

/* Carte d’invitation : « et si le prochain était le vôtre ? » */
.projet--invitation {
  justify-content: center;
  gap: 1rem;
  min-height: 20rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-style: dashed;
  border-color: color-mix(in srgb, var(--texte) 30%, transparent);
  background: none;
  box-shadow: none;
}

.projet--invitation h2 {
  font-size: clamp(1.5rem, 1.35rem + .8vw, 1.875rem);
}

.projet--invitation p:not(.surtitre) {
  color: var(--texte-doux);
}

.projet--invitation .bouton {
  align-self: flex-start;
  margin-top: .5rem;
}

/* Exemple de réalisation (pages métiers) */
.exemple {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.exemple__texte h3 {
  font-size: clamp(1.75rem, 1.45rem + 1.4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -.02em;
}

.exemple__texte p:not(.projet__meta) {
  margin-top: 1rem;
  color: var(--texte-doux);
}

.exemple__texte .projet__meta {
  margin-bottom: .75rem;
}

.exemple__texte .lien-fleche {
  margin-top: 1.25rem;
}

@media (min-width: 62rem) {
  .exemple {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 4rem;
  }
}

/* Étude de cas */
.fiche {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 1.5rem 2rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--filet);
}

.fiche dt {
  color: var(--texte-doux);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fiche dd {
  margin: .375rem 0 0;
  font: 450 1.1875rem/1.25 var(--police-titres);
}

.recit__bloc {
  display: grid;
  gap: 1rem 3rem;
  padding-block: clamp(1.75rem, 4vw, 3rem);
  border-top: 1px solid var(--filet);
}

.recit__bloc h2 {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
}

.recit__bloc p {
  max-width: 40em;
}

.recit__bloc .bouton {
  margin-top: .75rem;
}

@media (min-width: 56rem) {
  .recit__bloc {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}

/* Points clés d’une réalisation : de petites cartes, l’une sous l’autre sur
   téléphone, deux par ligne sur tablette, toutes de front sur grand écran */
.points-cles {
  display: grid;
  gap: .625rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.point-cle {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: .75rem 1.25rem .75rem .75rem;
  border: 1px solid var(--filet);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--ombre-carte);
  font: 450 clamp(1.0625rem, 1rem + .3vw, 1.25rem)/1.25 var(--police-titres);
  letter-spacing: -.01em;
  text-wrap: balance;
}

/* Icône posée dans une petite arche, comme sur les cartes de l’accueil */
.point-cle__icone {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 3rem;
  padding-top: .1875rem;
  border-radius: var(--arche);
  background: var(--bandeau);
  color: var(--accent);
}

@media (min-width: 40rem) {
  .points-cles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }

  .point-cle:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Sur grand écran, tous les points tiennent sur une seule rangée,
   quel que soit leur nombre */
@media (min-width: 64rem) {
  .points-cles {
    grid-template-columns: none;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 1rem;
  }

  .point-cle,
  .point-cle:last-child:nth-child(odd) {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.125rem;
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: var(--rayon);
  }

  .point-cle__icone {
    width: 3.25rem;
    height: 3.625rem;
    padding-top: .25rem;
  }
}

/* Avis clients (masqués tant qu’il n’y en a pas) */
.avis__liste {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

@media (min-width: 52rem) {
  .avis__liste {
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  }
}

.avis__carte {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre-carte);
}

.avis__carte blockquote {
  margin: 0;
  font: 400 clamp(1.1875rem, 1.1rem + .5vw, 1.4375rem)/1.4 var(--police-titres);
  letter-spacing: -.012em;
}

.avis__carte blockquote::before {
  content: "«";
  display: block;
  margin-bottom: .5rem;
  color: var(--relief);
  font-size: 2.5rem;
  line-height: .8;
}

.avis__carte figcaption {
  display: grid;
  gap: .125rem;
  margin-top: auto;
  font-size: .9375rem;
}

.avis__carte figcaption span {
  color: var(--texte-doux);
}


/* 13. À PROPOS ET CONTACT
   ========================================================================== */

/* Signature : une arche, le monogramme « MP » dans un cercle, le nom et le métier */
.signature {
  display: grid;
  align-content: center;
  justify-items: center;
  width: min(100%, 16rem);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  padding: 2.25rem 1rem 1.5rem;
  border-radius: 999px 999px var(--rayon) var(--rayon);
  background:
    radial-gradient(80% 60% at 30% 10%, var(--surface), transparent 70%),
    var(--bandeau);
  text-align: center;
}

.signature__initiales {
  display: grid;
  place-items: center;
  width: 46%;
  aspect-ratio: 1;
  margin-bottom: 1.75rem;
  padding-top: .25rem;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 50%;
  outline: 1px solid var(--filet);
  outline-offset: .5rem;
  background: var(--surface);
  color: var(--accent);
  font: 400 clamp(2.25rem, 1.9rem + 1.6vw, 3.25rem)/1 var(--police-titres);
  letter-spacing: -.02em;
}

.signature__nom {
  font: 450 clamp(1.25rem, 1.15rem + .5vw, 1.5rem)/1.2 var(--police-titres);
  letter-spacing: -.012em;
}

.signature__metier {
  margin-top: .5rem;
  color: var(--relief);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (min-width: 60rem) {
  .signature {
    width: min(100%, 22rem);
    margin-inline: 0;
  }
}

.reperes {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
}

.reperes div {
  display: grid;
  gap: .125rem 1.5rem;
  padding-block: .875rem;
  border-top: 1px solid var(--filet);
}

.reperes div:last-child {
  border-bottom: 1px solid var(--filet);
}

.reperes dt {
  color: var(--texte-doux);
  font-size: .9375rem;
}

.reperes dd {
  margin: 0;
  font-weight: 500;
}

@media (min-width: 30rem) {
  .reperes div {
    grid-template-columns: 8.5rem minmax(0, 1fr);
  }
}

.recit-personnel > * + * {
  margin-top: 1.25rem;
}

.recit-personnel h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
}

.recit-personnel p {
  max-width: 38em;
}

/* Contact */
.contact {
  display: grid;
  gap: 3rem;
}

@media (min-width: 62rem) {
  .contact {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: clamp(3rem, 6vw, 5.5rem);
  }
}

.formulaire {
  display: grid;
  gap: 1.375rem;
}

.formulaire__ligne {
  display: grid;
  gap: 1.375rem;
}

@media (min-width: 36rem) {
  .formulaire__ligne {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.champ {
  display: grid;
  gap: .5rem;
  align-content: start;
}

.champ label {
  font-size: .9375rem;
  font-weight: 600;
}

.champ__option {
  color: var(--texte-doux);
  font-weight: 400;
}

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: .8125rem 1rem;
  border: 1px solid var(--contour);
  border-radius: .875rem;
  background-color: var(--surface);
  color: var(--texte);
  font: inherit;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}

.champ textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.champ select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image: var(--chevron);
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.125rem;
}

.champ input:hover,
.champ select:hover,
.champ textarea:hover {
  border-color: var(--texte);
}

.champ input:focus-visible,
.champ select:focus-visible,
.champ textarea:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.champ input:user-invalid,
.champ select:user-invalid,
.champ textarea:user-invalid {
  border-color: var(--erreur);
  box-shadow: 0 0 0 1px var(--erreur);
}

.champ__aide,
.formulaire__rgpd {
  margin: 0;
  color: var(--texte-doux);
  font-size: .9375rem;
}

.formulaire .bouton {
  justify-self: start;
}

@media (max-width: 35.99rem) {
  .formulaire .bouton {
    width: 100%;
  }
}

.coordonnees {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: var(--rayon-grand);
  background: var(--bandeau);
}

.coordonnees h2 {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
}

.coordonnees__liste {
  display: grid;
  gap: 1.375rem;
  margin-top: 1.75rem;
}

.coordonnees__liste li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .125rem .875rem;
}

.coordonnees__liste .icone {
  grid-row: span 2;
  margin-top: .125rem;
  color: var(--accent);
}

.coordonnees__liste small {
  grid-column: 2;
  color: var(--texte-doux);
  font-size: .9375rem;
}

.coordonnees__tel {
  font: 450 clamp(1.5rem, 1.35rem + .8vw, 1.875rem)/1.15 var(--police-titres);
  letter-spacing: -.015em;
  text-decoration: none;
  white-space: nowrap;
}

.coordonnees__mail {
  overflow-wrap: anywhere;
  font-weight: 500;
  text-decoration-color: var(--relief);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .22em;
}

.coordonnees__tel:hover,
.coordonnees__mail:hover {
  color: var(--accent);
}

.garanties {
  display: grid;
  gap: .75rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--filet);
}

.garanties li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
}

.garanties .icone {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .2rem;
  color: var(--accent);
  stroke-width: 2;
}


/* 14. TEXTE LONG, PAGES DE MESSAGE (merci, 404)
   ========================================================================== */

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin: 2.75rem 0 1rem;
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose address {
  margin-bottom: 1em;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: .375rem;
}

.prose li::marker {
  color: var(--relief);
}

.prose .nowrap,
.nowrap {
  white-space: nowrap;
}

.message {
  display: grid;
  justify-items: center;
  padding-block: clamp(3.5rem, 10vw, 8rem);
  text-align: center;
}

.message__signe {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 6.25rem;
  margin-bottom: 2rem;
  padding-top: .5rem;
  border-radius: var(--arche);
  background: var(--bandeau);
  color: var(--accent);
  font: italic 400 2rem/1 var(--police-titres);
}

.message__signe .icone {
  width: 2rem;
  height: 2rem;
}

.message h1 {
  max-width: 14em;
  font-size: clamp(2.125rem, 1.6rem + 2.6vw, 3.5rem);
}

.message .chapeau {
  margin-inline: auto;
}

.message__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .875rem;
  margin-top: 2.25rem;
}

.message__liens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem 1.75rem;
  margin-top: 2.5rem;
}


/* 15. PIED DE PAGE
   ========================================================================== */

.pied {
  padding-block: clamp(3rem, 7vw, 5rem) 1.75rem;
  background: var(--pied-fond);
  color: var(--pied-texte);
}

.pied :focus-visible {
  outline-color: var(--pied-texte);
}

.pied a {
  text-decoration: none;
}

.pied__haut {
  display: grid;
  gap: 2.5rem 2rem;
}

.pied__presentation p {
  max-width: 26em;
  margin: 1.25rem 0 .75rem;
  color: var(--pied-doux);
}

.marque--pied {
  color: var(--pied-texte);
}

.marque--pied .marque__nom {
  display: block;
}

.marque--pied .marque__sigle {
  background: var(--pied-texte);
  color: var(--pied-fond);
}

.pied .lien-fleche {
  color: var(--pied-texte);
}

.pied__titre {
  margin-bottom: .75rem;
  color: var(--pied-doux);
  font: 600 .8125rem/1.35 var(--police-texte);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pied__colonne li {
  color: var(--pied-doux);
  line-height: 1.5;
}

.pied__colonne li + li {
  margin-top: .125rem;
}

.pied__colonne a {
  display: inline-block;
  padding-block: .375rem;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - .3125rem) / 0% 1px;
  color: var(--pied-texte);
  transition: background-size .4s var(--courbe);
}

.pied__colonne a:hover {
  background-size: 100% 1px;
}

.pied__colonne li:not(:has(a)) {
  padding-top: .375rem;
}

.pied__mail {
  overflow-wrap: anywhere;
}

.pied__bas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgb(242 235 223 / .16);
  color: var(--pied-doux);
  font-size: var(--t-petit);
}

.pied__bas p {
  margin: 0;
}

.pied__bas a {
  display: inline-block;
  padding-block: .5rem;
  color: var(--pied-texte);
  text-decoration: underline;
  text-decoration-color: rgb(242 235 223 / .4);
  text-underline-offset: .22em;
}

.pied__bas a:hover {
  text-decoration-color: currentColor;
}

@media (min-width: 40rem) {
  .pied__haut {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pied__presentation {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .pied__haut {
    grid-template-columns: minmax(0, 4fr) minmax(0, 2.4fr) minmax(0, 2.2fr) minmax(0, 3.2fr);
    gap: 3rem;
  }

  .pied__presentation {
    grid-column: auto;
  }
}


/* 16. ANIMATIONS, TRANSITIONS DE PAGE, MOUVEMENT RÉDUIT
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* Apparitions au défilement : le script ajoute « en-attente » aux éléments
     situés sous l’écran, puis « est-visible » quand ils y entrent. */
  .en-attente {
    opacity: 0;
    transform: translateY(1.5rem);
  }

  .en-attente.est-visible {
    opacity: 1;
    transform: none;
    transition:
      opacity .9s var(--courbe) calc(var(--ordre, 0) * 90ms),
      transform .9s var(--courbe) calc(var(--ordre, 0) * 90ms);
  }

  /* Entrée de l’accroche au chargement */
  .hero .conteneur > *,
  .entete-page .conteneur > *,
  .message > * {
    animation: montee .9s var(--courbe) both;
  }

  .hero .conteneur > :nth-child(2),
  .entete-page .conteneur > :nth-child(2),
  .message > :nth-child(2) { animation-delay: .07s; }

  .hero .conteneur > :nth-child(3),
  .entete-page .conteneur > :nth-child(3),
  .message > :nth-child(3) { animation-delay: .14s; }

  .hero .conteneur > :nth-child(4),
  .message > :nth-child(4) { animation-delay: .21s; }

  .hero .conteneur > :nth-child(5),
  .message > :nth-child(5) { animation-delay: .28s; }

  .vitrine--entree {
    animation: montee 1.1s var(--courbe) .3s both;
  }

  @keyframes montee {
    from {
      opacity: 0;
      transform: translateY(1.125rem);
    }
  }

  /* Ouverture douce des questions (navigateurs récents) */
  @supports (interpolate-size: allow-keywords) {
    .faq {
      interpolate-size: allow-keywords;
    }

    .faq__item::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size .45s var(--courbe), content-visibility .45s allow-discrete;
    }

    .faq__item[open]::details-content {
      block-size: auto;
    }
  }

  /* Transition légère d’une page à l’autre (ignorée par les navigateurs
     qui ne la connaissent pas) */
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root) {
    animation: fondu-sortie .18s ease-out both;
  }

  ::view-transition-new(root) {
    animation: fondu-entree .35s var(--courbe) both;
  }

  @keyframes fondu-sortie {
    to {
      opacity: 0;
    }
  }

  @keyframes fondu-entree {
    from {
      opacity: 0;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}


/* 17. IMPRESSION
   ========================================================================== */

@media print {
  :root {
    --fond: #fff;
    --surface: #fff;
    --bandeau: #fff;
    --texte: #000;
    --texte-doux: #333;
  }

  .entete,
  .nav,
  .pied__colonne,
  .bouton,
  .lien-evitement,
  .vitrine__socle {
    display: none !important;
  }

  /* Tout le contenu s’imprime, même ce qui n’est pas encore apparu à l’écran */
  .en-attente {
    opacity: 1 !important;
    transform: none !important;
  }

  .section {
    padding-block: 1.5rem;
  }

  .pied {
    background: none;
    color: #000;
  }
}
