/* =========================================================================
   Les Délices de Mamour — Feuille de styles principale
   Cake design, pâtisserie, traiteur & brunch — La Mure / Grenoble
   -------------------------------------------------------------------------
   Sommaire
   01. Design tokens (variables)
   02. Reset & base
   03. Utilitaires
   04. Typographie de section
   05. Boutons & liens d'action
   06. Séparateurs décoratifs (festons, courbes, volutes)
   07. En-tête & navigation
   08. Section « Hero »
   09. Section « Avis clients »
   10. Section « Spécialités »
   11. Section « Ateliers »
   12. Section « Galerie »
   13. Section « Mon histoire »
   14. Section « Contact / Appel à projet »
   15. Pied de page
   16. Accessibilité & préférences utilisateur
   ========================================================================= */


/* =========================================================================
   01. DESIGN TOKENS
   Les valeurs proviennent des variables de la maquette Figma.
   ========================================================================= */
:root {
  /* --- Couleurs de marque --- */
  --couleur-rose:          #C9446D; /* Red    — couleur principale */
  --couleur-rose-clair:    #FEF2F3; /* Pink   — bordures et fonds très clairs */
  --couleur-rose-poudre:   #FDEEF1; /* dégradés */
  --couleur-or:            #D8BC8E; /* Gold   — accents, surtitres */
  --couleur-brun:          #6E5A5A; /* Brown  — texte secondaire */
  --couleur-brun-fonce:    #4A3B3B; /* texte principal & pied de page */
  --couleur-brun-clair:    #FAF3ED; /* Brown light — fonds chauds */
  --couleur-blanc:         #FDFCFB; /* White  — fond principal */
  --couleur-creme:         #FFF9F7; /* fond des cartes témoignages */
  --couleur-creme-galerie: #FAF4EF; /* fond section galerie */

  /* Déclinaisons transparentes */
  --voile-blanc-5:   rgba(255, 255, 255, 0.05);
  --voile-blanc-12:  rgba(255, 255, 255, 0.12);
  --voile-blanc-30:  rgba(255, 255, 255, 0.30);
  --couleur-or-transparent: rgba(216, 188, 142, 0);

  /* --- Familles typographiques --- */
  --police-titre:   "Cinzel", "Times New Roman", serif;       /* H1 / H2 / H3 */
  --police-script:  "Dancing Script", "Segoe Script", cursive; /* titres manuscrits */
  --police-texte:   "Lora", Georgia, serif;                    /* corps de texte */

  /* --- Échelle typographique fluide (mini 375px → maxi 1200px) --- */
  --taille-h1:          clamp(1.25rem,  2.42vw + 0.682rem, 2.5rem);    /* 20 → 40 */
  --taille-h1-script:   clamp(2rem,     5.82vw + 0.636rem, 5rem);      /* 32 → 80 */
  --taille-h2-script:   clamp(1.75rem,  3.39vw + 0.954rem, 3.5rem);    /* 28 → 56 */
  --taille-surtitre:    clamp(0.875rem, 1.21vw + 0.591rem, 1.5rem);    /* 14 → 24 */
  --taille-texte:       clamp(1rem,     0.24vw + 0.944rem, 1.125rem);  /* 16 → 18 */
  --taille-texte-mini:  1rem;                                          /* 16 */
  --taille-bouton:      clamp(1.0625rem, 0.36vw + 0.975rem, 1.25rem);  /* 17 → 20 */
  --taille-logo-script: clamp(1.625rem, 1.30vw + 1.319rem, 2.295rem);  /* 26 → 36.72 */
  --taille-logo-titre:  clamp(0.875rem, 0.73vw + 0.705rem, 1.25rem);   /* 14 → 20 */
  --taille-citation:    clamp(1.1875rem, 0.61vw + 1.045rem, 1.5rem);   /* 19 → 24 */
  --taille-nav:         1.125rem;                                      /* 18 */
  --taille-pied:        0.919rem;                                      /* 14.7 */

  /* --- Interlignes & interlettrages --- */
  --interligne-texte: 1.75rem;   /* 28px */
  --interlettrage-titre: 0.228em; /* 3.648px pour 16px, proportionnel */

  /* --- Rythme vertical & gouttières --- */
  --largeur-contenu:  1200px;  /* conteneur principal */
  --largeur-header:   1800px;  /* conteneur de l'en-tête */
  --gouttiere:        clamp(1rem, 3vw, 1.5rem);
  --espace-section:   clamp(4.5rem, 9vw, 8.75rem);  /* 72 → 140px */
  --hauteur-header:   85px;

  /* --- Rayons --- */
  --rayon-carte:   18px;
  --rayon-image:   16px;
  --rayon-portrait:20px;
  --rayon-citation:14px;
  --rayon-pilule:  40px;
  --rayon-bulle:   clamp(28px, 5vw, 71px);

  /* --- Ombres --- */
  --ombre-carte:     0 18px 36px -28px rgba(166, 23, 63, 0.5);
  --ombre-image:     0 16px 34px -22px rgba(166, 23, 63, 0.45);
  --ombre-portrait:  0 26px 50px -30px rgba(166, 23, 63, 0.45);
  --ombre-citation:  0 14px 30px -24px rgba(166, 23, 63, 0.5);
  --ombre-bouton:    0 4px 2px rgba(0, 0, 0, 0.25);
  --ombre-bouton-rose: 0 8px 11px rgba(217, 79, 122, 0.3);

  /* --- Transitions --- */
  --transition-douce: 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
}


