/* ============================================================
   JUSTBEHOME — Look A « Soft » (charte Justbe, sections 4A et 5A)
   Mêmes couleurs, polices et boutons que le site Justbeweddings.
   Modifiez ici couleurs, polices, espacements.
   ============================================================ */
:root {
  /* Couleurs (4A) */
  --ivoire: #F6F1EA;        /* fond principal */
  --lin: #EDE5DA;           /* fond des sections alternées */
  --sable-clair: #D8CBBB;   /* traits, bordures */
  --sable: #B89F84;         /* accent (décor et grands textes uniquement) */
  --taupe: #7A6B60;         /* texte secondaire */
  --brun: #3A3330;          /* texte principal */
  --blanc: #FFFFFF;

  /* Polices (5A) */
  --police-titres: "Cormorant Garamond", Georgia, serif;
  --police-texte: "EB Garamond", Georgia, serif;

  /* Mise en page */
  --largeur-max: 1180px;
  --marge: clamp(16px, 5vw, 64px);
  --espace-section: clamp(72px, 11vw, 140px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivoire);
  color: var(--brun);
  font-family: var(--police-texte);
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--police-titres);
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
}
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 20px; letter-spacing: .16em; }
p { margin: 0 0 1em; }

.conteneur { max-width: var(--largeur-max); margin: 0 auto; padding: 0 var(--marge); }
.section { padding: var(--espace-section) 0; }
.section--lin { background: var(--lin); }
.surtitre {
  font-family: var(--police-titres);
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 18px;
  display: block;
}
.italique { font-style: italic; color: var(--taupe); }
.centre { text-align: center; }
.intro { max-width: 660px; margin: 24px auto 0; }
.qualite .intro { font-size: 22px; line-height: 1.6; color: var(--brun); margin-top: 0; }
.qualite .conteneur:has(.avant-apres) { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; text-align: left; }
.qualite .conteneur:has(.avant-apres) .intro { margin: 0; max-width: none; }
.qualite .conteneur:has(.avant-apres) .avant-apres { margin: 0; max-width: none; width: 100%; }
/* Curseur avant / après */
.avant-apres { --pos: 50%; position: relative; max-width: 960px; margin: 48px auto 0; aspect-ratio: 3/2; overflow: hidden; user-select: none; touch-action: pan-y; }
.avant-apres__avant, .avant-apres__apres { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avant-apres__avant { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.avant-apres .emplacement { display: flex; align-items: center; font-style: italic; color: var(--taupe); border: 0; }
.avant-apres__apres.emplacement { background: var(--lin); justify-content: flex-end; padding-right: 12%; }
.avant-apres__avant.emplacement { background: var(--sable-clair); justify-content: flex-start; padding-left: 12%; }
.avant-apres__etiquette { position: absolute; top: 16px; z-index: 2; padding: 5px 10px; background: rgba(246, 241, 234, .85); color: var(--brun); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; pointer-events: none; }
.avant-apres__etiquette--avant { left: 16px; }
.avant-apres__etiquette--apres { right: 16px; }
.avant-apres__poignee { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 2px; background: var(--ivoire); transform: translateX(-50%); pointer-events: none; }
.avant-apres__rond { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ivoire); box-shadow: 0 2px 12px rgba(58, 51, 48, .25); transform: translate(-50%, -50%); }
.avant-apres__rond svg { width: 24px; height: 24px; fill: var(--taupe); }
.avant-apres input[type=range] { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.avant-apres:has(input:focus-visible) .avant-apres__rond { outline: 2px solid var(--brun); outline-offset: 3px; }
.a-completer { background: #fff3c4; padding: 0 4px; }

/* ---------- Boutons (coins carrés, trait brun) ---------- */
.bouton {
  display: inline-block;
  border: 1px solid currentColor;
  padding: 14px 34px;
  font-family: var(--police-titres);
  font-size: 13px;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.bouton:hover { background: var(--brun); color: var(--ivoire); border-color: var(--brun); }
.hero .bouton:hover { background: var(--ivoire); color: var(--brun); border-color: var(--ivoire); }

/* ---------- En-tête ---------- */
.entete { position: absolute; top: 0; left: 0; right: 0; z-index: 10; color: var(--blanc); }
.entete__barre { display: flex; align-items: center; justify-content: center; padding: 28px var(--marge); }
.logo {
  font-family: var(--police-titres);
  font-size: 22px; letter-spacing: .3em; text-decoration: none;
  text-align: center; line-height: 1;
}
.logo small { display: block; font-size: 10px; letter-spacing: .5em; margin-top: 6px; }

/* ---------- Menu ---------- */
.menu-ouvrir {
  position: fixed; top: 22px; right: var(--marge); z-index: 50;
  display: flex; align-items: center; gap: 10px;
  background: rgba(58, 51, 48, .72); color: var(--ivoire); border: none; cursor: pointer;
  padding: 11px 18px;
  font-family: var(--police-titres); font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
}
.menu-ouvrir:hover { background: var(--brun); }
.menu-icone, .menu-icone::before, .menu-icone::after {
  display: block; width: 18px; height: 1px; background: currentColor; position: relative;
}
.menu-icone::before, .menu-icone::after { content: ""; position: absolute; left: 0; }
.menu-icone::before { top: -5px; }
.menu-icone::after { top: 5px; }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ivoire);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.menu.ouvert { opacity: 1; visibility: visible; }
.menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu li { margin: 6px 0; }
.menu ul a {
  font-family: var(--police-titres); font-weight: 300; text-decoration: none;
  font-size: clamp(26px, 4.5vw, 40px); letter-spacing: .1em; text-transform: uppercase;
}
.menu ul a:hover { color: var(--taupe); }
.menu-autre {
  border-top: 1px solid var(--sable); padding-top: 22px; text-decoration: none;
  font-family: var(--police-titres); font-style: italic; font-size: 24px; color: var(--taupe);
}
.menu-autre:hover { color: var(--brun); }
.menu-langue {
  font-family: var(--police-titres); font-size: 13px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--taupe); text-decoration: none; margin-top: -12px;
}
.menu-langue:hover { color: var(--brun); }
.menu-fermer {
  position: absolute; top: 14px; right: var(--marge); background: none; border: none; cursor: pointer;
  font-family: var(--police-titres); font-size: 48px; line-height: 1; color: var(--brun); padding: 8px;
}

/* ---------- Choix de la langue (en haut à gauche) ---------- */
.langues {
  position: fixed; top: 22px; left: var(--marge); z-index: 50;
  display: flex; align-items: center; gap: 2px;
  background: rgba(58, 51, 48, .72); color: var(--ivoire);
  font-family: var(--police-titres); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
}
.langues a, .langues span { padding: 11px 12px; text-decoration: none; }
.langues span { color: var(--ivoire); border-bottom: 1px solid var(--ivoire); padding-bottom: 10px; }
.langues a { color: rgba(246, 241, 234, .6); }
.langues a:hover { color: var(--ivoire); background: var(--brun); }
@media (max-width: 480px) {
  .menu-ouvrir { font-size: 0; gap: 0; padding: 15px 14px; right: 16px; }
  .langues { left: 16px; }
  .langues a, .langues span { padding: 11px 10px; }
}

/* ---------- Accueil (triptyque hiver · intérieur · été) ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; max-height: 980px; color: var(--blanc); }
.hero__photos { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 4px; height: 100%; }
.hero__photos figure { margin: 0; overflow: hidden; }
/* Cadrage des photos latérales : position calculée par site.js entre la valeur « étroite » (861 px) et « large » (1920 px) */
.hero__photos img[data-cadrage] { object-position: var(--pos-x, 50%) 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,14,.55) 0%, rgba(20,16,14,.32) 10%, rgba(20,16,14,.12) 22%, rgba(20,16,14,0) 36%, rgba(20,16,14,0) 48%, rgba(20,16,14,.12) 60%, rgba(20,16,14,.38) 76%, rgba(20,16,14,.72) 100%);
  pointer-events: none;
}
.hero__texte {
  position: absolute; left: 0; right: 0; bottom: clamp(40px, 9vh, 90px); z-index: 2;
  text-align: center; padding: 0 var(--marge);
}
.hero h1 { font-size: clamp(30px, 5vw, 58px); letter-spacing: .14em; }
.hero__sous { font-style: italic; font-size: clamp(18px, 2vw, 22px); margin: 12px 0 28px; }

