/* ==========================================================================
   L'ATELIER MB EVENTS — DESIGN SYSTEM
   Esprit « maison de luxe » inspiré du langage Dior, reconstruit proprement.
   Principes : beaucoup de blanc, serif élégant, labels capitales espacées,
   photos plein cadre, palette noir / ivoire + accent champagne.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. POLICES AUTO-HÉBERGÉES (RGPD : aucune requête vers Google)
   Cormorant Garamond et Jost sont des polices VARIABLES : un seul fichier
   couvre toute la plage de graisses, d'où le `font-weight: 400 600`. Ne pas
   les redécouper en poids discrets, ce serait le même fichier téléchargé
   plusieurs fois. Les blocs latin-ext ne sont chargés que si un glyphe hors
   latin apparaît (c'est le rôle d'unicode-range).
   Fichiers dans assets/fonts/ — régénérables via scratchpad/fetch-fonts.py.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin-ext-ey1rlQ5.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin-Z98TJlT.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-normal-latin-ext-yjdli-z.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-normal-latin-1nPjtOG.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/jost-normal-latin-ext-Fd9ExEZ.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/jost-normal-latin-kGYPfft.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS (variables)
   -------------------------------------------------------------------------- */
:root {
  /* — Couleurs — */
  --c-noir:        #0a0a0a;   /* noir profond (texte, fonds sombres)        */
  --c-noir-doux:   #1c1a17;   /* noir chaud                                  */
  --c-blanc:       #ffffff;
  --c-ivoire:      #f7f2ec;   /* fond chaud principal                        */
  --c-sable:       #ebe3d7;   /* séparateurs, fonds alternés                 */
  --c-taupe:       #8a7e70;   /* texte secondaire                            */
  --c-champagne:   #b29462;   /* accent or doux (filets, hover, détails)     */
  --c-champagne-cl:#c8ad84;
  --c-rose:        #d8b9ac;   /* touche féminine, à doser avec parcimonie    */

  /* sémantique */
  --bg:            var(--c-ivoire);
  --bg-alt:        var(--c-blanc);
  --text:          var(--c-noir);
  --text-soft:     #6e645a;            /* taupe assombri — contraste AA (≥4.5:1) sur ivoire */
  --accent:        var(--c-champagne);
  --accent-text:   #836429;            /* or foncé pour TEXTE sur fond clair (AA) */
  --line:          rgba(10, 10, 10, 0.12);

  /* — Typographie — */
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans:  "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero:  clamp(3rem, 8vw, 6.5rem);
  --fs-h1:    clamp(2.2rem, 5.2vw, 4rem);
  --fs-h2:    clamp(1.8rem, 3.6vw, 2.8rem);
  --fs-h3:    clamp(1.25rem, 2vw, 1.6rem);
  --fs-body:  clamp(1rem, 1.05vw, 1.08rem);
  --fs-small: 0.85rem;
  --fs-label: 0.72rem;

  --ls-label: 0.24em;   /* espacement des labels capitales */
  --ls-wide:  0.14em;

  /* — Rythme & layout — */
  --space-section: clamp(3.25rem, 7vw, 6rem);
  --space-lg: clamp(2rem, 3.6vw, 3.5rem);
  --space-md: 1.75rem;
  --space-sm: 1rem;
  --maxw: 1320px;
  --maxw-text: 62ch;

  /* — Arrondis — */
  --radius-img: clamp(12px, 1.1vw, 18px);   /* photos : cartes, features, galerie */

  /* — Transitions — */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.25s var(--ease);
  --t-slow: 0.6s var(--ease);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

::selection { background: var(--c-champagne); color: var(--c-blanc); }

/* --------------------------------------------------------------------------
   3. UTILITAIRES TYPO
   -------------------------------------------------------------------------- */
.label {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-soft);
}
.label--accent { color: var(--accent-text); }
.section--dark .label--accent { color: var(--c-champagne-cl); }

