/* =========================================================================
   OLDY — feuille de style du site vitrine
   Charte reprise de l'espace client : bordeaux #7D0025 sur crème #F6F3EE,
   titres Playfair Display, textes Open Sans.
   ========================================================================= */

:root {
  --bordeaux:       #7D0025;
  --bordeaux-fonce: #5C001B;
  --rose-pale:      #F1DEE3;
  --sauge:          #7C8B6F;
  --creme:          #F6F3EE;
  --blanc:          #FFFFFF;
  --bordure:        #E7DCCE;
  --texte:          #7D0025;
  --texte-doux:     rgba(125, 0, 37, .72);
  --texte-attenue:  rgba(125, 0, 37, .55);
  --rayon:          10px;
  --ombre:          0 1px 3px rgba(92, 0, 27, .10), 0 1px 2px rgba(92, 0, 27, .06);
  --ombre-forte:    0 8px 24px rgba(92, 0, 27, .10);
  --ombre-survol:   0 12px 28px rgba(92, 0, 27, .14);
  --titre:          "Playfair Display", Georgia, "Times New Roman", serif;
  --corps:          "Open Sans", "Segoe UI", Arial, sans-serif;
  /* Courbes de mouvement reprises de l'espace client : démarrage franc,
     arrivée en douceur. Toute animation du site les utilise. */
  --ease:           cubic-bezier(.22, 1, .36, 1);
  --ease-doux:      cubic-bezier(.4, 0, .2, 1);
}

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

body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; }

.conteneur        { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.conteneur-etroit { width: min(720px, 100% - 3rem); }
.centre           { text-align: center; }

/* ------------------------------- En-tête ------------------------------- */

.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 238, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bordure);
}
.entete-rangee {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 96px;
}
.marque { display: flex; align-items: center; text-decoration: none; }
.marque-logo { height: 72px; width: auto; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: .95rem; color: var(--texte-doux);
  padding-block: .25rem; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--bordeaux); border-bottom-color: var(--bordeaux); }

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

.bouton {
  display: inline-block; padding: .7rem 1.4rem;
  background: var(--bordeaux); color: var(--blanc);
  font-size: .95rem; font-weight: 600; text-decoration: none;
  border: 1px solid var(--bordeaux); border-radius: var(--rayon);
  transition: background .15s, transform .15s;
}
.bouton:hover { background: var(--bordeaux-fonce); transform: translateY(-1px); }
.bouton-espace { margin-left: 0; white-space: nowrap; }
.nav + .bouton-espace { margin-left: 0; }
.entete-rangee .bouton-espace { margin-left: 0; }

.bouton-fantome { background: transparent; color: var(--bordeaux); }
.bouton-fantome:hover { background: var(--rose-pale); }

.bouton-clair { background: var(--blanc); color: var(--bordeaux); border-color: var(--blanc); }
.bouton-clair:hover { background: var(--rose-pale); }
.bouton-fantome-clair { background: transparent; color: var(--blanc); border-color: rgba(255,255,255,.55); }
.bouton-fantome-clair:hover { background: rgba(255,255,255,.12); }

.actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin-top: 2rem; }

/* ------------------------------- Sections ------------------------------ */

.section     { padding: 5.5rem 0; }
.section-alt { background: var(--blanc); }

.surtitre {
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .78rem; font-weight: 600; color: var(--texte-attenue);
  margin: 0 0 1rem;
}
.titre-section {
  font-family: var(--titre); font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2;
  margin: 0 0 1.25rem;
}
.intro      { color: var(--texte-doux); max-width: 62ch; margin: 0 auto 3rem; }
.paragraphe { color: var(--texte-doux); margin: 0 0 1.1rem; }

/* --------------------------------- Hero -------------------------------- */