/* =========================================================================
   02. RESET & BASE
   ========================================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hauteur-header) + 1rem);
}

body {
  margin: 0;
  background-color: var(--couleur-blanc);
  color: var(--couleur-brun-fonce);
  font-family: var(--police-texte);
  font-size: var(--taille-texte);
  line-height: var(--interligne-texte);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

/* Neutralise les attributs width/height du HTML pour que les ratios CSS
   (aspect-ratio) fassent autorité ; les attributs restent utiles pour
   réserver la place pendant le chargement. */
img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--couleur-rose);
  outline-offset: 3px;
  border-radius: 4px;
}


/* =========================================================================
   03. UTILITAIRES
   ========================================================================= */

/* Conteneur centré du site */
.conteneur {
  width: 100%;
  max-width: calc(var(--largeur-contenu) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

/* Texte réservé aux lecteurs d'écran */
.lecteur-ecran-seul {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Idem, mais redevient visible au focus clavier */
.lecteur-ecran-seul--focusable:focus-visible {
  position: fixed;
  z-index: 200;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1.25rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  background: var(--couleur-rose);
  color: var(--couleur-blanc);
  border-radius: var(--rayon-pilule);
  font-weight: 700;
}

/* Dans une colonne flex alignée (center / flex-start), un enfant se
   dimensionne sur son contenu maximal et déborde donc sur petit écran.
   Ce garde-fou le ramène systématiquement à la largeur disponible. */
.hero__contenu > *,
.hero__titre > *,
.section__entete > *,
.appel-projet__carte > *,
.specialites > .conteneur > *,
.prestation > *,
.prestation__entete > *,
.ateliers__texte > *,
.histoire__texte > *,
.temoignage > *,
.engagement > *,
.pied-site__marque > * {
  max-width: 100%;
}

/* Bloc de section générique */
.section {
  position: relative;
  padding-block: var(--espace-section);
  overflow: hidden;
}

/* Calque d'arrière-plan photographique d'une section */
.section__fond {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.section__fond img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Le contenu passe toujours au-dessus des calques décoratifs */
.section > .conteneur { position: relative; z-index: 1; }


/* =========================================================================
   04. TYPOGRAPHIE DE SECTION
   ========================================================================= */

/* Surtitre : petite capitale espacée au-dessus du titre */
.section__surtitre {
  margin: 0;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: var(--taille-surtitre);
  line-height: 1.34;
  letter-spacing: var(--interlettrage-titre);
  text-transform: uppercase;
  color: var(--couleur-or);
}

/* Titre manuscrit principal des sections */
.section__titre {
  margin: 0;
  font-family: var(--police-script);
  font-weight: 700;
  font-size: var(--taille-h2-script);
  line-height: 1.08;
  color: var(--couleur-rose);
}

/* Chapô sous le titre */
.section__chapo {
  max-width: 44ch;
  color: var(--couleur-brun);
}

/* En-tête de section centré */
.section__entete {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1875rem;
  text-align: center;
}

.section__entete .section__chapo {
  margin-top: 1rem;
  text-wrap: balance;
}

/* Filet doré + cœur, sous les titres centrés */
.section__filet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 0.8125rem;
}

.section__filet::before,
.section__filet::after {
  content: "";
  width: 54px;
  height: 1px;
  background-image: linear-gradient(to right, var(--couleur-or-transparent), var(--couleur-or));
}

.section__filet::after {
  background-image: linear-gradient(to right, var(--couleur-or), var(--couleur-or-transparent));
}

.section__filet .icone-coeur { color: var(--couleur-rose); }

/* Cœur vectoriel réutilisable */
.icone-coeur {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
}


/* =========================================================================
   05. BOUTONS & LIENS D'ACTION
   ========================================================================= */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5625rem;
  padding: 0.9375rem 1.875rem;
  border: 1px solid transparent;
  border-radius: var(--rayon-pilule);
  font-family: var(--police-texte);
  font-weight: 700;
  font-size: var(--taille-bouton);
  line-height: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition-douce),
              box-shadow var(--transition-douce),
              background-color var(--transition-douce),
              color var(--transition-douce);
}

.bouton:hover { transform: translateY(-2px); }
.bouton:active { transform: translateY(0); }

/* Bouton plein rose — action principale */
.bouton--principal {
  background-color: var(--couleur-rose);
  color: var(--couleur-blanc);
  filter: drop-shadow(var(--ombre-bouton));
}

.bouton--principal:hover { background-color: #b73a5f; }

/* Bouton clair bordé — action secondaire */
.bouton--secondaire {
  background-color: var(--couleur-blanc);
  border-color: var(--couleur-rose-clair);
  color: var(--couleur-rose);
  filter: drop-shadow(var(--ombre-bouton));
}

.bouton--secondaire:hover { background-color: var(--couleur-rose-clair); }

/* Variante ombre rose diffuse (section « Mon histoire ») */
.bouton--halo {
  color: var(--couleur-brun-clair);
  filter: drop-shadow(var(--ombre-bouton-rose));
}

/* Groupe de boutons */
.groupe-boutons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
}


/* =========================================================================
   06. SÉPARATEURS DÉCORATIFS
   ========================================================================= */

/* Feston (guirlande arrondie) : la bande pleine coiffe la section, les
   lobes retombent sur celle qui suit. */
.feston {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: 109%;              /* 2096 / 1920 — largeur d'origine de la maquette */
  min-width: 1200px;
  transform: translate(-50%, 96%);
  pointer-events: none;
}

/* Variante accrochée en haut de la section : reprend la couleur de la
   section précédente et déborde vers le bas. */
.feston--haut {
  top: 0;
  bottom: auto;
  transform: translateX(-50%);
}

.feston svg {
  width: 100%;
  height: auto;
  fill: var(--feston-couleur, var(--couleur-blanc));
}

/* Courbe pleine qui fond une section dans la suivante */
.courbe-transition {
  position: absolute;
  top: -1px;
  left: 50%;
  z-index: 1;
  width: 105%;
  min-width: 1200px;
  transform: translateX(-50%);
  pointer-events: none;
}

.courbe-transition svg {
  width: 100%;
  height: auto;
  fill: var(--courbe-couleur, var(--couleur-blanc));
}

/* Volutes dorées entre deux sections */
.volutes {
  position: absolute;
  left: 50%;
  z-index: 1;
  width: 118%;
  min-width: 1400px;
  transform: translateX(-50%);
  pointer-events: none;
}

.volutes--haut { top: -18px; }
.volutes--bas  { bottom: -18px; }

.volutes svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: var(--couleur-or);
  stroke-width: 2;
}

