/* ==========================================================================
   MAELYS CHAVEROUX — MAKEUP ARTIST
   Feuille de style unique, partagée par les 3 pages (index / book / contact)
   Mobile first : les règles de base ciblent le mobile, les media queries
   (min-width) ajoutent les ajustements tablette / desktop.
   ========================================================================== */

/* ── VARIABLES : à modifier ici pour changer tout le site ── */
:root {
  /* Couleurs — reprises du site actuel */
  --fonce: #D9D4CE;      /* foncé (accents, fonds de section) */
  --clair: #E2E1DD;      /* clair (fond général) */
  --gris: #C7C3BE;       /* gris (boutons, cta) */
  --text-dark: #000000;  /* texte noir */
  --text-light: #61605C; /* texte gris/blanc sur fond clair */
  --blanc: #ffffff;

  /* Typographies */
  /* Titres : Atteron. Si vous possédez le fichier de police (.woff2),
     déposez-le dans /Fonts/Atteron.woff2 et décommentez le @font-face
     tout en bas de ce fichier. En attendant, on utilise un repli élégant. */
  --font-titres: 'Atteron', 'Cormorant Garamond', Georgia, serif;
  --font-texte: 'Jost', sans-serif;

  /* Rythme */
  --section-pad: 2.75rem 1rem;
  --container-max: 1100px;
  --nav-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--clair);
  color: var(--text-dark);
  font-family: var(--font-texte);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container-max); margin: 0 auto; }

section { padding: var(--section-pad); }
.section-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  text-align: center;
}
.section-title {
  font-family: var(--font-titres);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}
.divider {
  width: 40px;
  height: 1px;
  background: var(--text-light);
  margin: 1.25rem auto 2rem;
}

/* ==========================================================================
   NAV — bandeau en haut de la page, fixe et transparent au-dessus de l'accueil.
   ========================================================================== */
.site-nav {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 0 0.85rem;
  background: transparent;
}
.site-nav.nav-hidden { transform: none !important; }

.nav-link {
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--text-dark); }

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 0.15rem;
}
.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
  transition: height 0.3s ease, transform 0.3s ease;
  transform: scale(1.25);
}

/* espace pour compenser le nav fixe */
body { padding-top: 0; } /* #accueil gère lui-même son offset via padding-top: var(--nav-height) */
.page-offset { padding-top: var(--nav-height); }

@media (min-width: 600px) {
  .site-nav {
    justify-content: center;
    gap: 2.5rem;
    padding: 0 1rem;
  }
  .nav-logo { margin: 0 0.35rem; }
  .nav-link { font-size: 0.7rem; }
  .nav-logo-img { height: 50px; transform: scale(1.15); }
}

/* ==========================================================================
   HERO — Accueil
   La section ne fait plus toute la hauteur de l'écran : la photo est collée
   juste sous le bandeau (nav), centrée horizontalement, et le texte suit
   naturellement en dessous, sans grand espace vide.
   ========================================================================== */
#accueil {
  position: relative;
  overflow: hidden;
  padding: 0 0 3rem;
  background: var(--clair) url("Images/Fond_rideau.png") center/cover no-repeat;
}
#accueil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.hero-front-img-wrap {
  position: relative;
  z-index: 2;
  width: 58%;
  max-width: 340px;
  aspect-ratio: 3/4;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  border: 6px solid var(--clair);
}
.hero-front-img-wrap img { width: 100%; height: 100%; object-fit: cover;}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
  padding: 1.5rem 1.5rem 0;
}
.hero-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}
.hero-title {
  font-family: var(--font-titres);
  font-size: clamp(2.2rem, 10vw, 3.6rem);
  color: var(--text-dark);
  line-height: 1;
}
.hero-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.75rem;
}

@media (min-width: 700px) {
  .hero-front-img-wrap { width: 32%; max-width: 380px; }
}

/* ==========================================================================
   AVIS — étoiles + carrousel
   ========================================================================== */
#avis { background: var(--gris); text-align: center; }
.avis-note-globale {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
}
.stars { display: flex; gap: 0.2rem; }
.stars svg { width: 18px; height: 18px; }
.avis-note-globale .stars svg { width: 24px; height: 24px; }
.avis-slide .stars { margin-top: 0.2rem; }
.avis-slide .stars svg { width: 11px; height: 11px; }
.star-full { fill: var(--text-dark); }
.star-empty { fill: none; stroke: var(--text-dark); stroke-width: 1.2; }
.avis-note-chiffre {
  font-family: var(--font-titres);
  font-size: 1.4rem;
}
.avis-note-sous {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
}

.avis-carousel {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  min-height: 180px;
}
.avis-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.avis-slide.active { opacity: 1; pointer-events: auto; position: relative; }
.avis-texte {
  font-family: var(--font-titres);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.6;
}
.avis-auteur {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
}
.avis-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.avis-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clair);
  border: none;
  cursor: pointer;
  padding: 0;
}
.avis-dot.active { background: var(--text-dark); }

/* ==========================================================================
   À PROPOS — cadre foncé contenant le texte, photo qui déborde en écrasant
   son coin supérieur gauche. Le texte commence à droite de la photo, revient
   à la ligne en restant dans le cadre, puis passe sous la photo une fois
   qu'il l'a dépassée.
   ========================================================================== */
#apropos { background: var(--clair); }
.about-stack {
  position: relative;
  max-width: 480px;
  margin: 3rem auto 0;
  padding-left: 0;
}

