/*
Theme Name: Sylvain & Waël
Theme URI: https://example.invalid/
Author: Alter Invest pour Sylvain & Waël
Description: Thème du site de mariage de Sylvain et Waël (Bastide de Bellegarde, Avignon). Feuille blanche sur cadre beige, ornements dorés, trois langues avec Polylang (français, anglais, arabe de droite à gauche). Formulaires de réponse et de playlist intégrés, installeur dans le menu « Mariage ».
Version: 1.0.6
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sylvain-wael
*/

/*
  Sylvain & Waël — feuille de style du site de mariage.
  Écrite pour la maquette, destinée à être reprise telle quelle par le thème WordPress.

  Charte (d'après le faire-part, le carton de cérémonie et les deux schémas) :
  - cadre beige, feuille blanche, ornements dorés, vert pour le menu, les liens et les boutons ;
  - photos en couleurs ; aucun portrait des mariés (cœur au monogramme sur l'accueil, silhouettes dorées en bas de page) ;
  - un seul caractère, celui du faire-part (Times), gras et serré pour les titres, italique pour les précisions ;
  - trois ornements fournis : monogramme SW (logo, à gauche du menu), filet avec un nœud (sous le menu et en séparateur),
    frise au cœur entrelacé (en bas de page seulement) ;
  - des formes douces, à l'image du cœur entrelacé : feuille en arche, angles arrondis, boutons en pastille, portraits en arche.

  Les ornements sont des images dorées prêtes à afficher (assets/*-or.png), posées en image de fond :
  elles s'affichent partout, y compris quand la page est ouverte hors d'un serveur.
  Mise en page en propriétés logiques (inline-start / inline-end) : la version arabe se retourne toute seule avec dir="rtl".
*/