.volutes svg + svg { margin-top: -28px; }


/* =========================================================================
   07. EN-TÊTE & NAVIGATION
   ========================================================================= */
.entete-site {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--hauteur-header);
  background-color: rgba(255, 249, 247, 0.9);
  border-bottom: 1px solid var(--couleur-rose-clair);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.entete-site__conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: calc(var(--largeur-header) + 2 * var(--gouttiere));
  min-height: 84px;
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.logo__pastille {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: none;
  border: 1px solid var(--couleur-or);
  border-radius: 50%;
  background-image: radial-gradient(circle at 50% 38%, #FFFFFF 0%, var(--couleur-rose-poudre) 100%);
  color: var(--couleur-rose);
}

.logo__pastille .icone-coeur { width: 22px; height: 22px; }

.logo__texte { display: flex; flex-direction: column; }

.logo__nom {
  font-family: var(--police-script);
  font-weight: 700;
  font-size: var(--taille-logo-script);
  line-height: 1.08;
  color: var(--couleur-rose);
}

.logo__complement {
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: var(--taille-logo-titre);
  line-height: 1.2;
  letter-spacing: var(--interlettrage-titre);
  text-transform: uppercase;
  color: var(--couleur-brun);
}

/* --- Navigation principale --- */
.navigation__liste {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navigation__lien {
  position: relative;
  display: inline-block;
  padding-block: 0.15rem;
  font-size: var(--taille-nav);
  line-height: 1.75rem;
  color: var(--couleur-brun);
  transition: color var(--transition-douce);
}

.navigation__lien::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--couleur-rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-douce);
}