.hero {
  padding: 4rem 0 5.5rem;
  background: linear-gradient(180deg, var(--rose-pale) 0%, var(--creme) 78%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -190px; right: -170px; width: 520px; height: 520px;
  background: var(--sauge); opacity: .14; border-radius: 46% 54% 60% 40% / 55% 40% 60% 45%;
}
.hero-inner { max-width: 780px; margin-inline: auto; text-align: center; position: relative; }
.hero-titre {
  font-family: var(--titre); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.1;
  margin: 0 0 1.5rem;
}
.hero-texte { font-size: 1.15rem; color: var(--texte-doux); margin: 0 auto; max-width: 60ch; }

/* Hero avec photo : disposition en deux colonnes */
.hero-grille { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; position: relative; }
.hero-grille .hero-titre { font-size: clamp(2.2rem, 4vw, 3.2rem); text-align: left; }
.hero-grille .hero-texte { text-align: left; margin: 0 0 2rem; max-width: 46ch; }
.hero-grille .surtitre { text-align: left; }
.actions-hero { justify-content: flex-start; margin-top: 0; }
.hero-photo-zone { position: relative; }
.polaroid {
  background: var(--blanc); padding: .9rem .9rem 2.4rem;
  box-shadow: var(--ombre-forte); transform: rotate(-2.5deg);
  width: 86%; margin-inline: auto;
}
/* height:auto est indispensable : sans lui l'attribut height="805" du HTML
   l'emporte et le format 4/4.6 n'est jamais appliqué — la photo s'étirait
   alors sur toute la hauteur du hero. */
.polaroid img { width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 30%; display: block; }
.polaroid-legende { font-family: var(--titre); font-style: italic; color: var(--texte-doux); font-size: .95rem; margin: .9rem 0 0; text-align: center; }
@media (max-width: 860px) {
  .hero-grille { grid-template-columns: 1fr; }
  .hero-grille .hero-titre, .hero-grille .hero-texte, .hero-grille .surtitre { text-align: center; }
  .actions-hero { justify-content: center; }
  .hero-photo-zone { display: none; }
}

/* -------------------------------- Cartes ------------------------------- */

.grille {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 3rem;
}
.carte {
  background: var(--creme); border: 1px solid var(--bordure);
  border-radius: var(--rayon); padding: 1.75rem;
  box-shadow: var(--ombre);
  transition: transform .18s ease, box-shadow .18s ease;
}
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.section-alt .carte { background: var(--creme); }
.section:not(.section-alt) .carte { background: var(--blanc); }
.carte-titre { font-family: var(--titre); font-size: 1.25rem; font-weight: 600; margin: 0 0 .6rem; }
.carte-texte { color: var(--texte-doux); font-size: .96rem; margin: 0; }

.carte-offre { display: flex; flex-direction: column; }
.offre-gamme {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .72rem; font-weight: 700; color: var(--bordeaux);
  margin: 0 0 .35rem;
}
.offre-prix {
  font-family: var(--titre); font-size: 1.7rem; font-weight: 700;
  margin: 0 0 .75rem; color: var(--bordeaux);
}

/* ------------------------- Filtres et interactivité des ateliers ------------------------- */

.filtres-offres { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 2.5rem 0 0; }
.filtre-offre {
  appearance: none; border: 1.5px solid var(--bordure); background: var(--blanc);
  color: var(--texte-doux); font-family: var(--corps); font-size: .87rem; font-weight: 600;
  padding: .55rem 1.15rem; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: .45rem;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.filtre-offre svg { width: 15px; height: 15px; flex-shrink: 0; }
.filtre-offre:hover { border-color: var(--bordeaux); color: var(--bordeaux); }
.filtre-offre:active { transform: translateY(1px); }
.filtre-offre-actif { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--blanc); }

.carte-offre {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.carte-offre:hover, .carte-offre:focus-visible {
  transform: translateY(-5px); box-shadow: var(--ombre-forte); border-color: var(--bordeaux);
}
.carte-offre:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 2px; }
.carte-offre-tete { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .9rem; }
.carte-offre-icone {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 999px;
  background: var(--rose-pale); color: var(--bordeaux);
  display: flex; align-items: center; justify-content: center;
}
.carte-offre-icone svg { width: 19px; height: 19px; }
.carte-offre-chevron {
  width: 18px; height: 18px; margin-left: auto; margin-top: .6rem;
  color: var(--texte-attenue); transition: transform .18s ease;
}
.carte-offre-ouverte .carte-offre-chevron { transform: rotate(180deg); }
.carte-offre-detail {
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .22s ease, opacity .18s ease, margin-top .22s ease;
}
.carte-offre-ouverte .carte-offre-detail { max-height: 80px; opacity: 1; margin-top: 1rem; }
.carte-offre-detail p {
  border-top: 1px solid var(--bordure); padding-top: 1rem; margin: 0;
  font-size: .87rem; color: var(--texte-attenue);
}

/* ------------------------------- Galerie -------------------------------- */

.galerie-grille {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
}
.galerie-photo {
  margin: 0; overflow: hidden; border-radius: var(--rayon);
  box-shadow: var(--ombre); aspect-ratio: 3 / 4;
}
.galerie-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  display: block; transition: transform .4s ease;
}
.galerie-photo:hover img { transform: scale(1.04); }
@media (max-width: 720px) {
  .galerie-grille { grid-template-columns: 1fr; }
  .galerie-photo { aspect-ratio: 4 / 3; }
}