.display { font-size: var(--fs-hero); font-weight: 400; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 300;
  color: var(--text-soft);
  max-width: var(--maxw-text);
}

.text-italic { font-style: italic; }
.text-serif  { font-family: var(--font-serif); }

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.section { padding-block: var(--space-section); }
.section--tight { padding-block: var(--space-lg); }
.section--dark { background: var(--c-noir); color: var(--c-blanc); }
.section--dark .label,
.section--dark .lead { color: rgba(255,255,255,0.7); }
.section--alt { background: var(--bg-alt); }

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

.divider {
  width: 56px; height: 1px; background: var(--accent);
  border: 0; margin: var(--space-md) 0;
}
.center .divider { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. BOUTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  padding: 1.15em 2.4em;
  border: 1px solid var(--c-noir);
  background: transparent;
  color: var(--c-noir);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn:hover { background: var(--c-noir); color: var(--c-blanc); }

.btn--solid { background: var(--c-noir); color: var(--c-blanc); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--c-noir); }

.btn--light { border-color: var(--c-blanc); color: var(--c-blanc); }
.btn--light:hover { background: var(--c-blanc); color: var(--c-noir); }

/* lien souligné animé */
.link-underline {
  position: relative;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding-bottom: 2px;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-fast);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* --------------------------------------------------------------------------
   6. HEADER / NAVIGATION (minimal, transparent sur le hero)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.25rem, 5vw, 4rem);
  transition: background var(--t-slow), padding var(--t-slow), box-shadow var(--t-slow), color var(--t-slow);
  color: var(--c-blanc);
}
.site-header.is-scrolled {
  background: var(--c-blanc);
  color: var(--c-noir);
  padding-block: 0.9rem;
  box-shadow: 0 1px 0 var(--line);
}
.site-header__brand {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3.4vw, 1.5rem);
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;   /* « L'Atelier MB Events » ne se coupe jamais en deux lignes */
}
.site-header__brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-top: 0.35rem;
  opacity: 0.8;
  text-align: center;
  /* l'interlettrage ajoute un blanc après la dernière lettre : on le compense
     pour que le sous-titre soit OPTIQUEMENT centré sous « L'Atelier MB Events ». */
  text-indent: 0.34em;
}
.site-nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); }
.site-nav a {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  position: relative; padding-bottom: 3px;
}
.site-nav a::after {
  content:""; position:absolute; left:0; bottom:0; height:1px; width:100%;
  background: currentColor; transform: scaleX(0); transform-origin:right;
  transition: transform var(--t-fast);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin:left; }

.nav-toggle { display: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 0.5rem; z-index: 101; }
.nav-toggle span { display:block; width:26px; height:1px; background: currentColor; margin: 6px 0; transition: var(--t-fast); }

/* --------------------------------------------------------------------------
   6 bis. SÉLECTEUR DE LANGUE (FR · EN · ES)
   Trois codes typographiques, sans drapeau ni pictogramme : un drapeau désigne
   un pays et non une langue, et la charte proscrit les emojis.
   Le texte reste en `currentColor` — donc au contraste déjà validé du header,
   clair comme sombre. L'accent champagne ne porte QUE le filet : sur l'ivoire,
   #b29462 tombe à 2,87:1 et ne passerait pas AA s'il portait du texte.
   -------------------------------------------------------------------------- */
/* Toutes les règles sont préfixées par `.site-header` À DESSEIN : le sélecteur est
   un enfant de `.site-nav`, et `.site-nav a::after` (0,1,2) l'emporterait sinon sur
   `.lang-switch__item::after` (0,1,1). Le filet serait alors gris au lieu de
   champagne sur les LIENS, mais champagne sur le SPAN de la langue active — deux
   traits de couleurs différentes dans le même groupe, sans qu'aucune règle ne
   paraisse fautive à la lecture. */
