/* ==========================================================
   DAYANNA – Institut de beauté (fictif) à Nice
   Feuille de style unique du site – HTML/CSS statique
   ========================================================== */

:root {
  --creme: #FAF6F1;
  --creme-fonce: #F1E8DE;
  --blanc: #FFFFFF;
  --texte: #3A3A3A;
  --texte-doux: #6B625C;
  --terracotta: #B8664B;
  --terracotta-fonce: #95503A;
  --ligne: #E6DACD;
  --titre: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --corps: "Lato", "Helvetica Neue", Arial, sans-serif;
  --largeur: 1120px;
  --lecture: 760px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
}

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

a { color: var(--terracotta-fonce); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
a:focus-visible, .btn:focus-visible, .nav-label:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--terracotta); color: var(--blanc);
  padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(var(--largeur), 100% - 2.5rem); margin-inline: auto; }
.lecture { width: min(var(--lecture), 100% - 2.5rem); margin-inline: auto; }

/* ---------- Bandeau projet pédagogique ---------- */
.bandeau {
  background: var(--terracotta);
  color: var(--blanc);
  text-align: center;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .45rem 1rem;
}

/* ---------- En-tête ---------- */
.site-header {
  background: var(--blanc);
  border-bottom: 1px solid var(--ligne);
  text-align: center;
  padding-top: 1.9rem;
}

.logo {
  display: inline-block;
  text-decoration: none;
  color: var(--terracotta);
}
.logo-nom {
  display: block;
  font-family: var(--titre);
  font-weight: 500;
  font-size: clamp(2.3rem, 6vw, 3.3rem);
  letter-spacing: .38em;
  margin-right: -.38em; /* compense l'espacement de la dernière lettre */
  line-height: 1;
}
.logo-sous-titre {
  display: block;
  margin-top: .55rem;
  font-size: .74rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

/* Menu ordinateur */
.nav-principale { margin-top: 1.5rem; }
.nav-principale > ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; flex-wrap: wrap;
}
.nav-principale li { position: relative; }
.nav-principale a,
.nav-label {
  display: block;
  padding: 1rem 1.05rem;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--texte);
  cursor: pointer;
}
.nav-principale a:hover,
.nav-label:hover,
.nav-principale a[aria-current="page"] { color: var(--terracotta); }
.nav-principale a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--terracotta); }
.nav-label::after { content: " ▾"; font-size: .7em; }

.sous-menu {
  list-style: none; margin: 0; padding: .5rem 0;
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  min-width: 15rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  box-shadow: 0 14px 30px rgba(58, 58, 58, .08);
  text-align: left;
  display: none;
  z-index: 20;
}
.sous-menu a { padding: .7rem 1.3rem; }
.sous-menu a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--terracotta); }
.has-sub:hover > .sous-menu,
.has-sub:focus-within > .sous-menu { display: block; }

/* Menu mobile (sans JavaScript) */
.nav-mobile { display: none; }
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem;
  font-size: .82rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary::before { content: "☰  "; }
.nav-mobile[open] summary::before { content: "✕  "; }
.nav-mobile ul { list-style: none; margin: 0; padding: 0 0 1rem; }
.nav-mobile a {
  display: block; padding: .7rem 1rem;
  text-decoration: none; color: var(--texte);
  letter-spacing: .1em; text-transform: uppercase; font-size: .82rem;
}
.nav-mobile a[aria-current="page"] { color: var(--terracotta); }
.nav-mobile .groupe {
  display: block; padding: .8rem 1rem .2rem;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--texte-doux);
}
.nav-mobile .groupe + ul a { font-size: .8rem; text-transform: none; letter-spacing: .04em; }

/* ---------- Fil d'Ariane ---------- */
.fil-ariane { background: var(--creme); border-bottom: 1px solid var(--ligne); }
.fil-ariane ol {
  list-style: none; margin: 0; padding: .8rem 0;
  display: flex; flex-wrap: wrap; gap: .3rem;
  font-size: .82rem; color: var(--texte-doux);
}
.fil-ariane li + li::before { content: "›"; margin-right: .4rem; color: var(--terracotta); }
.fil-ariane a { color: var(--texte-doux); }

/* ---------- Titres ---------- */
h1, h2, h3, h4, h5 { font-family: var(--titre); font-weight: 500; color: #2E2A27; line-height: 1.2; }

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  margin: 0 0 1.2rem;
  letter-spacing: .01em;
}
h2 {
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin: 0 0 1.1rem;
}
h2::after {
  content: "";
  display: block;
  width: 56px; height: 1px;
  background: var(--terracotta);
  margin-top: .9rem;
}
.centre h2::after, h2.centre::after { margin-inline: auto; }
h3 { font-size: 1.5rem; margin: 2rem 0 .6rem; }
h4 {
  font-family: var(--corps);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--terracotta-fonce);
  margin: 1.4rem 0 .35rem;
}
h5 { font-size: 1.2rem; margin: 1.2rem 0 .4rem; font-style: italic; }