/* ------------------------------- Citation ------------------------------ */

.citation-section { background: var(--blanc); }
.citation { margin: 0; text-align: center; }
.citation-texte {
  font-family: var(--titre); font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.5;
  margin: 0 0 1.75rem;
}
.citation-signature { display: flex; flex-direction: column; gap: .2rem; }
.citation-auteur { font-weight: 600; }
.citation-role   { font-size: .9rem; color: var(--texte-attenue); }

/* -------------------------------- Étapes ------------------------------- */

.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; max-width: 780px; margin-inline: auto; }
.etape  { display: flex; gap: 1.25rem; align-items: flex-start; }
.etape-num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--bordeaux); color: var(--blanc);
  display: grid; place-items: center;
  font-family: var(--titre); font-weight: 700; font-size: 1.05rem;
}
.etape-titre { font-family: var(--titre); font-size: 1.15rem; font-weight: 600; margin: .35rem 0 .3rem; }
.etape-texte { color: var(--texte-doux); font-size: .96rem; margin: 0; }

/* ------------------------------- Encadré ------------------------------- */

.encadre {
  margin-top: 3rem; padding: 2rem;
  background: var(--rose-pale); border-radius: var(--rayon);
  border: 1px solid var(--bordure);
}
.encadre-titre   { font-family: var(--titre); font-size: 1.3rem; font-weight: 600; margin: 0 0 .75rem; }
.encadre-texte   { color: var(--texte-doux); margin: 0 0 1rem; }
.encadre-exemple {
  font-weight: 600; background: var(--blanc); border-radius: var(--rayon);
  padding: .85rem 1.1rem; margin: 0 0 1rem; display: inline-block;
}
.encadre-note    { color: var(--texte-doux); font-size: .93rem; margin: 0; }

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

.section-contact { background: var(--bordeaux); color: var(--blanc); }
.titre-clair, .paragraphe-clair { color: var(--blanc); }
.paragraphe-clair { opacity: .88; }

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

.pied { background: var(--bordeaux-fonce); color: var(--blanc); padding: 3rem 0 2rem; }
.pied-rangee { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.pied-nom { font-family: var(--titre); font-size: 1.5rem; font-weight: 700; margin: 0; letter-spacing: .04em; }
.pied-baseline { margin: .25rem 0 0; opacity: .75; font-size: .93rem; }
.pied-liens { display: flex; flex-direction: column; gap: .4rem; font-size: .93rem; }
.pied-liens a { opacity: .85; text-decoration: none; }
.pied-liens a:hover { opacity: 1; text-decoration: underline; }
.pied-legal {
  margin: 2.5rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: .85rem; opacity: .7;
}

/* ------------------------------ Barre CTA collante ---------------------- */

.barre-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--bordeaux); box-shadow: 0 -8px 24px rgba(92,0,27,.18);
  transform: translateY(100%); transition: transform .35s ease;
}
.barre-cta-visible { transform: translateY(0); }
.barre-cta-rangee {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1rem 0;
}
.barre-cta-texte {
  font-family: var(--titre); font-size: 1.05rem; font-weight: 600;
  color: var(--blanc); margin: 0;
}
.barre-cta-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.barre-cta-actions .bouton { padding: .6rem 1.25rem; font-size: .9rem; white-space: nowrap; }
.barre-cta-fermer {
  appearance: none; border: none; background: transparent; color: rgba(255,255,255,.7);
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 999px; cursor: pointer;
}
.barre-cta-fermer:hover { background: rgba(255,255,255,.14); color: var(--blanc); }
.barre-cta-fermer svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .barre-cta-texte { font-size: .92rem; }
  .barre-cta-rangee { gap: .85rem; }
}