.site-header .lang-switch { display: flex; align-items: center; }
.site-header .lang-switch__item {
  position: relative;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: inherit;
  padding-bottom: 3px;
  margin-inline: 0.5rem;
}
.site-header .lang-switch__item:first-child { margin-inline-start: 0; }
.site-header .lang-switch__item:last-child  { margin-inline-end: 0; }
/* Filet de séparation, purement décoratif : aucune information ne repose dessus,
   son opacité ne peut donc pas dégrader une lisibilité. */
.site-header .lang-switch__item + .lang-switch__item::before {
  content: ""; position: absolute; left: -0.5rem; top: 0.15em;
  width: 1px; height: 0.85em; background: currentColor; opacity: 0.3;
}
/* Le filet sous le code signale la langue courante — même mécanique que
   `aria-current` dans la navigation principale, pour une lecture cohérente. */
.site-header .lang-switch__item::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--c-champagne); transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-fast);
}
.site-header .lang-switch__item.is-active::after,
.site-header a.lang-switch__item:hover::after { transform: scaleX(1); transform-origin: left; }
.site-header .lang-switch__item.is-active { font-weight: 600; }

/* --------------------------------------------------------------------------
   7 bis. HERO SPLIT (accueil) — texte à gauche, photo entière à droite
   La photo n'est jamais recadrée en largeur : on garde la continuité de la
   scène (le bar à gauche du cadre, les mariés à droite).
   -------------------------------------------------------------------------- */
.hero-split { display: grid; grid-template-columns: 1fr; background: var(--bg); }
/* Le conteneur photo est au format EXACT du cliché (3/4) : la photo le remplit
   donc entièrement — rien n'est rogné, et il n'y a aucun vide autour d'elle.
   Son bord se fond dans l'ivoire grâce à un masque dégradé. */
.hero-split__media { position: relative; order: -1; aspect-ratio: 3 / 2; }
.hero-split__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 12%);
}
.hero-split__text {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: var(--space-md) clamp(1.25rem, 5vw, 4rem);
}
.hero-split__title { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 400; line-height: 1.06; }
.hero-split .lead { margin-bottom: var(--space-md); max-width: 40ch; }
.hero-split .divider { margin-block: 1.1rem; }
.hero-split__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

@media (min-width: 960px) {
  /* Tout le hero tient dans le premier écran, header compris : aucun scroll. */
  .hero-split {
    grid-template-columns: 1fr 50vw;   /* la zone photo démarre pile au milieu de la page */
    align-items: center;
    /* Pas de hauteur imposée : le hero fait la hauteur de son contenu, donc il ne
       descend pas plus bas que nécessaire. Plafonné à un écran. */
    min-height: 0;
  }
  .hero-split__media {
    order: 0; width: 100%; height: auto;
    aspect-ratio: 3 / 2;               /* bandeau paysage : plus large que haut */
    max-height: calc(100svh - 9rem);   /* garde-fou sur très grand écran */
    align-self: center;
  }
  .hero-split__text { padding: var(--space-md) clamp(2.25rem, 4.5vw, 4.5rem); }
  /* Le fichier est déjà au format 3:2 du cadre : rien n'est rogné à l'affichage.
     Le fondu démarre au milieu de la page et n'est totalement opaque qu'aux trois
     quarts de l'écran : la photo se dissout dans l'ivoire au lieu de s'arrêter net. */
  .hero-split__media img {
    object-fit: cover; object-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 55%);
            mask-image: linear-gradient(to right, transparent 0, #000 55%);
  }
}

/* Accueil : le hero est clair et le menu doit rester lisible en toutes circonstances
   → header opaque et dans le flux (sticky), pas superposé à la photo. */
