/* Nails by Lolo : blocs ajoutés à la vitrine (avant ouverture, avis, photos, pages légales) */

/* ---------- Avant ouverture ---------- */
/* Avant l'ouverture : une seule page, la couverture, sans défilement ni menu */
html:has(#ouverture:not([hidden])), body:has(#ouverture:not([hidden])) { height: 100dvh; overflow: hidden; }
.a-ouverture .nav__inner { display: flex; justify-content: center; }
.a-ouverture .hero__frame { height: calc(100dvh - var(--nav-h) - 12px); min-height: 0; max-height: none; }
.a-ouverture .hero__inner { padding-bottom: 0; }
.ouverture {
  margin: 0 -40px; padding: 80px 40px 24px;
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 24px; text-align: center;
  color: var(--creme);
  background: linear-gradient(to bottom, rgba(26, 17, 19, 0), rgba(26, 17, 19, .62) 24%, rgba(26, 17, 19, .86) 48%);
  pointer-events: auto;
}
.ouverture__annonce, .ouverture__action { width: min(100%, 520px); }
.ouverture[hidden] { display: none; }
.ouverture__titre { font-family: var(--f-titre); font-weight: 400; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; }
.ouverture__titre em { font-style: italic; color: var(--bubble); }
.ouverture__bientot { margin-top: 10px; font-family: var(--f-script); font-size: 36px; line-height: 1.1; color: var(--bubble); }
.decompte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 400px; margin: 14px auto 0; }
.decompte[hidden] { display: none; }
.decompte__case { padding: 2px 4px; text-align: center; }
.decompte__case + .decompte__case { border-left: 1px solid var(--or); }
.decompte__case strong { display: block; font-family: var(--f-titre); font-weight: 500; font-size: clamp(30px, 3vw, 42px); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.decompte__case span { display: block; margin-top: 6px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 248, 244, .86); }
.ouverture__ligne { display: flex; gap: 8px; }
.ouverture__champ {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 20px;
  border: 0; border-radius: 999px; background: var(--creme); color: var(--espresso); font: inherit; font-size: 16px;
}
.ouverture__champ::placeholder { color: rgba(26, 17, 19, .68); }
.ouverture__champ:focus-visible { outline: 2px solid var(--bubble); outline-offset: 2px; }
.ouverture__piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ouverture__accord { text-align: left; display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13px; line-height: 1.4; cursor: pointer; color: rgba(255, 248, 244, .92); }
.ouverture__accord input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--bubble-fonce); }
.ouverture__erreur { margin-top: 10px; padding: 8px 14px; border-radius: 12px; background: var(--creme); font-size: 14px; font-weight: 700; color: #B3261E; }
.ouverture__bouton { flex: none; min-height: 52px; cursor: pointer; border: 0; white-space: nowrap; }
.ouverture__bouton[disabled] { opacity: .6; cursor: wait; }
.ouverture__succes { font-family: var(--f-titre); font-size: 22px; line-height: 1.25; }

/* ---------- Avis ---------- */
.avis-clientes { padding: 0 0 128px; }
.avis-clientes__mention { max-width: 40em; margin-top: 20px; font-size: 15px; color: var(--espresso-70); }
.avis-clientes__liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 48px 0 0; padding: 0; list-style: none; }
.avis-carte { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid rgba(201, 162, 75, .6); border-radius: var(--rayon-photo); overflow-wrap: anywhere; }
.avis-carte__note { color: var(--or-fonce); font-size: 18px; letter-spacing: .12em; }
.avis-carte__texte { font-size: 17px; line-height: 1.6; }
.avis-carte__pied { margin-top: auto; font-size: 13px; color: var(--espresso-70); }
.avis-carte__auteur { display: block; font-weight: 700; color: var(--espresso); }

/* ---------- Photos de la galerie ---------- */
.photos-lolo { padding: 96px 0 0; }
.photos-lolo .titre-section { margin-top: 18px; }
.photos-lolo__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; margin-top: 48px; }
.photos-lolo .ete__cadre { aspect-ratio: 4 / 5; cursor: zoom-in; }

/* ---------- Pied de page ---------- */
.pied__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pied__legal a { text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.pied__legal a:hover { color: var(--bubble); }
.faq details p a { text-decoration: underline; }

/* ---------- Pages légales ---------- */
.legal { padding: calc(var(--nav-h) + 56px) 0 96px; }
.legal__corps > * { max-width: 44rem; }
.legal .titre-section { margin-top: 18px; margin-bottom: 28px; font-size: clamp(40px, 5.4vw, 76px); max-width: none; }
.legal h2 { margin-top: 44px; font-family: var(--f-titre); font-weight: 500; font-size: 30px; line-height: 1.15; }
.legal p:not(.surtitre), .legal li { margin-top: 12px; font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--bubble-fonce); }

@media (max-width: 1023px) {
  .ouverture { margin: 0 -14px; padding: 56px 14px 12px; gap: 20px; }
  .a-ouverture .hero__frame { height: calc(100dvh - var(--nav-h) - 8px); }
  .avis-clientes { padding-bottom: 88px; }
  .avis-clientes__liste, .photos-lolo__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .avis-clientes__liste { grid-template-columns: minmax(0, 1fr); }
  .photos-lolo__grille { gap: 28px 14px; }
  .photos-lolo .ete__cadre { border-radius: 24px; }
  .ouverture__titre { font-size: clamp(19px, 5.4vw, 24px); white-space: nowrap; }
  .decompte { margin-top: 10px; }
  .decompte__case span { font-size: 9px; letter-spacing: .08em; }
  .ouverture__accord { font-size: 12px; margin-top: 10px; }
  .ouverture__champ { padding: 0 16px; }
  .ouverture__bouton { padding-inline: 16px; }
}

/* Écran très bas (téléphone couché) : on garde l'accès au formulaire */
@media (max-height: 520px) {
  html:has(#ouverture:not([hidden])), body:has(#ouverture:not([hidden])) { height: auto; overflow: auto; }
  .a-ouverture .hero__frame { height: auto; min-height: 560px; }
}

.ouverture__legal { margin-top: 10px; font-size: 12px; text-align: center; color: rgba(255, 248, 244, .72); }
.ouverture__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