p { margin: 0 0 1rem; }

.surtitre {
  display: block;
  font-size: .76rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .9rem;
}

/* Réponse directe sous chaque H2 */
.reponse {
  font-size: 1.12rem;
  color: #2E2A27;
  border-left: 2px solid var(--terracotta);
  padding: .1rem 0 .1rem 1.1rem;
  margin-bottom: 1.4rem;
}

/* ---------- Héros ---------- */
.hero { background: var(--creme); }
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero-split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-texte p { color: var(--texte-doux); font-size: 1.1rem; }
.hero-simple { text-align: center; padding-block: clamp(2.8rem, 7vw, 5rem); }
.hero-simple p.intro { max-width: 46rem; margin-inline: auto; color: var(--texte-doux); font-size: 1.1rem; }
.byline { font-size: .9rem; color: var(--texte-doux); font-style: italic; }

.en-bref {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  padding: 1.4rem 1.6rem;
  margin: 1.8rem auto 0;
  max-width: 46rem;
  text-align: left;
}
.en-bref strong.etiquette {
  display: block;
  font-size: .74rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: .4rem;
}
.en-bref p:last-child { margin-bottom: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border: 1px solid var(--terracotta);
  color: var(--terracotta);
  background: transparent;
  text-decoration: none;
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--terracotta); color: var(--blanc); }
.btn-plein { background: var(--terracotta); color: var(--blanc); }
.btn-plein:hover { background: var(--terracotta-fonce); border-color: var(--terracotta-fonce); }
.boutons { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-simple .boutons { justify-content: center; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--ligne); }
.section-creme { background: var(--creme); border-top: none !important; }
.section-creme + .section { border-top: none; }
.centre { text-align: center; }
.centre .reponse { border-left: none; padding-left: 0; max-width: 46rem; margin-inline: auto; }

/* ---------- Cartes (grille de prestations) ---------- */
.cartes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem 2rem;
  margin-top: 2.6rem;
  text-align: center;
}
.cartes-2 { grid-template-columns: repeat(2, 1fr); }
.carte img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 1.2rem; }
.carte .sans-photo {
  aspect-ratio: 1 / 1; margin-bottom: 1.2rem;
  background: var(--creme-fonce);
  display: grid; place-items: center;
  font-family: var(--titre); font-size: 3rem; color: var(--terracotta);
}
.carte h3 {
  font-size: 1.25rem; text-transform: uppercase; letter-spacing: .1em;
  margin: 0 0 .6rem;
}
.carte p { color: var(--texte-doux); font-size: .98rem; }
.carte .btn { margin-top: .4rem; }

/* ---------- Prestations détaillées (photo + texte) ---------- */
.soin {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: start;
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--ligne);
}
.soin:last-of-type { border-bottom: none; }
.soin:nth-of-type(even) { grid-template-columns: 1fr 340px; }
.soin:nth-of-type(even) .soin-photo { order: 2; }
.soin-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.soin h3 { margin-top: 0; }
.soin.sans-image { grid-template-columns: 1fr !important; }
.prix-ligne {
  display: inline-block;
  margin-top: .3rem;
  font-family: var(--titre); font-size: 1.25rem; color: var(--terracotta-fonce);
}

.zones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.6rem; }
.bloc {
  background: var(--creme);
  padding: 1.6rem 1.8rem;
  margin: 1.4rem 0;
}
.bloc h3:first-child, .bloc h4:first-child { margin-top: 0; }

.soin-photo .vignettes {
  display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .8rem;
}
.soin-photo .vignettes img { aspect-ratio: 1 / 1; }

.carte-image { display: block; overflow: hidden; margin-bottom: 1.2rem; }
.carte-image img { margin-bottom: 0; transition: transform .5s ease; }
.carte-image:hover img { transform: scale(1.04); }

/* Galerie de photos d'une prestation */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}
.galerie figure { margin: 0; }
.galerie img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Tableaux de prix ---------- */
.table-wrap { overflow-x: auto; margin: 1.2rem 0 .6rem; }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
caption {
  text-align: left; font-family: var(--titre); font-size: 1.25rem;
  padding-bottom: .6rem; color: #2E2A27;
}
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--ligne); vertical-align: top; }
thead th {
  background: var(--creme);
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
  color: var(--terracotta-fonce);
}
td.prix, th.prix { text-align: right; white-space: nowrap; }
td.prix { font-family: var(--titre); font-size: 1.15rem; color: var(--terracotta-fonce); }
.note-prix {
  font-size: .85rem; color: var(--texte-doux); font-style: italic;
  margin-bottom: 1.6rem;
}

/* ---------- Listes ---------- */
.liste-fine { padding-left: 1.2rem; }
.liste-fine li { margin-bottom: .45rem; }
.liste-fine li::marker { color: var(--terracotta); }
ol.etapes { padding-left: 1.3rem; }
ol.etapes li { margin-bottom: .6rem; }
ol.etapes li::marker { color: var(--terracotta); font-family: var(--titre); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1rem; margin-top: 1.4rem; }
.faq-item { background: var(--creme); padding: 1.4rem 1.6rem; }
.faq-item h3 { margin: 0 0 .5rem; font-size: 1.3rem; }
.faq-item p:last-child { margin-bottom: 0; }