/* Cadre foncé qui contient tout le texte */
.about-content {
  position: relative;
  z-index: 1;
  background: var(--gris);
  margin-left: 8%;
  padding: 2.25rem 1rem 1.5rem 1.25rem;
}
.about-content::after { content: ''; display: table; clear: both; }

/* Photo flottante : déborde au-dessus et à gauche du cadre, ce qui donne
   l'impression qu'elle écrase une partie de son coin. */
.about-photo-card {
  float: left;
  width: 54%;
  aspect-ratio: 3/4;
  margin: -1.75rem 1rem 1rem -8%;
  position: relative;
  z-index: 2;
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
  background: var(--clair);
}
.about-photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.about-content p {
  font-size: 0.88rem;
  color: var(--text-dark);
  margin-bottom: 1.1rem;
  line-height: 1.8;
}
.about-signature {
  font-family: var(--font-titres);
  font-style: italic;
  font-size: 1.1rem;
  clear: both;
}

@media (min-width: 700px) {
  .about-stack { max-width: 620px; padding-left: 8%; }
  .about-content { margin-left: 18%; padding: 3.25rem 2rem 2.5rem 2.25rem; }
  .about-photo-card { width: 44%; margin: -2.5rem 1.75rem 1.5rem -22%; }
}

/* ==========================================================================
   SERVICES — 3 cases côte à côte
   ========================================================================== */
#services { background: var(--gris); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  max-width: var(--container-max);
  margin: 0 auto;
}
.service-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  background: var(--clair);
}
.service-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover img { transform: scale(1.06); }
.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem 0.4rem;
}
.service-name {
  font-family: var(--font-titres);
  font-size: clamp(0.85rem, 4vw, 1.3rem);
  color: var(--clair);
  letter-spacing: 0.04em;
  text-align: center;
}
@media (min-width: 600px) {
  .services-grid { gap: 1.25rem; }
}

/* ==========================================================================
   MODALES (services + mentions légales)
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.55);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  position: relative;
  background: var(--clair);
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem 1.75rem 2rem;
}
.modal-box h2 {
  font-family: var(--font-titres);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.modal-box h3 {
  font-family: var(--font-texte);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 1.25rem 0 0.4rem;
  color: var(--text-light);
}
.modal-box p { font-size: 0.85rem; margin-bottom: 0.5rem; }
.modal-close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 6px 10px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.site-footer {
  background: var(--fonce);
  padding: 3rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.footer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.footer-label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
}
.footer-block a, .footer-block span {
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text-dark);
}
.footer-socials { display: flex; gap: 1.25rem; }
.footer-social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text-dark);
}
.footer-legal {
  font-size: 0.65rem;
  color: var(--text-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}
.footer-legal a { text-decoration: underline; color: var(--text-light); }
.footer-sep { opacity: 0.5; }

@media (min-width: 900px) {
  footer.site-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
  .footer-block { align-items: flex-start; }
}

/* ==========================================================================
   PAGE BOOK — groupes de photos + légendes
   ========================================================================== */
#book-hero {
  padding: 3rem 1rem 1.5rem;
  text-align: center;
  background: var(--clair);
}
.book-groups {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 3rem;
}
.book-group {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.book-group img {
  width: 84%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 0.6rem;
  cursor: pointer;
}
.book-group img:last-of-type { margin-bottom: 0; }

/* Calibrage du cadrage dans le rectangle (voir commentaire dans book.html) */
.book-group img.pos-top { object-position: top; }
.book-group img.pos-center { object-position: center; }
.book-group img.pos-bottom { object-position: bottom; }

@media (min-width: 700px) {
  .book-group img { width: 65%; }
}
.book-caption {
  width: 84%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-top: 0.5rem;
  transform: translateX(0.75rem);
}
@media (min-width: 700px) {
  .book-caption { width: 65%; }
}
.book-caption .caption-name {
  font-family: var(--font-titres);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.book-caption .caption-credit {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.15rem;
}

/* ==========================================================================
   LIGHTBOX (plein écran, book + services)
   ========================================================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,0.95);
  flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox-header {
  display: flex; justify-content: flex-end; align-items: center;
  padding: 1rem 1.25rem; flex-shrink: 0;
}
.lightbox-close {
  background: none; border: none; color: var(--clair);
  font-size: 1.6rem; cursor: pointer; line-height: 1; padding: 4px 8px;
}
.lightbox-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; min-height: 0;
}
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: none; color: var(--clair);
  font-size: 1.5rem; width: 44px; height: 44px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav.prev { left: 0.5rem; }
.lightbox-nav.next { right: 0.5rem; }

/* ==========================================================================
   PAGE CONTACT
   ========================================================================== */
#contact-page { padding: 3rem 1rem 2.75rem; background: var(--clair); }
.contact-info-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 420px;
  margin: 0 auto 3rem;
}
.contact-info-item { display: flex; flex-direction: column; gap: 0.25rem; align-items: center; text-align: center; }
.contact-info-label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
}
.contact-info-item a { font-size: 0.95rem; text-decoration: none; }

.contact-map-wrap { max-width: 720px; margin: 0 auto; }
.contact-map-wrap iframe {
  width: 100%;
  height: 320px;
  border: none;
  filter: grayscale(0.15);
}
.contact-map-caption {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 1rem;
}

/* ── Fade-in au scroll ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Police Atteron : décommentez si vous ajoutez le fichier ──
@font-face {
  font-family: 'Atteron';
  src: url('../Fonts/Atteron.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/