.page-home .site-header {
  position: sticky;
  background: var(--c-blanc);
  color: var(--c-noir);
  box-shadow: 0 1px 0 var(--line);
}
/* Sur l'accueil le header est blanc opaque : l'opacité 0.8 héritée délavait
   --text-soft (#6e645a) en #8b837b, soit 3,73:1 au lieu de 5,78:1 — sous le
   seuil AA pour un texte de cette taille. La couleur était juste, c'est
   l'opacité qui la cassait. */
.page-home .site-header .site-header__brand small { color: var(--text-soft); opacity: 1; }
/* Menu mobile ouvert (fond noir plein écran) : le bouton reste visible quel que soit le thème du header. */
.site-header:has(.site-nav.is-open) .nav-toggle { color: var(--c-blanc); }
/* Rangée de boutons des blocs d'appel à l'action (bas de page, sections sombres). */
.hero__cta { margin-top: var(--space-md); display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

/* --------------------------------------------------------------------------
   8. SECTION INTRO / EDITO
   -------------------------------------------------------------------------- */
.intro { display: grid; gap: var(--space-lg); }
.intro__title { font-size: var(--fs-h1); max-width: 24ch; }
.intro__text  { max-width: var(--maxw-text); color: var(--text-soft); }
@media (min-width: 860px) {
  .intro { grid-template-columns: 1fr 1fr; align-items: end; }
}

/* --------------------------------------------------------------------------
   9. GRILLE DE SERVICES (cartes plein cadre)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid; gap: clamp(0.5rem, 1.5vw, 1rem);
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-img);
  display: flex; align-items: flex-end;
  color: var(--c-blanc);
  isolation: isolate;
}
.service-card__img { position:absolute; inset:0; z-index:-2; }
.service-card__img img { width:100%; height:100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service-card::after {
  content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.7));
  transition: background var(--t-slow);
}
.service-card:hover .service-card__img img { transform: scale(1.06); }
.service-card:hover::after { background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.78)); }
.service-card__body { padding: clamp(1.5rem, 3vw, 2.5rem); width: 100%; }
.service-card__title { font-size: var(--fs-h3); font-weight: 500; }
.service-card__desc { font-size: var(--fs-small); color: rgba(255,255,255,0.85); margin-top: 0.4rem; max-width: 34ch; }
.service-card__more { margin-top: 1rem; display:inline-block; opacity: 0; transform: translateY(8px); transition: var(--t-fast); }
.service-card:hover .service-card__more { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   10. SECTION IMAGE + TEXTE (alternance)
   -------------------------------------------------------------------------- */
.feature { display: grid; gap: var(--space-lg); align-items: center; }
.feature__media { aspect-ratio: 4/5; overflow:hidden; border-radius: var(--radius-img); }
.feature__media img { width:100%; height:100%; object-fit: cover; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
  .feature--reverse .feature__media { order: 2; }
}
.feature__title { font-size: var(--fs-h2); margin-bottom: var(--space-sm); }

/* — étapes numérotées (le concept / l'expérience) — */
.steps { display: grid; gap: var(--space-lg); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border-top: 1px solid var(--line); padding-top: var(--space-md); }
.step__media {
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-img);
  margin-bottom: 1.25rem; background: var(--c-sable);
}
.step__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.step:hover .step__media img { transform: scale(1.04); }
.step__num {
  font-family: var(--font-serif); font-size: 2.5rem; color: var(--accent);
  line-height: 1; display:block; margin-bottom: 1rem;
}
.step__title { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.step__text { color: var(--text-soft); font-size: var(--fs-small); }

/* — bandeau photo large (respiration entre deux blocs de texte) — */
.band-media { aspect-ratio: 24 / 10; overflow: hidden; border-radius: var(--radius-img); background: var(--c-sable); }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .band-media { aspect-ratio: 16 / 10; } }