.navigation__lien:hover,
.navigation__lien[aria-current="page"] { color: var(--couleur-rose); }

.navigation__lien:hover::after,
.navigation__lien[aria-current="page"]::after { transform: scaleX(1); }

/* --- Actions à droite de l'en-tête --- */
.entete-site__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: none;
}

/* --- Réseaux sociaux --- */
.reseaux {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.reseaux__lien {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--couleur-rose-clair);
  border-radius: 50%;
  color: var(--couleur-rose);
  transition: background-color var(--transition-douce), color var(--transition-douce);
}

.reseaux__lien:hover {
  background-color: var(--couleur-rose);
  color: var(--couleur-blanc);
}

.reseaux__lien svg { width: 15px; height: 15px; }

/* --- Bouton d'ouverture du menu mobile --- */
.bouton-menu {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid var(--couleur-rose-clair);
  border-radius: 50%;
  color: var(--couleur-rose);
}

.bouton-menu__barres,
.bouton-menu__barres::before,
.bouton-menu__barres::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform var(--transition-douce), opacity var(--transition-douce);
}

.bouton-menu__barres { position: relative; }

.bouton-menu__barres::before,
.bouton-menu__barres::after {
  content: "";
  position: absolute;
  left: 0;
}

.bouton-menu__barres::before { top: -6px; }
.bouton-menu__barres::after  { top: 6px; }

.bouton-menu[aria-expanded="true"] .bouton-menu__barres { background-color: transparent; }
.bouton-menu[aria-expanded="true"] .bouton-menu__barres::before { transform: translateY(6px) rotate(45deg); }
.bouton-menu[aria-expanded="true"] .bouton-menu__barres::after  { transform: translateY(-6px) rotate(-45deg); }


/* =========================================================================
   08. SECTION « HERO »
   ========================================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* 1100 px dans la maquette : on remplit l'écran sans jamais le dépasser */
  min-height: clamp(620px, calc(100vh - var(--hauteur-header)), 1100px);
  padding-block: 2.5rem clamp(6rem, 20vw, 14.25rem);
  background-image: radial-gradient(
    134% 88% at 50% 30%,
    #FFFFFF 0%,
    var(--couleur-creme) 45%,
    var(--couleur-rose-poudre) 100%
  );
  overflow: hidden;
}

/* Photographie de fond (fleurs + gâteau) */
.hero__fond {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__fond img {
  position: absolute;
  right: 0;
  top: 15.65%;
  width: max(152.16%, 1100px);
  height: auto;
  max-width: none;
}

/* Bouquets d'angle, fondus par un masque radial */
.hero__angle {
  position: absolute;
  top: -30px;
  z-index: 1;
  width: clamp(150px, 17vw, 330px);
  height: auto;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 120% at 8% 8%, #000 52%, transparent 78%);
          mask-image: radial-gradient(120% 120% at 8% 8%, #000 52%, transparent 78%);
}

.hero__angle--gauche { left: -26px; }

.hero__angle--droite {
  right: -26px;
  transform: scaleX(-1);
}

.hero__contenu {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-block: clamp(2rem, 5vw, 4.3125rem) 0;
  text-align: center;
}

/* Titre principal en deux registres */
.hero__titre {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 700;
}

.hero__titre-accroche {
  font-family: var(--police-titre);
  font-size: var(--taille-h1);
  line-height: 1.35;
  letter-spacing: var(--interlettrage-titre);
  text-transform: uppercase;
  color: var(--couleur-brun);
}

.hero__titre-signature {
  display: block;
  margin-top: 0.35em;
  font-family: var(--police-script);
  font-size: var(--taille-h1-script);
  line-height: 0.9;
  color: var(--couleur-rose);
  text-wrap: balance;
}

.hero__introduction {
  max-width: 72ch;
  margin-top: 0.6rem;
  color: var(--couleur-brun-fonce);
}

.hero__introduction p + p { margin-top: 0; }

/* Bandeau de réassurance : note, volume, ancienneté */
.reassurance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.75rem;
  font-size: var(--taille-texte-mini);
  line-height: 1.25rem;
  color: var(--couleur-brun);
}

.reassurance__note {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--couleur-rose);
  font-weight: 500;
}

