/* ============================================================
   Sarah & Shaï — 15 août 2023
   Reproduction en HTML autonome du site d'origine.
   Toutes les couleurs et les tailles viennent du site original.
   ============================================================ */

/* ---------- 1. POLICES (toutes locales, le site marche hors-ligne) ---------- */

/* Cormorant — la police de tout le site (droite et italique) */
@font-face { font-family:'Cormorant'; font-style:normal; font-weight:400 600; font-display:swap;
  src:url('fonts/Cormorant-latin.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'; font-style:normal; font-weight:400 600; font-display:swap;
  src:url('fonts/Cormorant-latin-ext.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'; font-style:italic; font-weight:400 600; font-display:swap;
  src:url('fonts/Cormorant-italique-latin.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'; font-style:italic; font-weight:400 600; font-display:swap;
  src:url('fonts/Cormorant-italique-latin-ext.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; }

/* Great Vibes — les prénoms (elle remplace « e111viva », voir LISEZ-MOI.md) */
@font-face { font-family:'Great Vibes'; font-weight:400; font-display:swap;
  src:url('fonts/GreatVibes-latin.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:'Great Vibes'; font-weight:400; font-display:swap;
  src:url('fonts/GreatVibes-latin-ext.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; }

/* Noto Serif Hebrew — les prénoms hébraïques (ajout, voir LISEZ-MOI.md) */
@font-face { font-family:'Noto Serif Hebrew'; font-weight:400 600; font-display:swap;
  src:url('fonts/NotoSerifHebrew-hebreu.woff2') format('woff2');
  unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family:'Noto Serif Hebrew'; font-weight:400 600; font-display:swap;
  src:url('fonts/NotoSerifHebrew-latin.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; }

/* ---------- 2. LA PALETTE DU SITE ---------- */

:root {
  --rose:        #F7CACD;   /* la barre de navigation, le voile du RSVP */
  --prune:       #6D5C65;   /* titres de section, noms des familles     */
  --prune-fonce: #614E58;   /* prénoms, boutons                         */
  --prune-clair: #93808A;   /* navigation au survol                     */
  --bouton-survol:#8C7782;
  --encre:       #43363D;   /* le texte courant                         */
  --blanc:       #FFFFFF;

  /* « e111viva » est déclarée en premier : si tu déposes ce fichier de
     police dans fonts/, il reprend la main automatiquement. */
  --script: 'e111viva', 'Great Vibes', cursive;
  --serif:  'Cormorant', Georgia, serif;
  --hebreu: 'Noto Serif Hebrew', 'Cormorant', Georgia, serif;

  --hauteur-nav: 80px;
}

/* ---------- 3. BASES ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--hauteur-nav); }

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- 4. HERO ---------- */

.hero {
  min-height: calc(100vh - var(--hauteur-nav));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;      /* le monogramme est posé en bas */
  align-items: center;
  background-image: url('images/fond-hero.webp');
  background-position: bottom center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* effet parallaxe sur grand écran, comme sur le site d'origine */
@media (min-width: 1025px) {
  .hero { background-attachment: fixed; }
}

.hero__monogramme { width: 15%; margin: 0 auto; padding-bottom: 120px; }

/* ---------- 5. LA BARRE DE NAVIGATION ROSE (collante en haut) ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--hauteur-nav);
  background: var(--rose);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 100px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--prune);
  text-decoration: none;
  transition: color .3s;
}

.nav a:hover,
.nav a:focus-visible { color: var(--prune-clair); }

/* ---------- 6. LES SECTIONS DE TEXTE ---------- */

.section {
  padding: 100px 50px;
  background-position: center center;
  background-repeat: repeat;
}

/* fond papier texturé (mairie et RSVP) */
.section--papier {
  background-image: url('images/fond-papier.jpg');
  background-size: cover;
}

/* motifs répétés, affichés à 45 % de leur taille */
.section--houppa {
  background-image: url('images/motif-houppa.jpg');
  background-size: 45% auto;
}

.section--chabbat {
  background-image: url('images/motif-chabbat.webp');
  background-size: 45% auto;
}

.contenu { width: 80%; margin: 0 auto; text-align: center; }

/* ---------- 7. LES BANDEAUX PHOTO PLEINE LARGEUR ---------- */

.bandeau {
  background-position: bottom center;
  background-size: cover;
  background-repeat: no-repeat;
}

.bandeau--1 { min-height: 1200px; background-image: url('images/bandeau-1.webp'); }
.bandeau--2 { min-height: 600px;  background-image: url('images/bandeau-2.webp'); background-position: center center; }
.bandeau--3 { min-height: 600px;  background-image: url('images/bandeau-3.webp'); background-position: center center; }

/* ---------- 8. LES TEXTES ---------- */

.titre-section {
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 600;
  color: var(--prune);
  margin: 0 0 26px;
}

.titre-section--majuscules { text-transform: uppercase; }

/* le texte courant : Cormorant en italique */
.texte {
  font-family: var(--serif);
  font-size: 25px;
  font-style: italic;
  line-height: 30px;
  color: var(--encre);
  margin: 0 0 20px;
}

.texte--gras { font-weight: 600; }
.texte--petit { font-size: 20px; }
.texte--blanc { color: var(--blanc); font-weight: 600; }

/* les prénoms, en écriture manuscrite */
.prenom {
  font-family: var(--script);
  font-size: 80px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--prune-fonce);
  margin: 0 0 14px;
}

.prenom-hebreu {
  font-family: var(--hebreu);
  font-size: 30px;
  font-weight: 500;
  color: var(--prune-fonce);
  margin: 0 0 20px;
  direction: rtl;
}

/* les deux blocs de familles : l'un à gauche, l'autre à droite */
.familles {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  font-style: italic;
  line-height: 35px;
  color: var(--prune);
  margin: 0 0 16px;
}

.familles--gauche { text-align: start; }
.familles--droite { text-align: end; }

/* l'esperluette entre les deux prénoms */
.esperluette {
  font-family: var(--script);
  font-size: 80px;
  font-weight: 500;
  line-height: 1;
  color: var(--prune-fonce);
  margin: 0;
}

/* ---------- 9. BOUTONS ---------- */

.bouton {
  display: inline-block;
  background: var(--prune-fonce);
  color: var(--blanc);
  font-family: var(--serif);
  font-size: 15px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  padding: 13px 30px;
  margin: 6px 0 24px;
  cursor: pointer;
  transition: background-color .3s;
}

.bouton:hover,
.bouton:focus-visible { background: var(--bouton-survol); color: var(--blanc); }

/* ---------- 10. LES CARTES ROSES ----------
   Chaque bloc de texte est posé sur un voile rose, par-dessus le fond.
   C'est ce qui rend le texte lisible sur les motifs.                      */

.carte-rose {
  position: relative;
  width: 100%;
  padding: 100px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.carte-rose::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--rose);
  pointer-events: none;
}

.carte-rose > * { position: relative; z-index: 1; }

/* voile léger : Mairie et RSVP, posés sur le fond papier */
.carte-rose--douce::before { opacity: .61; }

/* voile dense : Houppa et Chabbat, posés sur les motifs damassés */
.carte-rose--dense::before { opacity: .9; }

/* ---------- 11. LE FORMULAIRE RSVP ---------- */

.formulaire { width: 100%; max-width: 520px; margin: 10px auto 0; text-align: left; }

.champ { margin-bottom: 18px; }

.champ label {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--prune);
  margin-bottom: 6px;
}

.champ input,
.champ select {
  width: 100%;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--encre);
  background: transparent;               /* comme sur le site d'origine */
  border: 1px solid rgba(67, 54, 61, .29);
  border-radius: 4px;
  padding: 12px 14px;
  appearance: none;
}

.champ input:focus,
.champ select:focus { outline: none; border-color: var(--encre); }

/* le bouton d'envoi du formulaire a ses propres réglages */
.formulaire .bouton {
  width: 100%;
  background: var(--prune);
  border-radius: 3px;
  letter-spacing: 2px;
  margin: 40px 0 0;
}

.formulaire .bouton:hover,
.formulaire .bouton:focus-visible { background: var(--bouton-survol); }

.merci {
  display: none;
  font-family: var(--serif);
  font-size: 25px;
  font-style: italic;
  color: var(--encre);
  margin-top: 22px;
}

.merci.visible { display: block; }

.note-vol { margin: 34px 0 0; }

/* ---------- 12. PIED DE PAGE ---------- */

.barre-signature {
  min-height: 70px;
  background: var(--blanc);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
}

.barre-signature p {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--prune);
  margin: 0;
  text-align: center;
}

.pied {
  background: var(--blanc);
  padding: 22px 24px 30px;
  text-align: center;
}

.pied__logo { width: 150px; margin: 0 auto 10px; }

.pied p {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  color: #69727d;
  margin: 4px 0;
}

.pied a { color: var(--prune-fonce); text-decoration: none; }

/* ============================================================
   13. TABLETTE ET MOBILE
   ============================================================ */

@media (max-width: 1024px) {
  .familles { font-size: 21px; }
}

@media (max-width: 767px) {
  :root { --hauteur-nav: 60px; }

  .hero {
    justify-content: space-between;
    padding-top: 30px;
  }
  .hero__monogramme { width: 40%; padding-bottom: 0; }

  .nav    { padding: 0; }
  .nav ul { gap: 6px 20px; }
  .nav a  { font-size: 15px; }

  .section  { padding: 50px 15px; }
  .contenu  { width: 100%; }

  .bandeau--1 { min-height: 70vh; }
  .bandeau--2,
  .bandeau--3 { min-height: 50vh; }

  .titre-section { font-size: 40px; }
  .texte         { font-size: 20px; line-height: 1.3em; }
  .texte--petit  { font-size: 18px; }
  .prenom        { font-size: 45px; }
  .prenom--mairie{ font-size: 60px; }
  .esperluette   { font-size: 60px; }
  .prenom-hebreu { font-size: 20px; }
  .familles      { font-size: 15px; line-height: 1.5em; }

  .carte-rose  { padding: 40px 15px 50px; }
  .champ label { font-size: 16px; }
  .champ input,
  .champ select { font-size: 18px; }
}

/* Respecte les personnes qui ont désactivé les animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { background-attachment: scroll; }
}

/* ---------- LA MUSIQUE D'AMBIANCE ---------- */

.musique {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .6);
  background: var(--prune-fonce);
  color: var(--blanc);
  display: none;                /* n'apparait que si un fichier son existe */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.musique.visible { display: flex; }
.musique svg { width: 20px; height: 20px; fill: currentColor; }
.musique.tourne svg { animation: rotation-musique 4s linear infinite; }

@keyframes rotation-musique { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .musique.tourne svg { animation: none; }
}