/* — un événement = une mosaïque de 3 photos + son résumé, alternée gauche/droite — */
.events { display: grid; gap: var(--space-section); }
.event { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.event__photos {
  display: grid; gap: clamp(0.4rem, 1vw, 0.75rem);
  grid-template-columns: 1.45fr 1fr; grid-template-rows: 1fr 1fr;
}
.event__shot { margin: 0; overflow: hidden; border-radius: var(--radius-img); background: var(--c-sable); }
.event__shot:first-child { grid-row: span 2; }        /* la première photo, en grand */
.event__shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.event__shot:hover img { transform: scale(1.05); }
.event__photos { aspect-ratio: 4 / 3; }
.event__title { font-size: var(--fs-h2); margin-top: 0.35rem; }
.event__meta { font-size: var(--fs-label); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-soft); margin: 0.5rem 0 1rem; }
/* Le lieu prolonge la ligne de contexte sans la surcharger. Encre = --accent-text,
   l'or foncé prévu pour le TEXTE sur fond clair : --c-champagne (#b29462) ne tient
   que 2,58:1 sur l'ivoire et servirait ici du texte de petite taille. */
.event__place { color: var(--accent-text); white-space: nowrap; }
.event__text { color: var(--text-soft); margin-bottom: var(--space-sm); max-width: 48ch; }
@media (min-width: 900px) {
  .event { grid-template-columns: 1.15fr 0.85fr; }
  .event:nth-child(even) { grid-template-columns: 0.85fr 1.15fr; }
  .event:nth-child(even) .event__photos { order: 2; }   /* une à gauche, une à droite… */
}

/* — références en bandes alternées (photo à gauche, puis à droite, etc.) — */
.ref-stories { display: grid; gap: var(--space-lg); }
.ref-story { display: grid; gap: clamp(1.25rem, 3.5vw, 2.75rem); align-items: center; }
.ref-story__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-img); background: var(--c-sable); }
.ref-story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ref-story:hover .ref-story__media img { transform: scale(1.04); }
.ref-story__title { font-size: var(--fs-h3); margin: 0.35rem 0 0.6rem; }
.ref-story__text { color: var(--text-soft); font-size: var(--fs-small); max-width: 46ch; }
@media (min-width: 860px) {
  .ref-story { grid-template-columns: 0.9fr 1.1fr; }
  .ref-story:nth-child(even) { grid-template-columns: 1.1fr 0.9fr; }
  .ref-story:nth-child(even) .ref-story__media { order: 2; }
}

/* --------------------------------------------------------------------------
   11. CITATION / BANNIÈRE
   -------------------------------------------------------------------------- */
.quote { text-align:center; max-width: 40ch; margin-inline:auto; }
.quote p { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.6rem, 3.5vw, 2.6rem); line-height: 1.25; }
.quote cite { display:block; margin-top: var(--space-md); font-style: normal; }

/* --------------------------------------------------------------------------
   12. FAQ (accordéon)
   -------------------------------------------------------------------------- */
.faq { max-width: 56rem; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: var(--space-md) 0;
  display:flex; justify-content: space-between; align-items:center; gap: 1rem;
  font-family: var(--font-serif); font-size: var(--fs-h3); font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display:none; }
.faq__item summary::after { content:"+"; font-family: var(--font-sans); font-weight: 300; font-size: 1.5rem; transition: transform var(--t-fast); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding-bottom: var(--space-md); color: var(--text-soft); max-width: var(--maxw-text); }

/* --------------------------------------------------------------------------
   13. FORMULAIRE DE CONTACT
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-md); max-width: 46rem; }
.form__row { display:grid; gap: var(--space-md); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.5rem; }
/* `display:grid` l'emporte sur la règle par défaut de [hidden] : sans cette ligne,
   le champ « Précisez » masqué par le script resterait affiché. */
.field[hidden] { display: none; }
.field label { font-size: var(--fs-label); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-soft); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: var(--fs-body); font-weight: 300;
  padding: 0.95em 1em; border: 1px solid var(--line); background: var(--c-blanc); color: var(--text);
  border-radius: 0; transition: border-color var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 9rem; }