/* ------------------------------ Responsive ----------------------------- */

@media (max-width: 860px) {
  .nav { display: none; }
  .bouton-espace { margin-left: auto; }
  .section { padding: 4rem 0; }
  .hero { padding: 4.5rem 0 4rem; }
  .conteneur, .conteneur-etroit { width: min(100% - 2rem, 1120px); }
  .entete-rangee { min-height: 64px; }
  .marque-logo { height: 40px; }
}

/* Respect strict du réglage système « réduire les animations » : plus aucun
   mouvement, et les éléments révélés au scroll restent affichés normalement. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1 !important; translate: none !important; }
}

/* ------- Ancres : compenser la hauteur de l'en-tête fixe ------- */
html { scroll-behavior: smooth; }
.section, .hero { scroll-margin-top: 100px; }

/* ------- Grille des offres : centrer la dernière rangée ------- */
.grille-offres { justify-content: center; }

.actions-encadre { justify-content: flex-start; margin-top: 1.5rem; }

/* ------------------------------ Pages légales -------------------------- */
.section-legale { padding-top: 4rem; }
.legale-maj    { color: var(--texte-attenue); font-size: .9rem; margin: -.5rem 0 2.5rem; }
.legale-titre  { font-family: var(--titre); font-size: 1.25rem; font-weight: 600; margin: 2.25rem 0 .75rem; }
.section-legale .paragraphe { font-size: .97rem; }

/* --------------------------------- Blog --------------------------------- */

/* Article : chapeau, sous-titres, image d'en-tête */
.intro-article {
  font-size: 1.1rem; color: var(--texte-doux);
  margin: 0 0 2rem; max-width: 62ch;
}
.article-titre3 {
  font-family: var(--titre); font-size: 1.1rem; font-weight: 600;
  margin: 1.75rem 0 .6rem;
}
.article-image {
  margin: 0 0 2rem; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre);
}
.article-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Article : liste à puces stylée */
.liste-article {
  list-style: none; margin: 1.5rem 0 2rem; padding: 0;
  display: grid; gap: 1.1rem;
}
.liste-article-item { padding-left: 1.1rem; border-left: 3px solid var(--bordeaux); }
.liste-article-titre {
  font-family: var(--titre); font-weight: 600; font-size: 1.02rem;
  margin: 0 0 .3rem;
}
.liste-article-texte { color: var(--texte-doux); font-size: .96rem; margin: 0; }