/* ---------- Approche ---------- */
.approche { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.approche__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 4%; align-items: start; }
.approche__photos figure { margin: 0; }
.approche__photos figure { aspect-ratio: 2/3; }
.approche__photos figure:last-child { margin-top: 25%; }
.approche h2 { margin-bottom: 28px; }
.materiel {
  border-top: 1px solid var(--sable-clair); padding-top: 18px; margin: 28px 0 32px;
  font-size: 16px; color: var(--taupe);
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.service figure { margin: 0 0 22px; aspect-ratio: 4/5; overflow: hidden; }
.service h3 { margin-bottom: 10px; }
.service p { font-size: 17px; color: var(--taupe); margin: 0; }
.aussi { text-align: center; font-style: italic; color: var(--taupe); margin: 48px 0 0; }

/* ---------- Portfolio : un bien = une carte, clic = toutes ses photos ---------- */
.biens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 20px; margin-top: 56px; }
.bien { background: none; border: none; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.bien figure { margin: 0 0 14px; aspect-ratio: 3/2; overflow: hidden; }
.bien img { transition: transform .8s ease, opacity .3s; }
.bien:hover img, .bien:focus-visible img { transform: scale(1.04); }
.bien__nom { display: block; font-family: var(--police-titres); font-size: 22px; letter-spacing: .08em; text-transform: uppercase; }
.bien__infos { display: block; font-size: 15px; color: var(--taupe); }
.bien__nb { font-family: var(--police-titres); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Visionneuse ---------- */
.visionneuse {
  position: fixed; inset: 0; z-index: 100; background: rgba(28,23,20,.96);
  display: none; align-items: center; justify-content: center; flex-direction: column;
}
.visionneuse.ouverte { display: flex; }
.visionneuse img { width: auto; height: auto; max-width: 92vw; max-height: 82vh; object-fit: contain; }
.visionneuse__legende {
  color: var(--sable-clair); margin-top: 14px; text-align: center;
  font-family: var(--police-titres); font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
}
.visionneuse button {
  position: absolute; background: none; border: none; color: var(--ivoire); cursor: pointer;
  font-family: var(--police-titres); font-size: 44px; line-height: 1; padding: 16px;
}
.visionneuse__fermer { top: 8px; right: 12px; }
.visionneuse__prec { left: 8px; top: 50%; transform: translateY(-50%); }
.visionneuse__suiv { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Bandeau photo ---------- */
.bandeau { height: clamp(320px, 60vh, 640px); position: relative; }
.bandeau figure { margin: 0; height: 100%; }
.bandeau blockquote {
  position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--blanc); padding: 0 var(--marge);
  font-family: var(--police-titres); font-style: italic; font-weight: 300;
  font-size: clamp(26px, 4vw, 46px); background: rgba(30,24,20,.3);
}

/* ---------- Déroulé (étapes numérotées) ---------- */
.etapes { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; counter-reset: etape; }
.etapes li { border-top: 1px solid var(--sable); padding-top: 18px; counter-increment: etape; }
.etapes li::before {
  content: counter(etape, decimal-leading-zero); display: block;
  font-family: var(--police-titres); font-weight: 300; font-size: 44px; line-height: 1; color: var(--sable); margin-bottom: 14px;
}
.etapes h3 { margin-bottom: 10px; }
.etapes p { font-size: 17px; color: var(--taupe); margin: 0; }
.etapes a { color: var(--brun); }

/* ---------- Livrables ---------- */
.inclus { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 64px; margin-top: 56px; }
.inclus__item { border-top: 1px solid var(--sable); padding-top: 22px; }
.inclus__item h3 { margin-bottom: 10px; }
.inclus__item p { font-size: 17px; color: var(--taupe); margin: 0; }

/* ---------- Clients ---------- */
.clients { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--sable-clair); border-bottom: 1px solid var(--sable-clair); }
.clients__noms { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 56px; list-style: none; padding: 0; margin: 8px 0 10px; }
.clients__noms li { font-family: var(--police-titres); font-weight: 300; font-size: clamp(24px, 3vw, 34px); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Zone d'intervention ---------- */
.zone { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.zone figure { margin: 0; aspect-ratio: 4/5; }
.regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--sable-clair); border: 1px solid var(--sable-clair); margin: 24px 0; padding: 0; list-style: none; }
.regions li { background: var(--ivoire); padding: 14px 18px; }
.regions li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.regions strong { display: block; font-family: var(--police-titres); font-weight: 400; font-size: 21px; letter-spacing: .04em; }
.regions span { display: block; font-size: 14px; color: var(--taupe); line-height: 1.5; }

/* ---------- Renvoi vers le guide ---------- */
.renvoi { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--lin); }
.renvoi figure { margin: 0; min-height: 420px; }
.renvoi__texte { padding: clamp(40px, 7vw, 96px) var(--marge); align-self: center; }
.renvoi h2 { margin-bottom: 18px; }
.renvoi .italique { margin-bottom: 28px; }