.form .help { font-size: var(--fs-small); color: var(--text-soft); }
.form-error { color: #a13a2c; font-size: var(--fs-small); }
.alert { padding: 1.1rem 1.4rem; border: 1px solid var(--line); background: var(--c-blanc); font-size: var(--fs-small); }
.alert--success { border-color: var(--accent); }
.alert--error { border-color: #a4402f; border-left-width: 3px; color: #7d2f22; }

/* bandeau coordonnées rapides */
.contact-strip { display:grid; gap: var(--space-lg); }
@media (min-width: 760px) { .contact-strip { grid-template-columns: repeat(3,1fr); } }
.contact-strip a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--c-noir); color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--c-blanc); }
.footer-grid { display:grid; gap: var(--space-lg); padding-block: var(--space-lg); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-serif); font-size: 1.8rem; color: var(--c-blanc); }
.footer-col h3 { font-family: var(--font-sans); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 1.25rem; font-weight: 400; }
.footer-col ul { list-style:none; padding:0; display:grid; gap:0.7rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 1.75rem; display:grid; justify-items:center; text-align:center; gap:0.9rem; font-size: var(--fs-small); color: rgba(255,255,255,0.5); }

/* Signature Snoussi IA Dev Consulting — crédit typographique : ni pictogramme ni animation
   (le cœur et la flamme faisaient « emoji », hors registre d'une marque de luxe).
   Reprend les deux voix du site : la phrase en Cormorant italique (comme les citations),
   le nom en capitales espacées champagne (comme les labels). */
.site-signature {
  display:inline-flex; align-items:baseline; justify-content:center; flex-wrap:wrap;
  column-gap: 0.75em; row-gap: 0.45em;
}
.site-signature .sig-label {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.05rem; letter-spacing: 0.01em; color: rgba(255,255,255,0.58);
}
.site-signature a {
  font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 400;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--c-champagne-cl);
}
.site-signature a:hover { color: var(--c-blanc); }

/* --------------------------------------------------------------------------
   15. CLIC-TO-CALL FLOTTANT (mobile)
   -------------------------------------------------------------------------- */
.fab-call {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-noir); color: var(--c-blanc);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: background var(--t-fast), transform var(--t-fast);
}
.fab-call:hover { background: var(--accent); color: var(--c-noir); transform: translateY(-2px); }
@media (min-width: 900px) { .fab-call { display: none; } }

/* --------------------------------------------------------------------------
   16. ANIMATIONS AU SCROLL (reveal)
   -------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   17. RESPONSIVE — NAV MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center;
    gap: 2rem; background: var(--c-noir); color: var(--c-blanc);
    transform: translateX(100%); transition: transform var(--t-slow); z-index: 99;
  }
  .site-nav.is-open { transform: none; }
  .site-nav a { font-size: 1.1rem; }
  /* Le sélecteur ferme le menu plein écran : il reste sur une ligne, un cran
     au-dessous des liens, pour ne pas se lire comme une septième rubrique.
     `.site-nav a` vient de passer à 1.1rem — on redescend les codes de langue. */
  .site-header .lang-switch { margin-top: 0.25rem; }
  .site-header .lang-switch__item { font-size: 0.9rem; }
}

/* --------------------------------------------------------------------------
   19. GALERIE (masonry)
   -------------------------------------------------------------------------- */