.reassurance__coeurs {
  display: flex;
  gap: 2px;
}

.reassurance__coeurs .icone-coeur { width: 15px; height: 15px; }

.reassurance li { font-weight: 500; }

.reassurance__separateur {
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--couleur-rose-clair);
}

.hero__actions { margin-top: 0.6rem; }

/* Flèche « faire défiler » */
.hero__defilement {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 6vw, 4.1rem);
  z-index: 2;
  transform: translateX(-50%);
  color: var(--couleur-rose);
  animation: flottement 2.4s ease-in-out infinite;
}

.hero__defilement svg { width: 19px; height: 26px; }

@keyframes flottement {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}


/* =========================================================================
   09. SECTION « AVIS CLIENTS »
   ========================================================================= */
.avis {
  background-color: var(--couleur-blanc);
  --courbe-couleur: var(--couleur-blanc);
}

.avis__defile {
  margin-top: 2.875rem;
  /* Le bandeau déborde volontairement du conteneur, comme sur la maquette */
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.avis__piste {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: defilement-avis 60s linear infinite;
}

.avis__defile:hover .avis__piste,
.avis__defile:focus-within .avis__piste { animation-play-state: paused; }

@keyframes defilement-avis {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Carte témoignage --- */
.temoignage {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 368px;
  min-height: 270px;      /* hauteur de carte de la maquette */
  flex: none;
  padding: 1.9375rem 1.8125rem;
  background-color: var(--couleur-creme);
  border: 1px solid var(--couleur-rose-clair);
  border-radius: var(--rayon-carte);
  box-shadow: var(--ombre-carte);
}

.temoignage__note {
  display: flex;
  gap: 0.25rem;
  color: var(--couleur-rose);
}

.temoignage__note .icone-coeur { width: 16px; height: 16px; }

.temoignage__texte {
  flex: 1;
  font-style: italic;
  color: var(--couleur-brun-fonce);
}

.temoignage__auteur {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-style: normal;
}

.temoignage__initiale {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background-image: radial-gradient(circle at 50% 35%, #F8DDE3 0%, #F4B6C2 100%);
  font-family: var(--police-script);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--couleur-blanc);
}

.temoignage__nom {
  display: block;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.5rem;
  color: var(--couleur-rose);
}

.temoignage__contexte {
  display: block;
  font-weight: 500;
  font-size: var(--taille-texte-mini);
  line-height: 1.25rem;
  color: var(--couleur-brun);
}


/* =========================================================================
   10. SECTION « SPÉCIALITÉS »
   ========================================================================= */
.specialites { background-color: var(--couleur-creme); }

.specialites .conteneur {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.specialites .section__surtitre { color: var(--couleur-rose); }

/* Grille des prestations */
.prestations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

.prestation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.9375rem 1.4375rem;
  background-color: var(--couleur-blanc);
  border: 1px solid var(--couleur-rose-clair);
  border-radius: var(--rayon-carte);
  text-align: center;
  transition: transform var(--transition-douce), box-shadow var(--transition-douce);
}

.prestation:hover {
  transform: translateY(-6px);
  box-shadow: var(--ombre-image);
}

.prestation__entete {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.prestation__visuel {
  width: 218px;
  max-width: 100%;
  aspect-ratio: 218 / 116;
  object-fit: cover;
  object-position: 50% 38%;
  border-radius: var(--rayon-image);
}

.prestation__titre {
  font-family: var(--police-texte);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.5rem;
  color: var(--couleur-rose);
}

.prestation__description { color: var(--couleur-brun); }


/* =========================================================================
   11. SECTION « ATELIERS »
   ========================================================================= */
.ateliers { background-color: var(--couleur-brun-clair); }

/* Le motif de pâtisserie reste très discret */
.ateliers .section__fond img { opacity: 0.1; }

.ateliers__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 488px);
  align-items: center;
  gap: 2.5rem;
}

.ateliers__texte {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.ateliers .section__surtitre { color: var(--couleur-brun); }

.ateliers__description { color: var(--couleur-brun); }

.ateliers__visuel {
  width: 100%;
  aspect-ratio: 488 / 438;
  object-fit: cover;
  object-position: 50% 39%;   /* cadrage de la maquette */
  border-radius: var(--rayon-image);
  box-shadow: var(--ombre-image);
}


/* =========================================================================
   12. SECTION « GALERIE »
   ========================================================================= */
.galerie { background-color: var(--couleur-creme-galerie); }

.galerie .section__surtitre { color: var(--couleur-brun); }

/* Carrousel en « coverflow » : la création centrale est mise en avant.
   Les trois largeurs et la gouttière sont les seules sources de vérité :
   le script les relit pour calculer le recentrage. */
.carrousel {
  --creation-large:  350px; /* création active */
  --creation-medium: 300px; /* voisines immédiates */
  --creation-petite: 250px; /* toutes les autres */
  --creation-gouttiere: 40px;

  position: relative;
  margin-top: 2.375rem;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  touch-action: pan-y;
}

.carrousel__piste {
  display: flex;
  align-items: center;
  gap: var(--creation-gouttiere);
  padding-block: 1.5rem;
  will-change: transform;
  transition: transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.carrousel__piste > li { display: flex; flex: none; }

/* Chaque création : la largeur dépend de sa distance au centre */
.creation {
  position: relative;
  display: block;
  width: var(--creation-petite);
  aspect-ratio: 250 / 313;
  flex: none;
  border-radius: var(--rayon-image);
  overflow: hidden;
  box-shadow: var(--ombre-image);
  background-image: linear-gradient(150deg, #F4B6C2 0%, #F8DDE3 100%);
  opacity: 0.85;
  transition: width 520ms cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 520ms ease;
}

.creation[data-distance="1"] { width: var(--creation-medium); opacity: 0.95; }
.creation[data-distance="0"] { width: var(--creation-large);  opacity: 1; }

/* Pendant un glissement au doigt, on suit le geste sans inertie */
.carrousel[data-glissement="true"] .carrousel__piste { transition: none; }

.creation__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Étiquette de catégorie en bas à gauche */
.creation__categorie {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 0.25rem 0.625rem;
  background-color: var(--couleur-blanc);
  border-radius: 20px;
  font-family: var(--police-texte);
  font-size: 0.6375rem;
  line-height: 1.0875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--couleur-rose);
}

.galerie__actions { margin-top: 2.5rem; }

/* Boutons de navigation : discrets, révélés au focus clavier */
.carrousel__navigation {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border-radius: 50%;
  background-color: rgba(253, 252, 251, 0.92);
  color: var(--couleur-rose);
  box-shadow: var(--ombre-carte);
  opacity: 0;
  transition: opacity var(--transition-douce);
}

.carrousel:hover .carrousel__navigation,
.carrousel__navigation:focus-visible { opacity: 1; }

.carrousel__navigation--precedent { left: clamp(0.5rem, 3vw, 2.5rem); }
.carrousel__navigation--suivant   { right: clamp(0.5rem, 3vw, 2.5rem); }

.carrousel__navigation svg { width: 18px; height: 18px; }


/* =========================================================================
   13. SECTION « MON HISTOIRE »
   ========================================================================= */
.histoire {
  background-color: var(--couleur-brun-clair);
  --courbe-couleur: var(--couleur-creme-galerie);
}

.histoire__grille {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 3.125rem;
}

/* Le portrait est resserré sur la pâtissière, comme dans la maquette :
   le cadre rogne, la photo est agrandie autour de son centre d'intérêt. */
.histoire__cadre {
  width: 100%;
  aspect-ratio: 496 / 661;
  margin: 0;
  overflow: hidden;
  border-radius: var(--rayon-portrait);
  box-shadow: var(--ombre-portrait);
  background-color: var(--couleur-blanc);
}

.histoire__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.76);
  transform-origin: 50% 43%;
}

.histoire__texte {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.histoire__introduction { color: var(--couleur-brun-fonce); }

/* Carte « citation inspirante » avec sa petite étiquette rose */
.citation {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 1.5rem 1.6875rem 1.5625rem;
  background-color: var(--couleur-blanc);
  border: 1px solid var(--couleur-rose-clair);
  border-radius: var(--rayon-citation);
  box-shadow: var(--ombre-citation);
}

.citation::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 29px;
  width: 84px;
  height: 22px;
  border-radius: 4px;
  background-color: var(--couleur-rose-clair);
  opacity: 0.85;
  transform: rotate(-3deg);
}

.citation p {
  font-family: var(--police-script);
  font-size: var(--taille-citation);
  line-height: 1.35;
  color: var(--couleur-rose);
}


/* =========================================================================
   14. SECTION « CONTACT / APPEL À PROJET »
   ========================================================================= */
.appel-projet {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.6875rem) clamp(4rem, 8vw, 6.5rem);
  background-color: var(--couleur-rose);
  --feston-couleur: var(--couleur-rose);
}