/* ---------- Encadrés ---------- */
.avertissement {
  border: 1px solid var(--ligne);
  border-left: 3px solid var(--terracotta);
  background: var(--blanc);
  padding: 1.1rem 1.4rem;
  font-size: .95rem;
  margin: 1.6rem 0;
}
.a-completer {
  background: #FFF4D6; border: 1px dashed #C9A23A;
  padding: .15rem .45rem; font-weight: 700; color: #6E5410;
}
.sources { font-size: .95rem; }
.sources li { margin-bottom: .55rem; }

/* Appel à l'action */
.cta {
  background: var(--creme);
  text-align: center;
  padding-block: clamp(3rem, 7vw, 4.6rem);
}
.cta p { max-width: 40rem; margin-inline: auto; color: var(--texte-doux); }
.cta .boutons { justify-content: center; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--terracotta);
  color: var(--blanc);
  padding-top: 3.4rem;
  font-size: .95rem;
}
.site-footer a { color: var(--blanc); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--blanc); }
.footer-grille {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.4rem;
  padding-bottom: 2.6rem;
}
.footer-logo {
  font-family: var(--titre); font-size: 2rem; letter-spacing: .32em; line-height: 1;
}
.footer-titre {
  font-size: .74rem; letter-spacing: .24em; text-transform: uppercase;
  margin: 0 0 1rem; opacity: .85; font-family: var(--corps); font-weight: 700; color: var(--blanc);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-bas {
  border-top: 1px solid rgba(255, 255, 255, .3);
  padding: 1.3rem 0 1.6rem;
  font-size: .85rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
}
.mention-projet { font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cartes { grid-template-columns: repeat(2, 1fr); }
  .soin, .soin:nth-of-type(even) { grid-template-columns: 260px 1fr; }
  .soin:nth-of-type(even) .soin-photo { order: 0; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .nav-principale { display: none; }
  .nav-mobile { display: block; border-top: 1px solid var(--ligne); margin-top: 1.2rem; text-align: left; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-split img { aspect-ratio: 4 / 3; }
  .cartes, .cartes-2 { grid-template-columns: 1fr; }
  .soin, .soin:nth-of-type(even) { grid-template-columns: 1fr; }
  .soin-photo img { aspect-ratio: 4 / 3; }
  .zones { grid-template-columns: 1fr; }
  .footer-grille { grid-template-columns: 1fr; }
  .logo-nom { letter-spacing: .28em; margin-right: -.28em; }
}

/* ---------- Accueil : prestations en photos dès l'arrivée ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.accueil-intro { text-align: center; padding: clamp(2.2rem, 5vw, 3.4rem) 0 0; }
.accueil-intro h1 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); max-width: 48rem; margin-inline: auto; }
.accueil-intro .intro { max-width: 42rem; margin: 0 auto; color: var(--texte-doux); }
.section-prestations { padding: 1rem 0 clamp(3rem, 7vw, 5rem); }
.section-prestations .cartes { margin-top: 2rem; }
.carte h3 a { color: inherit; text-decoration: none; }
.carte h3 a:hover { color: var(--terracotta); }
.reponse-prestations {
  text-align: center; max-width: 46rem; margin: 3rem auto 0;
  color: var(--texte-doux); font-size: .98rem;
}
.titre-prestations { font-size: clamp(1.1rem, 2vw, 1.35rem); margin: 2.2rem 0 .6rem; }
.section-prestations .reponse-prestations { margin: 0 auto; }
.accueil-intro { padding-top: clamp(1.6rem, 4vw, 2.4rem); }
.accueil-intro h1 { margin-bottom: 0; }
.titre-prestations { margin-top: 1rem; }
.titre-prestations::after { margin-top: .6rem; }

/* ---------- Plan d'accès (page Contact) ---------- */
.carte-plan {
  display: grid; grid-template-columns: 340px 1fr; gap: 2rem;
  align-items: stretch; margin-top: 1.6rem;
}
.carte-adresse {
  background: var(--blanc); border: 1px solid var(--ligne);
  padding: 2rem 1.8rem; text-align: center;
}
.carte-adresse .footer-logo { font-size: 1.7rem; margin-bottom: 1rem; }
.adresse-ligne { font-family: var(--titre); font-size: 1.6rem; line-height: 1.3; }
.carte-adresse .avertissement { text-align: left; font-size: .88rem; }
iframe.plan { width: 100%; min-height: 420px; border: 0; display: block; }
@media (max-width: 760px) {
  .carte-plan { grid-template-columns: 1fr; }
  iframe.plan { min-height: 320px; }
}
.plan-lien { display: block; border: 1px solid var(--ligne); background: var(--blanc); }
.plan-image { width: 100%; height: 100%; object-fit: cover; }