.gallery { columns: 1; column-gap: clamp(0.5rem, 1.5vw, 1rem); }
@media (min-width: 600px)  { .gallery { columns: 2; } }
@media (min-width: 1000px) { .gallery { columns: 3; } }
.gallery__item {
  position: relative; display: block; break-inside: avoid;
  margin: 0 0 clamp(0.5rem, 1.5vw, 1rem); overflow: hidden;
  border-radius: var(--radius-img); background: var(--c-sable);
}
.gallery__item img { width: 100%; height: auto; display: block; transition: transform 1s var(--ease), filter var(--t-slow); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.65));
  opacity: 0; transition: opacity var(--t-slow);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__cap {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  padding: 1.25rem; color: #fff; font-size: var(--fs-small);
  opacity: 0; transform: translateY(8px); transition: var(--t-fast);
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: none; }
/* Sur mobile / écrans tactiles (pas de survol) : la légende reste lisible. */
@media (hover: none) {
  .gallery__item::after { opacity: 1; }
  .gallery__cap { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   20. RÉFÉRENCES (« ils nous ont fait confiance »)
   -------------------------------------------------------------------------- */
/* Les filets viennent du box-shadow de chaque carte (et non du fond de la grille) :
   une dernière ligne incomplète ne laisse ainsi aucun bloc gris à la place des cases vides. */
.refs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; }
@media (min-width: 700px)  { .refs-grid { grid-template-columns: repeat(3, 1fr); } }
.ref-card {
  background: var(--bg); padding: clamp(2rem, 4vw, 3rem) 1.5rem; text-align: center;
  display: grid; gap: 0.4rem; place-content: center; min-height: 180px;
  box-shadow: 0 0 0 1px var(--line);
  transition: background var(--t-fast);
  /* min-width:0 + coupure autorisée : sans ça un pseudo Instagram long
     (@sposami_weddingcontentcreator) élargit la colonne et fait déborder la page en mobile. */
  min-width: 0;
}
.ref-card > * { overflow-wrap: anywhere; }
.ref-card:hover { background: var(--c-blanc); }
.ref-card__name { font-family: var(--font-serif); font-size: var(--fs-h3); }
.ref-card__type { font-size: var(--fs-label); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-soft); }
.ref-card__handle { font-size: var(--fs-label); letter-spacing: var(--ls-wide); color: var(--text-soft); margin-top: 0.35rem; }

/* Carte cliquable : le lien enveloppe la carte entière (cible tactile confortable). */
a.ref-card { text-decoration: none; color: inherit; }
a.ref-card:hover .ref-card__name,
a.ref-card:focus-visible .ref-card__name { color: var(--accent-text); }
a.ref-card:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

/* Logo officiel : neutralisé au repos pour ne pas casser la palette ivoire/noir,
   révélé en couleur au survol. */
.ref-card__logo {
  max-width: min(170px, 75%); max-height: 52px; width: auto; height: auto;
  object-fit: contain; margin: 0 auto 0.6rem;
  filter: grayscale(1); opacity: 0.72; transition: filter var(--t-fast), opacity var(--t-fast);
}
a.ref-card:hover .ref-card__logo,
a.ref-card:focus-visible .ref-card__logo { filter: none; opacity: 1; }

/* Photographe officielle : bandeau pleine largeur en tête de grille. */
.ref-card--featured { grid-column: 1 / -1; padding-block: clamp(2.25rem, 4vw, 3rem); }
.ref-card--featured .ref-card__name { font-size: var(--fs-h2); }
.ref-card--featured .ref-card__type { color: var(--accent-text); }
.ref-card--featured .ref-card__logo { max-height: 72px; }

/* --------------------------------------------------------------------------
   18. ACCESSIBILITÉ
   -------------------------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position:absolute; left:-9999px; top:0; background:var(--c-noir); color:#fff; padding:1rem; z-index:200; }
.skip-link:focus { left: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
/* Filet de sécurité : le contenu est masqué en attendant que le JavaScript le révèle,
   donc sans JavaScript il ne l'est jamais. Mesuré sur la production le 17/08/2026 :
   14 blocs sur 14 restaient invisibles sur l'accueil, soit une page blanche. Ici on ne
   masque donc rien du tout. Les navigateurs qui ignorent `scripting` gardent l'ancien
   comportement : aucune régression possible. */
@media (scripting: none) {
  [data-reveal] { opacity: 1; transform: none; }
}