.appel-projet__carte {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: clamp(3.5rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 2rem) clamp(3rem, 5vw, 4.125rem);
  border-radius: var(--rayon-bulle);
  background-image: linear-gradient(169deg, #FFFFFF 0%, var(--couleur-rose-poudre) 100%);
  text-align: center;
}

/* Bouquet posé à cheval sur le bord supérieur de la carte */
.appel-projet__bouquet {
  position: absolute;
  left: 50%;
  top: 0;
  width: clamp(220px, 26vw, 426px);
  height: auto;
  transform: translate(-50%, -52%);
  pointer-events: none;
}

.appel-projet .section__surtitre { color: var(--couleur-brun); }

.appel-projet__titre { color: var(--couleur-brun); }

.appel-projet__texte {
  max-width: 800px;
  color: var(--couleur-brun);
}


/* =========================================================================
   15. PIED DE PAGE
   ========================================================================= */
.pied-site {
  position: relative;
  padding-block: clamp(6rem, 11vw, 11.25rem) 0;
  background-color: var(--couleur-brun-fonce);
  color: var(--couleur-brun-clair);
}

/* --- Trois engagements --- */
.engagements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.engagement {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background-color: var(--voile-blanc-5);
  border-radius: var(--rayon-carte);
  text-align: center;
  color: var(--couleur-or);
}

.engagement__titre {
  font-family: var(--police-texte);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.5rem;
}

.engagement__detail {
  font-weight: 500;
  font-size: var(--taille-texte-mini);
  line-height: 1.25rem;
}

/* --- Colonnes du pied de page --- */
.pied-site__colonnes {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.125rem;
  padding-block: 3.75rem 2.5rem;
}

.pied-site__marque {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.pied-site__marque .logo__nom { color: var(--couleur-blanc); }
.pied-site__marque .logo__complement { color: var(--couleur-or); }

.pied-site__accroche {
  max-width: 42ch;
  font-size: var(--taille-pied);
  line-height: 1.5625rem;
  color: var(--couleur-brun-clair);
}

.pied-site__titre-colonne {
  margin-bottom: 1rem;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.325rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--couleur-or);
}

.pied-site__liens {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.pied-site__liens a {
  font-size: var(--taille-pied);
  line-height: 1.5625rem;
  color: var(--couleur-brun-clair);
  transition: color var(--transition-douce);
}

.pied-site__liens a:hover { color: var(--couleur-or); }

.pied-site .reseaux__lien {
  border-color: var(--voile-blanc-30);
  color: var(--couleur-blanc);
}

.pied-site .reseaux__lien:hover {
  background-color: var(--couleur-or);
  color: var(--couleur-brun-fonce);
}

/* --- Signature & mentions --- */
.pied-site__signature {
  padding-block: 0.75rem;
  font-family: var(--police-script);
  font-size: 1.3rem;
  line-height: 2.21rem;
  text-align: center;
  color: var(--couleur-blanc);
}

.pied-site__signature a { text-decoration: underline; text-underline-offset: 3px; }

.pied-site__mentions {
  padding-block: 1.3rem;
  border-top: 1px solid var(--voile-blanc-12);
  font-family: var(--police-titre);
  font-size: 0.6625rem;
  line-height: 1.12rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: #C2ADAD;
}


/* =========================================================================
   15 bis. PAGES DE TEXTE (mentions légales, CGV…)
   ========================================================================= */
.page-texte {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 8vw, 6rem);
  background-color: var(--couleur-blanc);
}

.page-texte__conteneur { max-width: calc(760px + 2 * var(--gouttiere)); }

.page-texte__titre {
  margin-bottom: 0.75rem;
  font-family: var(--police-script);
  font-weight: 700;
  font-size: var(--taille-h2-script);
  line-height: 1.08;
  color: var(--couleur-rose);
}

.page-texte__chapo {
  margin-bottom: 2.5rem;
  color: var(--couleur-brun);
}

.page-texte h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--couleur-brun);
}