/* Article : mots-clés de fin */
.article-mots-cles { margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.mot-cle {
  display: inline-block; background: var(--rose-pale); color: var(--bordeaux);
  font-size: .78rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px;
}

/* Index du blog : grille de cartes */
.blog-carte { display: flex; flex-direction: column; }
.blog-carte-image {
  display: block; margin: -1.75rem -1.75rem 1.25rem; border-radius: var(--rayon) var(--rayon) 0 0;
  overflow: hidden; aspect-ratio: 16 / 10;
}
.blog-carte-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-carte:hover .blog-carte-image img { transform: scale(1.04); }
.blog-carte .carte-titre { margin: 0 0 .5rem; }
.blog-carte .carte-titre a { text-decoration: none; }
.blog-carte .carte-titre a:hover { color: var(--bordeaux); }
.blog-grille { grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; }

/* =========================================================================
   MOUVEMENT ET INTERACTIONS
   Même vocabulaire que l'espace client : révélation douce au scroll,
   micro-interactions au survol, courbe --ease partout.
   Tout est conditionné à la classe .js posée par assets/interactions.js :
   sans JavaScript, le site s'affiche exactement comme avant, rien n'est
   masqué. Le réglage « réduire les animations » neutralise l'ensemble
   (voir le bloc prefers-reduced-motion plus haut).
   ========================================================================= */

/* ---- Révélation au scroll -------------------------------------------- */
/* On anime « translate » et non « transform » : les effets de survol
   (translateY, scale) restent ainsi libres et ne s'écrasent pas entre eux. */
.js [data-reveal] {
  opacity: 0;
  translate: 0 18px;
  transition: opacity .7s var(--ease), translate .7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].est-visible { opacity: 1; translate: 0 0; }

/* ---- Entrée du hero --------------------------------------------------- */

@keyframes oldy-monte {
  from { opacity: 0; translate: 0 14px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes oldy-photo-entre {
  from { opacity: 0; transform: rotate(-6deg) scale(.94); }
  to   { opacity: 1; transform: rotate(-2.5deg) scale(1); }
}
/* Nappe organique du hero : respiration très lente, comme l'écran de
   connexion de l'espace client. */
@keyframes oldy-nappe {
  0%, 100% { border-radius: 46% 54% 60% 40% / 55% 40% 60% 45%; transform: translate(0, 0) scale(1); }
  50%      { border-radius: 54% 46% 44% 56% / 46% 54% 46% 54%; transform: translate(-18px, 16px) scale(1.06); }
}

.js .hero .surtitre,
.js .hero .hero-titre,
.js .hero .hero-texte,
.js .hero .actions {
  opacity: 0;
  animation: oldy-monte .7s var(--ease) forwards;
}
.js .hero .surtitre    { animation-delay: .08s; }
.js .hero .hero-titre  { animation-delay: .18s; }
.js .hero .hero-texte  { animation-delay: .30s; }
.js .hero .actions     { animation-delay: .42s; }
.js .hero .polaroid {
  opacity: 0;
  animation: oldy-photo-entre .9s var(--ease) .30s forwards;
}
.hero::before { animation: oldy-nappe 26s ease-in-out infinite; }

/* Grain léger sur le hero : la même texture que l'espace client, très discrète. */
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* La photo polaroid se redresse légèrement au survol. */
.polaroid { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.hero-photo-zone:hover .polaroid {
  transform: rotate(-1deg) translateY(-6px);
  box-shadow: 0 18px 40px rgba(92, 0, 27, .16);
}

/* ---- En-tête : se resserre au défilement ------------------------------ */

.entete { transition: box-shadow .35s var(--ease), background .35s var(--ease); }
.entete-rangee { transition: min-height .35s var(--ease); }
.marque-logo   { transition: height .35s var(--ease); }
@media (min-width: 861px) {
  .entete-compacte .entete-rangee { min-height: 70px; }
  .entete-compacte .marque-logo   { height: 50px; }
}
.entete-compacte {
  background: rgba(246, 243, 238, .96);
  box-shadow: 0 2px 14px rgba(92, 0, 27, .07);
}

/* Lien de menu correspondant à la section affichée à l'écran. */
.nav a.nav-actif { color: var(--bordeaux); border-bottom-color: var(--bordeaux); }

/* ---- Boutons : appui et reflet ---------------------------------------- */

.bouton {
  position: relative; overflow: hidden;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(92, 0, 27, .18); }
.bouton:active { transform: translateY(0) scale(.98); transition-duration: .1s; }
/* Reflet qui balaie le bouton au survol (repris de l'espace client). */
.bouton::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none;
}
.bouton:hover::after { left: 130%; }
.bouton-fantome::after,
.bouton-clair::after { background: linear-gradient(120deg, transparent, rgba(125, 0, 37, .10), transparent); }
.bouton-fantome:hover { box-shadow: none; }

/* Anneau de focus visible au clavier, sur toute la page. */
/* Pas de border-radius ici : il écraserait celui des boutons au focus.
   Le navigateur arrondit déjà le contour selon la forme de l'élément. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--bordeaux);
  outline-offset: 3px;
}
.section-contact a:focus-visible,
.pied a:focus-visible { outline-color: var(--blanc); }

/* ---- Cartes : survol un peu plus présent ------------------------------ */

.carte { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.carte:hover { transform: translateY(-5px); box-shadow: var(--ombre-survol); border-color: rgba(125, 0, 37, .25); }
.carte-offre { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.carte-offre:hover, .carte-offre:focus-visible { transform: translateY(-6px); box-shadow: var(--ombre-survol); }
.carte-offre-icone { transition: transform .35s var(--ease), background .35s var(--ease); }
.carte-offre:hover .carte-offre-icone { transform: scale(1.1) rotate(-6deg); }
.blog-carte-image img { transition: transform .6s var(--ease); }
.blog-carte:hover .blog-carte-image img { transform: scale(1.06); }

/* Filtres d'ateliers : la carte s'efface au lieu de disparaître d'un coup. */
.filtre-offre { transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .18s var(--ease); }
.filtre-offre:hover { transform: translateY(-2px); }
.filtre-offre svg { transition: transform .25s var(--ease); }
.filtre-offre:hover svg { transform: scale(1.15) rotate(-6deg); }
/* Sélecteur volontairement aussi spécifique que la règle de révélation
   ci-dessus, et placé après elle, pour pouvoir masquer une carte déjà
   révélée au scroll. */
.carte-offre-masquee,
.js .carte-offre.carte-offre-masquee {
  opacity: 0; translate: 0 10px; pointer-events: none;
  transition: opacity .2s var(--ease), translate .2s var(--ease);
}
/* Les cartes d'ateliers apparaissent plus vite que les autres blocs :
   après un clic sur un filtre, la réponse doit être immédiate. */
.js .grille-offres [data-reveal] { transition-duration: .3s; }

/* ---- Étapes : fil conducteur et numéro qui apparaît -------------------- */

.etapes { position: relative; }
.etapes::before {
  content: ''; position: absolute; left: 19px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, transparent, var(--bordure) 8%, var(--bordure) 92%, transparent);
}
.etape { position: relative; }
.etape-num {
  position: relative; z-index: 1;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.etape:hover .etape-num { transform: scale(1.08); box-shadow: 0 4px 12px rgba(92, 0, 27, .22); }

/* ---- Galerie : visionneuse plein écran -------------------------------- */

.js .galerie-photo { cursor: zoom-in; }
.galerie-photo img { transition: transform .6s var(--ease); }
.galerie-photo:hover img, .galerie-photo:focus-visible img { transform: scale(1.06); }

.visionneuse {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 3.5rem 1.25rem;
  background: rgba(60, 0, 18, .82);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.visionneuse-ouverte { opacity: 1; }
/* Le cadre blanc épouse la photo (portrait comme paysage) : pas de bandes
   vides autour de l'image. La légende est posée en dessous, sur le fond. */
.visionneuse figure {
  margin: 0; max-width: min(900px, 100%); max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.visionneuse-cadre {
  max-width: 100%;
  background: var(--blanc); padding: .9rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
  transform: scale(.96); transition: transform .35s var(--ease);
}
.visionneuse-ouverte .visionneuse-cadre { transform: scale(1); }
.visionneuse img {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 68vh;
}
.visionneuse figcaption {
  font-family: var(--titre); font-style: italic;
  color: rgba(255, 255, 255, .88);
  font-size: .95rem; text-align: center; max-width: 60ch;
}
.visionneuse-bouton {
  position: absolute; appearance: none; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: var(--blanc);
  width: 46px; height: 46px; border-radius: 999px;
  display: grid; place-items: center;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.visionneuse-bouton:hover { background: rgba(255, 255, 255, .28); transform: scale(1.08); }
.visionneuse-bouton svg { width: 22px; height: 22px; }
.visionneuse-fermer { top: 1rem; right: 1rem; }
.visionneuse-prec   { left: 1rem;  top: 50%; margin-top: -23px; }
.visionneuse-suiv   { right: 1rem; top: 50%; margin-top: -23px; }
@media (max-width: 640px) {
  .visionneuse { padding: 4.5rem .75rem; }
  .visionneuse-prec { left: .4rem; }
  .visionneuse-suiv { right: .4rem; }
}

/* ---- Blog : progression de lecture ------------------------------------ */

.progression-lecture {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70;
  background: transparent; pointer-events: none;
}
.progression-lecture span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--bordeaux), var(--sauge));
  transition: width .1s linear;
}

/* ---- Barre d'appel à l'action : petit accent --------------------------- */

.barre-cta { transition: transform .45s var(--ease); }
.barre-cta-fermer { transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.barre-cta-fermer:hover { transform: rotate(90deg); }