/* ---------- Devis / contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 90px); }
.contact__infos a { text-decoration: none; border-bottom: 1px solid var(--sable); }
.contact__ligne { font-family: var(--police-titres); font-size: 24px; margin: 0 0 8px; }
form { display: grid; gap: 20px; }
.form-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label, legend { font-family: var(--police-titres); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe); display: grid; gap: 6px; }
input, textarea, select {
  font: inherit; font-size: 17px; color: var(--brun);
  background: transparent; border: none; border-bottom: 1px solid var(--sable);
  padding: 8px 0; border-radius: 0; width: 100%;
}
select { -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--taupe) 50%), linear-gradient(135deg, var(--taupe) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
::placeholder { color: var(--sable); font-style: italic; opacity: 1; }
input:focus, textarea:focus, select:focus { outline: none; border-bottom-color: var(--brun); }
textarea { min-height: 120px; resize: vertical; }
fieldset { border: none; padding: 0; margin: 0; }
legend { margin-bottom: 10px; padding: 0; }
.cases { display: flex; flex-wrap: wrap; gap: 10px; }
.cases label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--sable-clair); padding: 6px 14px;
  font-family: var(--police-texte); font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--brun);
}
.cases input { width: auto; accent-color: var(--brun); margin: 0; }
.cases label:has(input:checked) { border-color: var(--brun); background: var(--blanc); }
form .bouton { justify-self: start; color: var(--brun); }
.form-note { font-size: 14px; color: var(--taupe); margin: 0; }
.form-note a { color: inherit; }

/* ---------- Pages simples (guide, confidentialité) ---------- */
.legal { padding-top: 120px; }
.legal .conteneur { max-width: 760px; }
.legal__logo { display: inline-block; margin-bottom: 48px; color: var(--brun); }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.legal h2 { font-size: 20px; letter-spacing: .14em; margin: 44px 0 14px; }
.legal ul { padding-left: 1.1em; }
.legal li { margin-bottom: 10px; }
.liste-coches { list-style: none; padding: 0 !important; }
.liste-coches li { position: relative; padding-left: 30px; }
.liste-coches li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border: 1px solid var(--sable); }
.guide-photo { margin: 40px 0 0; aspect-ratio: 16/9; }