.page-texte h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.375rem;
  font-family: var(--police-texte);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--couleur-rose);
}

.page-texte p,
.page-texte li { color: var(--couleur-brun-fonce); }

.page-texte p + p { margin-top: 0.75rem; }

.page-texte ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.page-texte li { margin-bottom: 0.25rem; }

.page-texte a {
  color: var(--couleur-rose);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Champ restant à renseigner par l'éditrice du site */
.a-completer {
  padding: 0.05em 0.4em;
  border-radius: 4px;
  background-color: var(--couleur-rose-clair);
  color: var(--couleur-rose);
  font-weight: 700;
  font-size: 0.9em;
}


/* =========================================================================
   16. ADAPTATIONS RESPONSIVES
   ========================================================================= */

/* --- Tablette paysage --- */
@media (max-width: 1200px) {
  .navigation__liste { gap: 1.125rem; }
  .navigation__lien { font-size: 1rem; }
  .entete-site__actions .reseaux { display: none; }
}

/* --- Tablette --- */
@media (max-width: 1024px) {
  .prestations { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ateliers__grille,
  .histoire__grille {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .histoire__cadre {
    max-width: 460px;
    margin-inline: auto;
  }

  .pied-site__colonnes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }

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

/* --- Mobile : bascule vers le menu déroulant --- */
@media (max-width: 900px) {
  :root { --hauteur-header: 76px; }

  .bouton-menu { display: grid; }

  .navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background-color: var(--couleur-creme);
    border-bottom: 1px solid var(--couleur-rose-clair);
    transition: max-height var(--transition-douce);
  }

  .navigation[data-ouvert="true"] { max-height: 32rem; }

  .navigation__liste {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gouttiere) 1.5rem;
  }

  .navigation__lien {
    display: block;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--couleur-rose-clair);
  }

  .navigation__lien::after { display: none; }

  .entete-site__actions .bouton { display: none; }

  /* Sur écran étroit, la photo est ancrée en bas pour que le gâteau reste
     sous le texte plutôt que derrière lui. */
  /* Le gâteau occupe environ la moitié de la largeur de l'image : on réserve
     exactement cette hauteur sous le texte pour qu'il ne le recouvre pas. */
  .hero {
    min-height: 0;
    padding-bottom: max(75vw, 270px);
  }

  .hero__fond img {
    top: auto;
    bottom: 0;
    right: 50%;
    width: max(150%, 560px);
    /* 33 % en X : le gâteau n'est pas au centre du fichier source.
       35 % en Y : on fait descendre la zone vide sous la découpe. */
    transform: translate(33%, 35%);
  }
}

/* --- Petits écrans --- */
@media (max-width: 640px) {
  .temoignage { width: min(310px, 80vw); }

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

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

  .hero__angle { top: -12px; }

  .carrousel {
    --creation-large:  260px;
    --creation-medium: 230px;
    --creation-petite: 200px;
    --creation-gouttiere: 20px;
  }

  .citation::before { left: 20px; }

  .groupe-boutons { flex-direction: column; align-items: stretch; }
  .groupe-boutons .bouton { width: 100%; }
}


/* =========================================================================
   17. PRÉFÉRENCES UTILISATEUR
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Le bandeau d'avis devient une bande défilable manuellement */
  .avis__defile {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }

  .avis__piste { animation: none; }

  .carrousel { overflow-x: auto; }
  .carrousel__navigation { opacity: 1; }
}

/* --- Impression --- */
@media print {
  .entete-site,
  .hero__defilement,
  .carrousel__navigation,
  .section__fond,
  .hero__fond,
  .hero__angle,
  .feston,
  .courbe-transition,
  .volutes { display: none !important; }

  body { background: #fff; color: #000; }
}