/* ---------- Polices (hébergées sur le site, aucune requête extérieure) ---------- */
@font-face { font-family: "Tinos"; src: url("assets/fonts/tinos-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Tinos"; src: url("assets/fonts/tinos-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Tinos"; src: url("assets/fonts/tinos-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Tinos"; src: url("assets/fonts/tinos-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("assets/fonts/amiri-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Amiri"; src: url("assets/fonts/amiri-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ---------- Jetons ---------- */
:root {
  --blanc: #ffffff;         /* la feuille */
  --beige: #f2eadc;         /* le cadre */
  --beige-clair: #f9f5ee;   /* aplats doux dans la feuille */
  --beige-trait: #e2d6c2;   /* traits discrets */
  --vert: #44563c;          /* vert cyprès : menu, liens, boutons */
  --vert-fonce: #2e3b29;
  --or: #b48a2c;            /* ornements */
  --or-fonce: #8c6a1e;      /* doré lisible en texte */
  --or-coeur: #c49e42;      /* doré du trait du cœur entrelacé : silhouettes, noms des mariés, titre de l'accueil */
  --or-trait: rgba(180, 138, 44, .42);
  --encre: #141311;         /* texte, noir des photos */
  --gris: #5f5b53;

  --police: "Times New Roman", "Tinos", "Liberation Serif", Times, serif;
  --police-ar: "Amiri", "Times New Roman", "Tinos", serif;

  --feuille-marge: clamp(1.25rem, 6vw, 5rem);
  --rond: clamp(1rem, 2.2vw, 1.5rem);            /* cartes, photos, panneaux */
  --rond-grand: clamp(1.6rem, 4.5vw, 3.25rem);   /* bas de la feuille, grands panneaux */
  --arche: clamp(2.25rem, 7vw, 6rem);            /* flèche de l'arche qui coiffe la feuille */
}

/* ---------- Socle ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--beige);
  color: var(--encre);
  font-family: var(--police);
  font-size: 1.1875rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
a { color: var(--vert); text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--or); text-underline-offset: .2em; transition: color .2s; }
a:hover { color: var(--or-fonce); }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
[hidden] { display: none !important; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.45rem); }
h3 { font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.15; }

.lien-evitement { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--blanc); padding: .5rem 1rem; z-index: 10; }
.lien-evitement:focus { top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Ornements dorés (images de fond) ---------- */
.orn { display: block; background-repeat: no-repeat; background-position: center; background-size: 100% 100%; }
.frise { background-image: url("assets/frise-coeur-or.png"); aspect-ratio: 2140 / 354; width: 100%; }
.filet { background-image: url("assets/filet-noeud-or.png"); aspect-ratio: 1188 / 30; width: min(27rem, 74%); margin-inline: auto; }
.sceau { background-image: url("assets/monogramme-sw-or.png"); aspect-ratio: 1; width: 100%; }

/* ---------- Cadre beige ---------- */
.cadre { max-width: 71rem; margin-inline: auto; padding: 0 clamp(.75rem, 3vw, 1.75rem) clamp(1.5rem, 4vw, 2.5rem); }

/* ---------- En-tête : la barre de menu entre deux filets, avec le monogramme (logo) à gauche du menu, puis la baseline centrée dessous ---------- */
.entete { --filet: 1.35rem; --menu-haut: calc(clamp(3.6rem, 7.2vw, 5.5rem) + .6rem); --logo: calc(var(--menu-haut) + var(--filet)); position: relative; padding-top: clamp(.9rem, 2.2vw, 1.5rem); text-align: center; }
.frise-zone { overflow: hidden; }
/* Le logo est un enfant de la barre de menu : première colonne de sa grille, sur la ligne du menu.
   Il va du trait du filet du haut à celui du filet du bas (--logo = hauteur de la ligne du menu + un filet), dans leur prolongement. */
.monogramme { grid-column: 1; grid-row: 2; justify-self: start; display: block; width: var(--logo); margin-block: calc(var(--filet) / -2); border-radius: 50%; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.monogramme:hover { transform: rotate(-6deg); }
.baseline { margin: clamp(.45rem, 1.2vw, .8rem) auto 0; max-width: 36rem; padding-inline: 1rem; font-style: italic; font-size: clamp(1.02rem, 2.2vw, 1.32rem); line-height: 1.3; color: var(--gris); text-wrap: balance; }

/* Grille à trois colonnes, égales de part et d'autre de la liste : le menu est centré sur l'axe de la page, exactement entre les nœuds des deux filets ;
   le logo occupe la colonne de gauche, le sélecteur de langue celle de droite, sans décaler le menu. */
.menu { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: var(--filet) minmax(var(--menu-haut), auto) auto var(--filet); align-items: center; column-gap: .75rem; }
/* Deux filets au nœud encadrent le menu, l'un au-dessus (filet--haut), l'autre au-dessous : chacun occupe toujours sa propre ligne (100 %),
   l'image étant dessinée au centre sur 50rem au plus, et toujours plus courte que l'espace laissé entre le logo et son symétrique. */
.menu .filet { grid-column: 1 / -1; grid-row: 4; width: 100%; aspect-ratio: auto; height: var(--filet); margin: 0; background-size: min(50rem, calc(100% - 2 * (var(--logo) + .75rem))) auto; }
.menu .filet--haut { grid-row: 1; }
.menu-liste { grid-column: 2; grid-row: 2; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.menu-liste li { position: relative; }
.menu-liste li + li::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 1px; height: 1.05em; transform: translateY(-50%); background: var(--or); opacity: .75; }
.menu-liste a { display: block; padding: .78rem .95rem; color: var(--vert); text-decoration: none; font-size: 1.0625rem; line-height: 1.2; white-space: nowrap; }
.menu-liste a:hover { color: var(--or-fonce); }
.menu-liste a[aria-current="page"] { color: var(--encre); font-weight: 700; letter-spacing: -.015em; background: linear-gradient(var(--or), var(--or)) 50% calc(100% - .42rem) / calc(100% - 1.9rem) 1px no-repeat; }
.langues { grid-column: 3; grid-row: 2; justify-self: end; list-style: none; display: flex; white-space: nowrap; margin: 0; padding: 0; font-size: .98rem; }
.langues li + li::before { content: "·"; color: var(--or); }
.langues a { display: inline-block; padding: .5rem .45rem; color: var(--gris); text-decoration: none; }
.langues a:hover { color: var(--or-fonce); }
.langues a[aria-current="true"] { color: var(--encre); font-weight: 700; }
.menu-bouton { grid-column: 1; grid-row: 2; justify-self: start; display: none; align-items: center; gap: .6rem; font: inherit; font-size: 1.0625rem; color: var(--vert); background: none; border: 0; padding: .7rem .25rem; cursor: pointer; }
.menu-bouton i { width: 1.25rem; height: .62rem; border-block: 1px solid currentColor; display: block; }

/* ---------- Feuille blanche ---------- */
/* Le haut de la feuille est une arche (deux quarts d'ellipse), le bas a de grands angles arrondis. */
.feuille { position: relative; background: var(--blanc); margin-top: clamp(1rem, 2.4vw, 1.5rem); padding: calc(var(--arche) * .62 + clamp(1.5rem, 3.5vw, 2.75rem)) var(--feuille-marge) clamp(2.5rem, 6vw, 5rem); border-radius: 50% 50% var(--rond-grand) var(--rond-grand) / var(--arche) var(--arche) var(--rond-grand) var(--rond-grand); box-shadow: 0 34px 60px -48px rgba(96, 72, 20, .5); }

/* Comme la lettre de l'accueil, l'en-tête de chaque page remonte dans l'arche de la feuille : pas de blanc inutile sous le menu. */
.titre-page { text-align: center; margin-top: calc(var(--arche) * -.55 - .4rem); margin-bottom: clamp(2.25rem, 5.5vw, 3.75rem); }
.chapo { margin: .7rem auto 0; max-width: 34rem; font-style: italic; font-size: clamp(1.18rem, 2.5vw, 1.5rem); line-height: 1.3; color: var(--gris); text-wrap: balance; }
.titre-page .filet { margin-top: 1.5rem; }
.chapo--discret { margin-top: 0; max-width: 31rem; font-size: clamp(1.05rem, 1.9vw, 1.2rem); line-height: 1.4; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Titre doré en italique : lettre de l'accueil, introduction du programme. */
.titre-or { color: var(--or-coeur); font-style: italic; font-weight: 400; letter-spacing: -.012em; line-height: 1.1; font-size: clamp(2.35rem, 5.6vw, 3.7rem); }
/* Lignes d'introduction centrées, coupées là où le texte va à la ligne. */
.intro-ligne { margin: 1.45em auto 0; max-width: 32rem; white-space: pre-line; text-wrap: balance; font-size: clamp(1.14rem, 1.9vw, 1.32rem); line-height: 1.45; }
.titre-or + .intro-ligne { margin-top: clamp(1.4rem, 3.5vw, 2.1rem); }
.intro-tenue { font-style: italic; }
.titre-page > .liste-mot:first-of-type, .titre-page > .visuellement-cache + .intro-ligne { margin-top: 0; }   /* texte d'introduction qui tient lieu de titre */
.liste-mot { max-width: 40rem; }
/* Au bas du programme, sous un filet : la suite du week-end. */
.programme + .separateur { margin-top: 0; }
.programme-suite { margin-top: 0; text-align: center; text-wrap: balance; }
.titre-page .intro-ligne + .filet { margin-top: 2.1rem; }
.surtitre { margin: 0 0 .55rem; font-style: italic; font-size: 1.18rem; color: var(--vert); }
.separateur { margin-block: clamp(2.75rem, 7vw, 4.75rem); }
.centre { text-align: center; }
.etroit { max-width: 40rem; margin-inline: auto; }
.section-titre { text-align: center; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-titre p { margin: .6rem auto 0; max-width: 36rem; color: var(--gris); }

/* ---------- Boutons ---------- */
.bouton { display: inline-block; font: inherit; font-size: 1.0625rem; line-height: 1.2; color: #fff; background: var(--vert); border: 1px solid var(--vert); border-radius: 999px; padding: .82rem 1.9rem; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.bouton:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); color: #fff; }
.bouton--clair { background: transparent; color: var(--vert); }
.bouton--clair:hover { background: var(--vert); color: #fff; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; }

/* ---------- Accueil : le faire-part vivant ---------- */
/* Le titre centré, puis un triptyque : la date à gauche, le cœur du faire-part au milieu, le lieu à droite ; le bouton de réponse dessous. */
/* La lettre des mariés (accueil) : titre doré, texte centré en colonne étroite, signature dorée. */
.lettre { text-align: center; margin-top: calc(var(--arche) * -.55 - .4rem); }   /* le titre remonte dans l'arche de la feuille */
.lettre-texte { max-width: 31rem; margin: clamp(1.6rem, 4vw, 2.5rem) auto 0; font-size: clamp(1.16rem, 1.9vw, 1.34rem); line-height: 1.5; }
.lettre-texte p { margin: 0 0 1.15em; white-space: pre-line; text-wrap: balance; }
.lettre-salut { margin: 1.9em 0 0; font-size: clamp(1.16rem, 1.9vw, 1.34rem); }
.lettre-signature { margin: .3rem 0 0; color: var(--or-coeur); font-style: italic; font-size: clamp(2rem, 4.6vw, 2.9rem); line-height: 1.15; letter-spacing: -.01em; }
/* Accueil, seconde partie : les mariés de dos (silhouettes dorées), un filet, la phrase, puis une seule grande photo. */
.dos-silhouettes { display: block; width: min(20rem, 60%); height: auto; margin-inline: auto; }
.dos-phrase { margin: 0 auto clamp(1.25rem, 3vw, 2rem); text-align: center; }
.photo-grande { position: relative; margin: 0 auto; max-width: 38rem; display: grid; place-items: center; overflow: hidden; background: var(--beige-clair); border-radius: var(--rond-grand); }
.photo-grande img { display: block; width: 100%; height: auto; }   /* la photo garde ses proportions */
.photo-grande--vide { max-width: 54rem; aspect-ratio: 3 / 2; }
.photo-grande--paysage { max-width: 54rem; }   /* photo en largeur : cadre plus large */   /* emplacement tant qu'aucune photo n'est posée */
.photo-grande .sceau { width: 15%; opacity: .34; }
.photo-grande figcaption { position: absolute; inset-inline: 0; bottom: 1.1rem; text-align: center; font-style: italic; font-size: .98rem; color: var(--gris); }
.accueil-hero { text-align: center; }
.accueil-hero h1 { color: var(--or-coeur); font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
.hero-texte { margin: 1.1rem auto 0; max-width: 34rem; color: var(--gris); }
.hero-triptyque { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem) minmax(0, 1fr); align-items: center; column-gap: clamp(1rem, 3.5vw, 3.25rem); margin-top: clamp(1.25rem, 3.5vw, 2.5rem); }
.hero-fait { padding-bottom: clamp(2rem, 9vw, 7.5rem); }   /* centré sur la partie pleine du cœur, non sur sa pointe */
.hero-fait p { margin: 0; }
.hero-fait--quand { text-align: end; }
.hero-fait--ou { text-align: start; }
.hero-fait .hero-etiquette { margin-bottom: .55rem; font-style: italic; font-size: 1.18rem; color: var(--vert); }
.hero-jour, .hero-mois, .hero-ville { font-size: clamp(1.25rem, 2.3vw, 1.65rem); line-height: 1.2; }
.hero-fait .hero-nombre { display: inline-block; margin-block: .45rem .5rem; padding: .28rem .12rem .2rem; border-block: 1px solid var(--or); font-weight: 700; font-size: clamp(4.4rem, 9vw, 7rem); line-height: .9; letter-spacing: -.05em; }
.hero-lieu { font-weight: 700; font-size: clamp(1.75rem, 3.3vw, 2.5rem); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.hero-fait .hero-ville { margin-top: .35rem; }
.hero-fait .hero-lien { margin-top: 1rem; font-size: 1.08rem; }
.accueil-hero > .actions { justify-content: center; margin-top: clamp(.25rem, 1.5vw, 1rem); }
.fairepart { position: relative; container-type: inline-size; width: 100%; max-width: 30rem; margin: 0 auto; direction: ltr; }
.fairepart img { width: 100%; aspect-ratio: 1024 / 1536; }
.fairepart p { position: absolute; margin: 0; text-align: center; }
.fp-noms { left: 2%; right: 0; top: 58.4%; color: var(--or-coeur); font-weight: 700; font-size: 7.7cqw; letter-spacing: -.045em; line-height: 1; }
.fp-phrase { left: 16%; right: 13%; top: 71.4%; font-size: 4.35cqw; line-height: 1.32; text-wrap: balance; }
.fp-date { right: 9.5%; top: 90%; font-style: italic; font-size: 3.5cqw; line-height: 1.2; }

.duo { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.photo-cadre { position: relative; margin: 0; isolation: isolate; max-width: 26rem; width: 100%; justify-self: center; }
.photo-cadre { --arc: 50% 50% var(--rond) var(--rond) / 34% 34% var(--rond) var(--rond); }   /* portrait en arche */
.photo-cadre img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--arc); }
.photo-cadre::after { content: ""; position: absolute; inset-block: .8rem -.8rem; inset-inline: .8rem -.8rem; border: 1px solid var(--or); border-radius: var(--arc); z-index: -1; }
.duo-texte p { color: var(--gris); max-width: 30rem; }
.duo-texte h2 { margin-bottom: 1rem; }

/* ---------- Formulaires ---------- */
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2.25rem; max-width: 46rem; margin-inline: auto; }
.champ { display: flex; flex-direction: column; gap: .3rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.champ--large { grid-column: 1 / -1; }
.champ > label, .champ > legend { font-style: italic; color: var(--vert); font-size: 1.08rem; padding: 0; }
.champ input:not([type="radio"]):not([type="checkbox"]), .champ textarea, .champ select { font: inherit; color: var(--encre); background: transparent; border: 0; border-bottom: 1px solid #b9b2a4; border-radius: 0; padding: .4rem 0 .5rem; width: 100%; transition: border-color .2s, box-shadow .2s; }
.champ textarea { min-height: 6.5rem; resize: vertical; border: 1px solid #b9b2a4; border-radius: 1rem; padding: .8rem 1rem; margin-top: .3rem; }
.champ input:focus, .champ textarea:focus, .champ select:focus { outline: none; border-color: var(--or); box-shadow: 0 1px 0 var(--or); }
.champ textarea:focus { box-shadow: 0 0 0 1px var(--or); }
.choix { display: flex; flex-wrap: wrap; gap: .55rem .6rem; margin-top: .35rem; }
.choix label { position: relative; display: inline-flex; align-items: center; border: 1px solid var(--beige-trait); border-radius: 999px; padding: .42rem 1.05rem; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.choix input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choix label:hover { border-color: var(--or); }
.choix label:has(input:checked) { background: var(--vert); border-color: var(--vert); color: #fff; }
.choix label:has(input:focus-visible) { outline: 2px solid var(--or); outline-offset: 2px; }
.formulaire .actions { grid-column: 1 / -1; justify-content: center; margin-top: .4rem; }
.mention { grid-column: 1 / -1; text-align: center; font-size: .98rem; color: var(--gris); font-style: italic; margin: 0; }
.message-ok { grid-column: 1 / -1; text-align: center; background: var(--beige-clair); border-radius: var(--rond); padding: 1.5rem 1.6rem; }

/* ---------- Clichés ---------- */
.cliches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, 1.6vw, 1.15rem); padding-bottom: 1.6rem; }
.cliche { position: relative; margin: 0; aspect-ratio: 4 / 5; background: var(--beige-clair); border-radius: 50% 50% var(--rond) var(--rond) / 34% 34% var(--rond) var(--rond); overflow: hidden; display: grid; place-items: center; }
.cliche:nth-child(even) { transform: translateY(1.6rem); }
.cliche img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.cliche:hover img { transform: scale(1.04); }
.cliche .sceau { width: 34%; opacity: .34; }
.cliche figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 1.6rem .8rem .55rem; font-style: italic; font-size: .98rem; text-align: center; background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .94) 62%); }

/* ---------- Cartes, grilles (infos pratiques, liste, contacts) ---------- */
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; max-width: 52rem; margin-inline: auto; }
.carte { background: var(--beige-clair); border-radius: var(--rond); padding: 1.45rem 1.6rem 1.55rem; display: flex; flex-direction: column; }
.carte h3 { margin-bottom: .25rem; }
.carte .meta { font-style: italic; color: var(--vert); font-size: 1.02rem; margin: 0 0 .6rem; }
.carte p { font-size: 1.08rem; margin: 0 0 .5rem; }
.carte .liens { margin-top: auto; padding-top: .6rem; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: 1.04rem; }
/* Contacts : les deux mariés de part et d'autre, la carte du milieu (la première dans la page : Malika) décalée vers le bas
   de trois cinquièmes de sa hauteur. Huit rangées égales : les cartes des côtés occupent les rangées 1 à 5, celle du milieu les rangées 4 à 8. */
.grille-3.grille-3--decale { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(8, 1fr); row-gap: 0; }
.grille-3--decale > :nth-child(1) { grid-column: 2; grid-row: 4 / 9; }
.grille-3--decale > :nth-child(2) { grid-column: 1; grid-row: 1 / 6; }
.grille-3--decale > :nth-child(3) { grid-column: 3; grid-row: 1 / 6; }
/* Une seule carte, de la largeur des autres, au milieu de la grille (le lieu de la fête, sur Contacts). */
.grille-3.grille-3--seule { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille-3--seule > * { grid-column: 2; }
/* Carte avec médaillon (contacts) : rond cerné d'or, profil doré tiré des silhouettes ou initiale. */
.carte--portrait { align-items: center; text-align: center; }
.carte--portrait .liens { justify-content: center; }
.medaillon { display: grid; place-items: center; flex: none; width: 5.75rem; aspect-ratio: 1; margin: 0 0 .9rem; border-radius: 50%; background: var(--blanc); border: 1px solid var(--or-coeur); overflow: hidden; color: var(--or-coeur); font-style: italic; font-size: 2.7rem; line-height: 1; }
.medaillon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lieu { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem 2rem; align-items: center; background: var(--beige-clair); border-radius: var(--rond-grand); padding: clamp(1.4rem, 3.5vw, 2.1rem) clamp(1.4rem, 4vw, 2.75rem); }
.lieu p { margin: .35rem 0 0; color: var(--gris); }
.lieu--texte { grid-template-columns: minmax(0, 1fr); }   /* sans bouton : le lien vers la carte termine le texte */
.sommaire { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 0; list-style: none; padding: 0; margin: 1.6rem 0 0; }
.sommaire li + li::before { content: "·"; color: var(--or); margin-inline: .8rem; }
/* Sous-menu d'une page, à la place de son titre (Infos pratiques) : les rubriques de la page, en ligne. */
.sommaire--menu { margin: 0; gap: .45rem 0; font-size: clamp(1.08rem, 1.9vw, 1.22rem); }
.sommaire.sommaire--menu a { text-decoration: none; color: var(--vert); padding: .2rem 0 .38rem; }
.sommaire.sommaire--menu a:hover { color: var(--or-fonce); }
/* La rubrique en cours est soulignée comme l'onglet en cours du menu principal (tenue à jour par site.js). */
.sommaire.sommaire--menu a[aria-current] { color: var(--encre); font-weight: 700; letter-spacing: -.015em; background: linear-gradient(var(--or), var(--or)) 50% 100% / 100% 1px no-repeat; }
.sommaire--menu li + li::before { margin-inline: clamp(.6rem, 1.6vw, 1.1rem); }

/* ---------- Photos : en couleurs (la classe « nb » sur un bloc image le passe en noir et blanc) ---------- */
.photos { display: grid; gap: clamp(.5rem, 1.4vw, .9rem); margin-block: clamp(1.5rem, 4vw, 2.5rem); }
.photos figure { margin: 0; min-width: 0; }
.photos img { display: block; width: 100%; object-fit: cover; background: var(--beige-clair); border-radius: var(--rond); }
.photos .nb img, .photos img.nb, .cliches .nb img { filter: grayscale(1) contrast(1.05); }
.photos figcaption { padding-top: .45rem; font-style: italic; font-size: .98rem; line-height: 1.3; color: var(--gris); text-align: center; }
.photos--triptyque { grid-template-columns: 1.4fr 1fr 1fr; }
.photos--triptyque img { height: clamp(11rem, 25vw, 17.5rem); }
/* Deux photos de même taille, ou quatre en ligne (activités). */
.photos--duo { grid-template-columns: 1fr 1fr; max-width: 46rem; margin-inline: auto; }
.photos--quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.photos--duo img, .photos--quatre img { height: clamp(10rem, 22vw, 15.5rem); }
.photos--bandeau img { aspect-ratio: 21 / 9; }
.photos.photos--entiere img { aspect-ratio: auto; height: auto; }   /* photo seule, montrée entière, sans recadrage */
.photos--haut img { aspect-ratio: 16 / 9; }
.photos img.sans-cadre { background: none; border-radius: 0; object-fit: contain; }   /* objet détouré sur fond blanc : posé à même la feuille */   /* bandeau plus haut, pour un sujet qui ne supporte pas d'être coupé (façade de la gare) */
.credits a { color: inherit; }
.credits { margin: clamp(2.5rem, 6vw, 3.5rem) auto 0; max-width: 46rem; font-style: italic; font-size: .92rem; line-height: 1.45; color: var(--gris); text-align: center; }

/* ---------- Programme ---------- */
.jour { text-align: center; margin: 0 0 1.2rem; }
.jour + .photos { margin-top: 0; }
.programme + .photos { margin-top: 0; margin-bottom: clamp(2.5rem, 6vw, 3.75rem); }
.programme { --col: 6.25rem; list-style: none; margin: 0 auto clamp(2.25rem, 6vw, 3.5rem); padding: 0; max-width: 42rem; position: relative; }
.programme::before { content: ""; position: absolute; inset-block: .9rem; inset-inline-start: calc(var(--col) + 1.5rem); width: 1px; background: var(--or-trait); }
.programme li { position: relative; display: grid; grid-template-columns: var(--col) minmax(0, 1fr); column-gap: 3rem; padding-block: .95rem; }
.programme li::before { content: ""; position: absolute; inset-inline-start: calc(var(--col) + 1.5rem - 4px); top: 1.5rem; width: 9px; height: 9px; border-radius: 50%; background: var(--blanc); border: 1px solid var(--or); }
.programme .heure { font-style: italic; color: var(--vert); text-align: end; white-space: nowrap; }
.programme h3 { margin-bottom: .2rem; }
.programme p { margin: 0; color: var(--gris); font-size: 1.08rem; }
/* Liste sans heures (activités) : le fil doré et ses points à gauche, le texte à droite. */
.programme--libre { max-width: 36rem; }
.programme--libre::before { inset-inline-start: 4px; }
.programme--libre li { grid-template-columns: minmax(0, 1fr); padding-inline-start: 2.1rem; }
.programme--libre li::before { inset-inline-start: 0; }

/* ---------- Playlist ---------- */
.titres { list-style: none; counter-reset: titre; margin: 0 auto; padding: 0; max-width: 40rem; }
.titres li { counter-increment: titre; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: .9rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--beige-trait); }
.titres li::before { content: counter(titre, decimal-leading-zero); font-style: italic; color: var(--or-fonce); }
.titres strong { letter-spacing: -.015em; }
.titres span { color: var(--gris); font-style: italic; font-size: 1.02rem; }
/* Lecteur d'un enregistrement (fichier mp3) : c'est le lecteur du navigateur, habillé par site.js (bouton rond, piste, durée). */
.lecteur { margin: 0; background: var(--beige-clair); border-radius: var(--rond-grand); padding: 1.6rem 1.6rem 1.5rem; text-align: center; }
.lecteur figcaption p { margin: .25rem 0 0; color: var(--gris); font-style: italic; font-size: 1.02rem; }
.lecteur audio { display: block; width: 100%; margin-top: 1.1rem; }
.lecteur-barre { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem; margin-top: 1.1rem; direction: ltr; }
.lecteur-bouton { position: relative; width: 3.1rem; height: 3.1rem; padding: 0; border-radius: 50%; border: 1px solid var(--or-coeur); background: var(--blanc); color: var(--or-coeur); cursor: pointer; transition: background .2s, color .2s; }
.lecteur-bouton:hover { background: var(--or-coeur); color: var(--blanc); }
.lecteur-bouton::before { content: ""; position: absolute; inset: 0; margin: auto; box-sizing: content-box; width: 0; height: 0; border-block: .55rem solid transparent; border-inline-start: .9rem solid currentColor; transform: translateX(.12rem); }
.lecteur-bouton[aria-pressed="true"]::before { width: .3rem; height: 1rem; border-block: 0; border-inline: .3rem solid currentColor; transform: none; }
/* Deux chansons côte à côte : chaque carte garde sa hauteur quand l'autre déplie ses paroles. */
.grille-2--chansons { max-width: 60rem; align-items: start; }
/* Paroles d'une chanson : un petit bouton sous le lecteur les déplie (élément « détails » du navigateur, sans script). */
.paroles { margin-top: 1.15rem; }
.paroles > summary { display: inline-flex; align-items: center; gap: .55rem; list-style: none; cursor: pointer; padding: .36rem 1rem .4rem; border: 1px solid var(--or-trait); border-radius: 999px; background: var(--blanc); color: var(--vert); font-size: 1rem; line-height: 1.2; transition: border-color .2s, color .2s; }
.paroles > summary::-webkit-details-marker { display: none; }
.paroles > summary::after { content: ""; width: .4rem; height: .4rem; border-inline-end: 1px solid currentColor; border-block-end: 1px solid currentColor; transform: translateY(-.12rem) rotate(45deg); transition: transform .2s; }
.paroles[open] > summary::after { transform: translateY(.1rem) rotate(-135deg); }
.paroles > summary:hover { border-color: var(--or-coeur); color: var(--or-fonce); }
/* Les paroles dépliées : titre doré centré, filet au nœud, couplets alignés à gauche, refrain en italique (premier vers en gras). */
.paroles-texte { margin: 1.5rem -.7rem 0; text-align: left; font-family: var(--police); font-size: .95rem; line-height: 1.3; color: var(--encre); }   /* un peu plus large que la carte et un peu plus petit : chaque vers tient sur sa ligne en grand écran */
.paroles-titre { margin: 0; text-align: center; color: var(--or-fonce); font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.paroles-texte .filet { width: min(100%, 25rem); margin-top: .4rem; margin-bottom: 1.35rem; }
/* --ajout : petit blanc ajouté entre les couplets de la chanson la plus courte, pour que les deux textes dépliés aient la même hauteur (calculé par site.js). */
.paroles-texte p { margin: 0 0 calc(1.1em + var(--ajout, 0px)); font-size: inherit; font-style: normal; color: inherit; }
.paroles-texte p.serre { margin-bottom: calc(.4em + var(--ajout, 0px)); }
.paroles-texte p:last-child { margin-bottom: .3rem; }
.paroles-texte p.refrain { font-style: italic; }
/* Piste : un fil doré, la partie déjà écoutée en doré plein (--p, en %, est tenu à jour par site.js). */
.lecteur-piste { -webkit-appearance: none; appearance: none; width: 100%; height: 1.4rem; margin: 0; background: transparent; cursor: pointer; }
.lecteur-piste::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(var(--or-coeur), var(--or-coeur)) 0 0 / var(--p, 0%) 100% no-repeat, var(--or-trait); }
.lecteur-piste::-moz-range-track { height: 2px; border-radius: 2px; background: var(--or-trait); }
.lecteur-piste::-moz-range-progress { height: 2px; border-radius: 2px; background: var(--or-coeur); }
.lecteur-piste::-webkit-slider-thumb { -webkit-appearance: none; width: .8rem; height: .8rem; margin-top: calc(1px - .4rem); border: 0; border-radius: 50%; background: var(--or-coeur); }
.lecteur-piste::-moz-range-thumb { width: .8rem; height: .8rem; border: 0; border-radius: 50%; background: var(--or-coeur); }
.lecteur-temps { min-width: 2.6rem; font-style: italic; font-size: .98rem; color: var(--gris); text-align: end; font-variant-numeric: tabular-nums; }
/* Liens d'écoute d'un titre (YouTube, Deezer, Spotify, Apple Music), à droite du titre dans la liste « Ce qu'ils aiment ». */
.titres--ecoutes { max-width: 46rem; }
.titres--ecoutes li { grid-template-columns: minmax(0, 1fr) auto; }   /* sans numéro : le titre, puis les liens */
.titres--ecoutes li::before { content: none; }
.titres .morceau { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }   /* le titre, et l'interprète dessous */
.titres .ecoutes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .15rem 1rem; font-style: normal; font-size: 1rem; }

/* ---------- Pied : les silhouettes des mariés au-dessus de la frise au cœur entrelacé ---------- */
.pied { margin-top: clamp(2rem, 5vw, 3.25rem); text-align: center; }
.pied-maries { position: relative; z-index: 1; height: clamp(8.5rem, 20vw, 12.5rem); width: auto; margin: 0 auto -2.2%; }
.pied-noms { margin: .5rem 0 .1rem; color: var(--or-coeur); font-weight: 700; font-size: 1.65rem; letter-spacing: -.04em; line-height: 1.1; }
.pied-lieu { margin: 0; font-style: italic; color: var(--gris); font-size: 1.05rem; }

/* ---------- Arabe (code de langue « ar-LB », arabe du Liban ; le sélecteur [lang|="ar"] vaut pour « ar » comme pour « ar-LB ») : caractère Amiri, pas d'italique ni d'approche serrée ---------- */
html[lang|="ar"] body { font-family: var(--police-ar); font-size: 1.3rem; line-height: 1.8; }
html[lang|="ar"] * { letter-spacing: 0 !important; font-style: normal !important; }
html[lang|="ar"] h1, html[lang|="ar"] h2, html[lang|="ar"] h3 { line-height: 1.4; }
html[lang|="ar"] .fp-noms { line-height: 1.15; top: 57.6%; font-size: 8cqw; }
html[lang|="ar"] .fp-phrase { left: 29%; right: 19%; line-height: 1.5; top: 70.2%; font-size: 4.3cqw; }
html[lang|="ar"] .menu-liste a { font-size: 1.14rem; }
html[lang|="ar"] .paroles-texte p.refrain { font-style: italic !important; }   /* les paroles restent en caractères latins, refrain en italique */
html[lang|="ar"] .paroles-texte { font-size: .95rem; line-height: 1.3; }
/* De droite à gauche : filets et profils retournés (le logo est à droite, les deux mariés se font toujours face). */
[dir="rtl"] .menu .filet, [dir="rtl"] .medaillon img { transform: scaleX(-1); }
html[lang|="ar"] button, html[lang|="ar"] input, html[lang|="ar"] textarea, html[lang|="ar"] select { font-family: var(--police-ar); }

/* ---------- Écrans étroits ---------- */
/* Menu replié derrière le bouton « Menu » : dès que les sept onglets, le logo et les langues ne tiennent plus sur une ligne. */
@media (max-width: 70rem) {
  .menu { grid-template-columns: auto auto minmax(0, 1fr); }   /* logo | bouton « Menu » | langues */
  .menu-bouton { display: inline-flex; grid-column: 2; }
  .menu .filet { grid-column: 2 / -1; background-size: 100% auto; }   /* les filets partent du logo */
  .menu-liste { display: none; grid-column: 1 / -1; grid-row: 3; flex-direction: column; border-top: 1px solid var(--or-trait); padding-block: .4rem; margin-top: calc(var(--filet) / 2); }
  .menu[data-ouvert="oui"] .menu-liste { display: flex; }
  .menu-liste li + li::before { display: none; }
  .menu-liste a { padding: .7rem 1rem; font-size: 1.15rem; }
  .menu-liste a[aria-current="page"] { background: none; }
}
@media (max-width: 60rem) {
  .grille-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cliches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cliche:nth-child(even) { transform: none; }
  .cliche:nth-child(3n + 2) { transform: translateY(1.4rem); }
}
@media (max-width: 46rem) {
  body { font-size: 1.125rem; }
  .frise { width: 168%; margin-inline: -34%; }
  .entete { --menu-haut: 4rem; }
  .pied-maries { margin-bottom: -3.6%; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .hero-triptyque { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 1.25rem; }
  .hero-triptyque .fairepart { grid-column: 1 / -1; order: -1; max-width: 19rem; }
  .hero-fait { padding-bottom: 0; align-self: start; }
  .hero-fait--quand, .hero-fait--ou { text-align: center; }
  .photo-cadre { width: calc(100% - 2rem); }
  .duo-texte { text-align: center; }
  .duo-texte p { margin-inline: auto; }
  .duo-texte .actions { justify-content: center; }
  .formulaire { grid-template-columns: minmax(0, 1fr); }
  .grille-3, .grille-2 { grid-template-columns: minmax(0, 1fr); }
  .grille-3.grille-3--decale { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 1.4rem; }   /* sur téléphone : les trois cartes l'une sous l'autre, Malika d'abord */
  .grille-3--decale > :nth-child(n) { grid-column: 1; grid-row: auto; }
  .grille-3.grille-3--seule { grid-template-columns: minmax(0, 1fr); }
  .grille-3--seule > * { grid-column: 1; }
  .cliches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cliche:nth-child(3n + 2) { transform: none; }
  .cliche:nth-child(even) { transform: translateY(1.2rem); }
  .lieu { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .photos--triptyque { grid-template-columns: 1fr 1fr; }
  .photos--triptyque figure:first-child { grid-column: 1 / -1; }
  .photos--triptyque img { height: clamp(8rem, 38vw, 13rem); }
  .photos--triptyque figure:first-child img { height: clamp(11rem, 56vw, 17rem); }
  .photos--bandeau img { aspect-ratio: 16 / 9; }
  .photos--quatre { grid-template-columns: 1fr 1fr; }
  .photos--duo img, .photos--quatre img { height: clamp(8rem, 38vw, 13rem); }
  .programme { --col: 4.4rem; }
  .programme li { column-gap: 2.2rem; }
  .programme::before { inset-inline-start: calc(var(--col) + 1.1rem); }
  .programme li::before { inset-inline-start: calc(var(--col) + 1.1rem - 4px); }
  .titres li { grid-template-columns: 2rem minmax(0, 1fr); }
  .titres span { grid-column: 2; }
  .titres .ecoutes { justify-content: flex-start; }
  .titres--ecoutes li { grid-template-columns: minmax(0, 1fr); }
  .titres--ecoutes .ecoutes { grid-column: 1; }
  .sommaire--menu { gap: .5rem 1.3rem; }
  .sommaire--menu li + li::before { display: none; }   /* sur plusieurs lignes : pas de point en début de ligne */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  body { background: #fff; }
  .menu, .pied-maries { display: none; }
  .feuille { box-shadow: none; }
}


/* =====================================================================
   Adaptation aux blocs WordPress
   Tout ce qui précède est la feuille de la maquette, reprise telle quelle.
   Ici : les mêmes composants obtenus par des blocs natifs de l'éditeur
   (groupe, titre, paragraphe, boutons, image, séparateur, liste, galerie)
   portant les classes de la maquette. Aucune marge automatique entre blocs :
   l'écart entre blocs (blockGap) est désactivé dans theme.json.
   ===================================================================== */

/* ---------- Séparateur natif = filet doré au nœud ---------- */
.feuille hr.wp-block-separator,
.editor-styles-wrapper hr.wp-block-separator {
  display: block; box-sizing: border-box; height: auto; padding: 0; border: 0; opacity: 1; color: transparent;
  background: url("assets/filet-noeud-or.png") center / 100% 100% no-repeat;
  aspect-ratio: 1188 / 30; width: min(27rem, 74%); max-width: none;
  margin-inline: auto; margin-block: clamp(2.75rem, 7vw, 4.75rem);
}

/* ---------- Boutons natifs = .bouton de la maquette ---------- */
.feuille .wp-block-buttons.actions { gap: .9rem 1.4rem; }
.feuille .wp-block-button { margin: 0; }
.feuille .wp-block-button__link,
.feuille .wp-block-button .wp-block-button__link {
  display: inline-block; box-sizing: border-box; font: inherit; font-size: 1.0625rem; line-height: 1.2; text-align: start;
  color: #fff; background: var(--vert); border: 1px solid var(--vert); border-radius: 999px; padding: .82rem 1.9rem;
  text-decoration: none; cursor: pointer; box-shadow: none; transition: background .2s, color .2s, border-color .2s;
}
.feuille .wp-block-button__link:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); color: #fff; }
.feuille .is-style-clair .wp-block-button__link { background: transparent; color: var(--vert); }
.feuille .is-style-clair .wp-block-button__link:hover { background: var(--vert); color: #fff; }
.feuille .is-style-lien .wp-block-button__link {
  background: none; border: 0; border-radius: 0; padding: 0; font-size: inherit; line-height: inherit; color: var(--vert);
  text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--or); text-underline-offset: .2em;
}
.feuille .is-style-lien .wp-block-button__link:hover { background: none; color: var(--or-fonce); }
.feuille .carte .wp-block-buttons.liens { display: flex; margin-bottom: .5rem; }
/* Grille de cartes juste après un paragraphe d'introduction (Liste de mariage) : même écart que la maquette. */
.etroit + .grille-2, .etroit + .grille-3 { margin-top: 2.5rem; }

/* ---------- Accueil : triptyque en groupes (quand | code court du cœur | où) et bouton de réponse centré ---------- */
.feuille .accueil-hero > .wp-block-buttons.actions { justify-content: center; }
.duo > .wp-block-image { margin: 0; }

/* ---------- En-tête de page écrit en blocs (groupe « titre-page » en tête du contenu : Au programme, Contacts) ---------- */
.feuille .titre-page > hr.wp-block-separator { margin-block: 1.5rem 0; }
.feuille .titre-page > .intro-ligne + hr.wp-block-separator { margin-top: 2.1rem; }

/* ---------- Accueil (1.0.3) : silhouettes assises de dos (bloc Image) et grand cadre photo (groupe) ---------- */
.feuille figure.wp-block-image.dos-silhouettes { margin-block: 0; }
.feuille figure.wp-block-image.dos-silhouettes img { display: block; width: 100%; height: auto; }
/* Grande photo des mariés de dos : bloc Image natif portant la classe « photo-grande » (la photo garde ses proportions). */
.feuille figure.wp-block-image.photo-grande { margin: 0 auto; }
.feuille figure.wp-block-image.photo-grande img { width: 100%; height: auto; }

/* ---------- Au programme (1.0.3) : filet puis phrase du dimanche après la liste du samedi ---------- */
.feuille .programme + hr.wp-block-separator { margin-top: 0; }

/* ---------- Clichés : vignettes d'attente (groupes) ---------- */
.feuille .etroit + .cliches { margin-top: 2.5rem; }
.cliche::before { content: ""; display: block; width: 34%; aspect-ratio: 1; opacity: .34; background: url("assets/monogramme-sw-or.png") center / 100% 100% no-repeat; }
.cliche > p {
  position: absolute; inset-inline: 0; bottom: 0; margin: 0; padding: 1.6rem .8rem .55rem; font-style: italic; font-size: .98rem;
  text-align: center; background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .94) 62%);
}

/* ---------- Clichés : galerie native avec la classe « cliches » (vraies photos) ---------- */
.wp-block-gallery.cliches.has-nested-images {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, 1.6vw, 1.15rem); padding-bottom: 1.6rem; flex-wrap: nowrap;
}
.wp-block-gallery.cliches.has-nested-images figure.wp-block-image:not(#individual-image) {
  position: relative; display: block; width: auto; margin: 0; aspect-ratio: 4 / 5; background: var(--beige-clair); overflow: hidden;
  border-radius: 50% 50% var(--rond) var(--rond) / 34% 34% var(--rond) var(--rond); /* vignette en arche, comme .cliche */
}
.wp-block-gallery.cliches.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(even) { transform: translateY(1.6rem); }
.wp-block-gallery.cliches.has-nested-images figure.wp-block-image:not(#individual-image) img {
  width: 100%; height: 100%; max-width: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
/* Photos en couleurs ; classe facultative « nb » (sur la galerie ou sur une image) pour le noir et blanc. */
.wp-block-gallery.cliches.nb figure.wp-block-image img,
.wp-block-gallery.cliches.has-nested-images figure.wp-block-image.nb:not(#individual-image) img { filter: grayscale(1) contrast(1.05); }
.wp-block-gallery.cliches.has-nested-images figure.wp-block-image:not(#individual-image):hover img { transform: scale(1.04); }
.wp-block-gallery.cliches.has-nested-images figure.wp-block-image:not(#individual-image) figcaption {
  position: absolute; inset-inline: 0; bottom: 0; width: auto; max-height: none; margin: 0; padding: 1.6rem .8rem .55rem;
  color: var(--encre); font-style: italic; font-size: .98rem; text-align: center; overflow: visible;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .94) 62%);
}

/* ---------- Photos : blocs image natifs dans un groupe « photos » ---------- */
.photos > figure.wp-block-image { margin: 0; }
.photos > figure.wp-block-image img { max-width: 100%; }
.photos--triptyque > figure.wp-block-image img { height: clamp(11rem, 25vw, 17.5rem); }
.photos--duo > figure.wp-block-image img, .photos--quatre > figure.wp-block-image img { height: clamp(10rem, 22vw, 15.5rem); }   /* Activités (1.0.3) */
.photos > figure.wp-block-image .wp-element-caption { margin: 0; }
/* Objet détouré sur fond blanc (1.0.5, valise) : le bloc Image ne porte sa classe que sur la figure ; même rendu que .photos img.sans-cadre. */
.photos > figure.wp-block-image.sans-cadre img { background: none; border-radius: 0; object-fit: contain; }

/* ---------- Liste de mariage (1.0.3) : la grille des cartes (ancre « cagnotte ») sous la photo, même écart que la maquette ---------- */
.feuille .photos + .grille-2 { margin-top: 2.5rem; }

/* ---------- Infos pratiques ---------- */
.sous-titre { margin: 2.6rem 0 1.2rem; }
.section-titre + .sous-titre { margin-top: 0; }
.note { margin-top: 1.6rem; color: var(--gris); }

/* ---------- Programme : chaque étape est un groupe (heure, titre, texte) ---------- */
.programme > .etape { position: relative; display: grid; grid-template-columns: var(--col) minmax(0, 1fr); column-gap: 3rem; padding-block: .95rem; }
.programme > .etape::before { content: ""; position: absolute; inset-inline-start: calc(var(--col) + 1.5rem - 4px); top: 1.5rem; width: 9px; height: 9px; border-radius: 50%; background: var(--blanc); border: 1px solid var(--or); }
.programme > .etape > .heure { grid-column: 1; grid-row: 1 / span 2; margin: 0; font-size: inherit; color: var(--vert); }
.programme > .etape > :not(.heure) { grid-column: 2; }
/* Liste sans heures (Activités) : une seule colonne, le fil doré et ses points à gauche. */
.programme.programme--libre > .etape { grid-template-columns: minmax(0, 1fr); padding-inline-start: 2.1rem; }
.programme.programme--libre > .etape > :not(.heure) { grid-column: 1; }
.programme.programme--libre > .etape::before { inset-inline-start: 0; }

/* ---------- Contacts : médaillon en paragraphe (initiale) ou en bloc image (profil doré) ---------- */
.feuille .carte > p.medaillon { margin: 0 0 .9rem; font-size: 2.7rem; line-height: 1; }
.feuille .carte > figure.wp-block-image.medaillon { margin: 0 0 .9rem; }
.feuille .carte > figure.wp-block-image.medaillon img { width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* ---------- En musique : un enregistrement = groupe « lecteur » (titre, ligne, bloc Audio natif) ---------- */
.feuille .lecteur > h3 { margin: 0; }
.feuille .lecteur > p { margin: .25rem 0 0; color: var(--gris); font-style: italic; font-size: 1.02rem; }
.feuille .lecteur > .wp-block-audio { margin: 0; }
.feuille .lecteur audio { min-width: 0; }
.feuille .lecteur > p.lecteur-attente { margin-top: 1.1rem; }
/* Paroles : bloc Détails natif (classe « paroles ») ; le groupe « paroles-texte » ne peut pas porter dir="ltr" :
   même effet par la feuille de style (les paroles restent de gauche à droite sur les pages arabes). */
.feuille .paroles-texte { direction: ltr; text-align: left; }
.feuille .paroles-texte > hr.wp-block-separator { width: min(100%, 25rem); margin: .4rem auto 1.35rem; }

/* ---------- Ancien lecteur Spotify / Deezer (code court [sw_lecteur], plus utilisé dans les contenus) ---------- */
.lecteur--actif { font-style: normal; }
.lecteur--actif .bouton { font-style: normal; }
.lecteur-mention { margin: .9rem 0 0; font-size: .98rem; font-style: italic; }
.lecteur iframe { display: block; width: 100%; height: 380px; border: 0; border-radius: var(--rond); }

/* ---------- Arabe : numéros de téléphone et adresses gardés de gauche à droite (sinon « 06 44 03 » s'inverse) ---------- */
a[href^="tel:"], a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; }

/* ---------- Formulaires : champ piège et message d'erreur ---------- */
.sw-piege { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.message-erreur { grid-column: 1 / -1; margin: 0; text-align: center; background: #fbf1ec; border-radius: var(--rond); color: #7a2e1c; padding: 1.2rem 1.6rem; }

@media (max-width: 60rem) {
  .wp-block-gallery.cliches.has-nested-images { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wp-block-gallery.cliches.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(even) { transform: none; }
  .wp-block-gallery.cliches.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(3n + 2) { transform: translateY(1.4rem); }
}
@media (max-width: 46rem) {
  .wp-block-gallery.cliches.has-nested-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp-block-gallery.cliches.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(3n + 2) { transform: none; }
  .wp-block-gallery.cliches.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(even) { transform: translateY(1.2rem); }
  .photos--triptyque > figure.wp-block-image img { height: clamp(8rem, 38vw, 13rem); }
  .photos--triptyque > figure.wp-block-image:first-child img { height: clamp(11rem, 56vw, 17rem); }
  .photos--duo > figure.wp-block-image img, .photos--quatre > figure.wp-block-image img { height: clamp(8rem, 38vw, 13rem); }
  .programme > .etape { column-gap: 2.2rem; }
  .programme > .etape::before { inset-inline-start: calc(var(--col) + 1.1rem - 4px); }
}