/* ---------- Pied de page ---------- */
.pied { background: var(--brun); color: var(--sable-clair); padding: 56px var(--marge); text-align: center; font-size: 15px; }
.pied .logo { color: var(--ivoire); display: inline-block; margin-bottom: 18px; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--ivoire); }

/* ---------- Bouton Devis flottant (mobile) ---------- */
.menu-bouton { display: none; }

/* ---------- Tablette ---------- */
@media (max-width: 1020px) {
  .approche { grid-template-columns: 1fr; }
  .approche__photos { order: -1; max-width: 640px; }
  .services { gap: 40px 20px; }
  .etapes { grid-template-columns: 1fr 1fr; }
  .biens { grid-template-columns: 1fr 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .qualite .conteneur:has(.avant-apres) { grid-template-columns: 1fr; text-align: center; }
  .qualite .conteneur:has(.avant-apres) .avant-apres { max-width: 560px; margin: 0 auto; }
  body { font-size: 18px; }
  .hero__photos { grid-template-columns: 1fr; }
  .hero__photos figure:not(:nth-child(2)) { display: none; }
  .zone, .contact, .renvoi { grid-template-columns: 1fr; }
  .renvoi figure { min-height: 300px; }
  .menu-bouton {
    display: block; position: fixed; right: 16px; bottom: 16px; z-index: 20;
    background: var(--brun); color: var(--ivoire); text-decoration: none;
    font-family: var(--police-titres); font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
    padding: 12px 20px;
  }
}
@media (max-width: 600px) {
  .services, .etapes, .biens, .form-deux { grid-template-columns: 1fr; }
  .service figure { aspect-ratio: 3/2; }
}

/* ---------- Vidéos du portfolio ---------- */
/* La rangée de vidéos occupe toute la largeur de la grille des albums : 4 par ligne, 2 sous 600 px */
.videos { margin-top: clamp(64px, 8vw, 100px); }
.videos__titre { text-align: center; margin-bottom: 32px; }
.videos__grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 20px; }
.video { margin: 0; }
.video video, .video iframe { display: block; width: 100%; aspect-ratio: 9/16; height: auto; border: 0; object-fit: cover; background: var(--brun); }
@media (max-width: 600px) { .videos__grille { grid-template-columns: 1fr 1fr; } }
/* Bouton de lecture centré ; les commandes natives apparaissent une fois la vidéo lancée */
.video { position: relative; }
.video__lecture { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; padding: 0; border: 1px solid rgba(246, 241, 234, .8); border-radius: 50%; background: rgba(58, 51, 48, .45); color: var(--ivoire); cursor: pointer; transform: translate(-50%, -50%); transition: background .25s, transform .25s; backdrop-filter: blur(2px); }
.video__lecture svg { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; }
.video__lecture:hover, .video__lecture:focus-visible { background: rgba(58, 51, 48, .7); transform: translate(-50%, -50%) scale(1.06); }
.video.lancee .video__lecture { display: none; }
@media (max-width: 600px) { .video__lecture { width: 48px; height: 48px; } .video__lecture svg { width: 20px; height: 20px; } }
