/* ===================================================
   TOUT AU CHAUD — Feuille de styles principale
   Palette :
     #F4EFE6  Crème        → fond principal
     #EAE2D6  Sable        → fond sections alternées
     #2A2420  Brun foncé   → texte principal
     #7A6E68  Gris chaud   → texte secondaire, labels
     #B0583A  Terre cuite  → accent, CTA
     #C97A58  T.cuite clair → survol, liens actifs
   =================================================== */

/* ==============================================
   VARIABLES & RESET
   ============================================== */

:root {
  --fond:            #F4EFE6;
  --sable:           #EAE2D6;
  --texte:           #2A2420;
  --texte-doux:      #7A6E68;
  --accent:          #B0583A;
  --accent-clair:    #C97A58;

  --titre: 'Cormorant Garamond', Georgia, serif;
  --corps: 'Inter', Arial, sans-serif;

  --largeur-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--fond);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* ==============================================
   UTILITAIRES
   ============================================== */

/* Conteneur centré avec marges latérales */
.contenu-max {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Classe partagée pour tous les blocs placeholder d'image */
.img-placeholder {
  background-color: var(--sable);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.img-placeholder span {
  font-family: var(--corps);
  font-size: 0.8rem;
  color: var(--texte-doux);
  font-style: italic;
  line-height: 1.5;
}

/* Titres de section */
.titre-section {
  font-family: var(--titre);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.sous-titre-section {
  font-size: 1rem;
  color: var(--texte-doux);
  max-width: 55ch;
  margin-bottom: 3rem;
  line-height: 1.75;
}

.corps-texte {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--texte);
  max-width: 60ch;
}

/* ==============================================
   BOUTONS & LIENS STYLISTIQUES
   ============================================== */

.bouton-principal {
  display: inline-block;
  background-color: var(--accent);
  color: var(--fond);
  font-family: var(--corps);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.9rem 2.2rem;
  transition: background-color 0.25s ease;
}

.bouton-principal:hover {
  background-color: var(--accent-clair);
  color: var(--fond);
}

.lien-discret {
  display: inline-block;
  font-family: var(--corps);
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.lien-discret:hover {
  color: var(--accent-clair);
}

/* ==============================================
   EN-TÊTE & NAVIGATION
   ============================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--fond);
  border-bottom: 1px solid var(--sable);
}

.header-inner {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

/* Logo SVG inline — header */
.lien-logo {
  color: var(--texte);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: 2.4rem;
}

.lien-logo svg {
  height: 100%;
  width: auto;
  display: block;
}

/* Surcharge couleur : fond crème sur fond brun foncé du footer */
.site-footer .lien-logo {
  color: var(--fond);
}

/* Logo texte — classe conservée au cas où */
.logo {
  font-family: var(--titre);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--texte);
}

/* Bouton hamburger — visible sur mobile uniquement */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--texte);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animation du hamburger → croix */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Navigation — masquée par défaut sur mobile, ouverte via JS */
.nav-principale {
  display: none;
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  background-color: var(--fond);
  border-bottom: 1px solid var(--sable);
  padding: 1.5rem;
}

.nav-principale.ouverte {
  display: block;
}

.nav-principale ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-principale a {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--texte-doux);
}

.nav-principale a:hover,
.nav-principale a.actif {
  color: var(--accent);
}

/* ==============================================
   HERO — Accueil
   ============================================== */

/* Mobile : texte empilé sur fond sable */
.hero {
  padding: 5rem 1.5rem 4rem;
  background-color: var(--sable);
}

.hero-contenu {
  max-width: var(--largeur-max);
  margin: 0 auto;
}

/* Centrage mobile/tablette — bouton à sa taille naturelle grâce à align-items */
.hero-texte {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

/* Masqué sur mobile et tablette — visible uniquement sur desktop */
.hero-visuel {
  display: none;
}

.hero-surtitre {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--texte-doux);
}

.hero-titre {
  font-family: var(--titre);
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.0;
  color: var(--texte);
}

.hero-tagline {
  font-size: 1rem;
  color: var(--texte-doux);
  max-width: 38ch;
  line-height: 1.6;
}

/* ==============================================
   SECTION DÉCOUVRIR — Grille de pièces
   ============================================== */

.decouvrir {
  padding: 4rem 0;
}

/* Sur mobile : 2 colonnes */
.grille-pieces {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.piece-carte {
  display: flex;
  flex-direction: column;
}

.piece-image {
  aspect-ratio: 3 / 4;
}

/* Légère variation de teinte entre les placeholders */
.piece-carte:nth-child(1) .piece-image { background-color: #DDD0BC; }
.piece-carte:nth-child(2) .piece-image { background-color: #D0C3AF; }
.piece-carte:nth-child(3) .piece-image { background-color: #C8BAA5; }
.piece-carte:nth-child(4) .piece-image { background-color: #D5C9B6; }

.piece-legende {
  font-size: 0.85rem;
  color: var(--texte-doux);
  padding: 0.75rem 0 0;
  font-style: italic;
}

/* ==============================================
   SECTION PRÉSENTATION COURTE — Accueil
   ============================================== */

.presentation {
  padding: 4rem 0;
  background-color: var(--sable);
}

/* Mobile : empilé */
.presentation-interieur {
  display: grid;
  gap: 2.5rem;
}

.presentation-texte {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.presentation-visuel {
  aspect-ratio: 4 / 3;
  background-color: #C5B8A4;
}

/* ==============================================
   PAGE À PROPOS
   ============================================== */

/* En-tête de page interne */
.page-intro {
  padding: 4rem 0 2rem;
  text-align: center;
}

.page-intro .titre-section {
  font-style: italic;
}

/* Bloc biographie : image + texte */
.biographie {
  padding: 3rem 0 4rem;
}

.biographie-interieur {
  display: grid;
  gap: 2.5rem;
}

.bio-image {
  aspect-ratio: 4 / 5;
  background-color: #C9BBA8;
}

.bio-texte {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bio-texte p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--texte);
}

/* Section processus en 3 étapes */
.processus {
  padding: 4rem 0;
  background-color: var(--sable);
}

.etapes {
  display: grid;
  gap: 2rem;
  margin-top: 1rem;
}

.etape {
  padding: 2rem;
  background-color: var(--fond);
}

.etape-numero {
  font-family: var(--titre);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
}

.etape h3 {
  font-family: var(--titre);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.etape p {
  font-size: 0.95rem;
  color: var(--texte-doux);
  line-height: 1.75;
}

/* ==============================================
   PAGE CONTACT
   ============================================== */

.contact-intro {
  padding: 4rem 0 2rem;
  text-align: center;
}

.contact-intro p {
  font-size: 1.05rem;
  color: var(--texte-doux);
  max-width: 55ch;
  margin: 1rem auto 0;
  line-height: 1.75;
}

.contact-grille {
  /* Padding horizontal sur mobile pour éviter la sensation étriquée */
  padding: 3rem clamp(1.25rem, 5vw, 1.5rem) 5rem;
  display: grid;
  /* Gap plus grand : respiration entre formulaire et bloc infos */
  gap: 4rem;
}

/* Formulaire */
.formulaire-contact {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.champ {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.champ label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--texte-doux);
}

.champ input,
.champ textarea {
  font-family: var(--corps);
  font-size: 1rem;
  color: var(--texte);
  background-color: var(--fond);
  /* Bordure renforcée : brun texte à 20% — visible sans être agressif */
  border: 1px solid rgba(42, 36, 32, 0.2);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease;
  outline: none;
  width: 100%;
  /* Couleur de remplissage auto du navigateur */
  -webkit-appearance: none;
}

.champ input:focus,
.champ textarea:focus {
  border-color: var(--accent);
}

.champ textarea {
  resize: vertical;
  min-height: 160px;
}

.champ-optionnel label::after {
  content: ' (optionnel)';
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

/* Prénom + Nom : empilés sur mobile, côte à côte au-dessus de 520px */
.champs-nom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Infos de contact à côté du formulaire */
.contact-infos {
  display: flex;
  flex-direction: column;
  /* Gap augmenté : respiration entre "Par e-mail", "Instagram", "Basée en" */
  gap: 2.5rem;
  padding-top: 0.5rem;
}

.info-bloc h3 {
  font-family: var(--titre);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.info-bloc p,
.info-bloc a {
  font-size: 1rem;
  color: var(--texte-doux);
  display: block;
  line-height: 1.75;
}

.info-bloc a:hover {
  color: var(--accent);
}

/* Message de confirmation post-envoi */
.confirmation-envoi {
  font-size: 1rem;
  color: var(--accent);
  padding: 1rem 0;
  font-style: italic;
}

/* ==============================================
   PIED DE PAGE
   ============================================== */

.site-footer {
  background-color: var(--texte);
  color: var(--fond);
  padding: 3.5rem 1.5rem 2rem;
}

.footer-inner {
  max-width: var(--largeur-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(244, 239, 230, 0.18);
  margin-bottom: 2rem;
}

.footer-marque .logo {
  color: var(--fond);
  display: block;
  margin-bottom: 0.3rem;
}

.footer-slogan {
  font-size: 0.85rem;
  color: rgba(244, 239, 230, 0.75);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fond);
}

.footer-nav a:hover {
  color: var(--accent-clair);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact a {
  font-size: 0.9rem;
  color: var(--fond);
}

.footer-contact a:hover {
  color: var(--accent-clair);
}

.footer-copyright {
  max-width: var(--largeur-max);
  margin: 0 auto;
  font-size: 0.78rem;
  color: rgba(244, 239, 230, 0.58);
}

/* ==============================================
   MOBILE STRICT (≤ 519px) — ajustements tactiles
   ============================================== */

@media (max-width: 519px) {
  /* Inputs plus hauts pour le confort tactile */
  .champ input,
  .champ textarea {
    padding: 1rem 1rem;
  }
}

/* ==============================================
   BREAKPOINT 520px — Prénom/Nom côte à côte
   ============================================== */

@media (min-width: 520px) {
  .champs-nom {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==============================================
   MEDIA QUERIES — Tablette et desktop
   ============================================== */

@media (min-width: 768px) {

  /* --- Navigation desktop --- */
  .nav-toggle { display: none; }

  .nav-principale {
    display: block !important; /* toujours visible sur desktop */
    position: static;
    border: none;
    padding: 0;
  }

  .nav-principale ul {
    flex-direction: row;
    gap: 2.5rem;
  }

  /* --- Hero desktop : plus de marge --- */
  .hero {
    padding: 7rem 1.5rem 6rem;
  }

  /* --- Grille pièces : 4 colonnes --- */
  .grille-pieces {
    grid-template-columns: repeat(4, 1fr);
  }

  /* --- Présentation : côte à côte --- */
  .presentation-interieur {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    padding: 0 1.5rem;
  }

  .presentation-visuel {
    aspect-ratio: 3 / 4;
  }

  /* --- À propos --- */
  .biographie-interieur {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 5rem;
    padding: 0 1.5rem;
  }

  .bio-image {
    aspect-ratio: 3 / 4;
  }

  .bio-texte {
  }

  .etapes {
    grid-template-columns: repeat(3, 1fr);
  }

  /* --- Contact --- */
  .contact-grille {
    grid-template-columns: 3fr 2fr;
    gap: 5rem;
    padding: 3rem 1.5rem 6rem;
    max-width: var(--largeur-max);
    margin: 0 auto;
  }

  /* --- Footer --- */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-nav {
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
    padding-top: 0.25rem;
  }
}

@media (min-width: 1024px) {

  /* Desktop : 2 colonnes — texte gauche (~45%), visuel droit (~55%) */
  .hero {
    padding: 0;
  }

  .hero-contenu {
    display: grid;
    grid-template-columns: 45fr 55fr;
    align-items: center;
  }

  /* Colonne texte desktop : alignement gauche, cohérent avec le layout texte/image */
  .hero-texte {
    padding: 6rem 3rem 6rem 5rem;
    align-items: flex-start;
    text-align: left;
  }

  .hero-visuel {
    display: block;
    align-self: stretch;
    min-height: 520px;
    position: relative;
  }

  /* Image fournie par Magda */
  .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Placeholder si aucune image — dégradé sobre tiré de la palette */
  .hero-visuel-placeholder {
    background: linear-gradient(150deg, #C8BAA5 0%, #B5A898 100%);
  }

  .decouvrir {
    padding: 6rem 0;
  }

  .presentation {
    padding: 6rem 0;
  }

  .biographie {
    padding: 4rem 0 6rem;
  }

  .processus {
    padding: 6rem 0;
  }
}

/* ==============================================
   CAROUSEL — Accueil
   ============================================== */

/* overflow: hidden sur le conteneur masque les cartes hors-champ */
.carousel {
  overflow: hidden;
}

.carousel-piste {
  display: flex;
  gap: 1rem;
  transition: transform 300ms ease;
}

/* Mobile : 1 carte visible */
.carousel-item {
  flex: 0 0 100%;
  text-decoration: none;
  color: inherit;
}

/* Flèches sous la piste, centrées, 44×44 min pour l'accessibilité tactile */
.carousel-controles {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carousel-fleche {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--texte-doux);
  background: transparent;
  color: var(--texte-doux);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.carousel-fleche:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (min-width: 768px) {
  /* Desktop : 3 cartes simultanées — 2 gaps de 1rem entre elles */
  .carousel-item {
    flex: 0 0 calc((100% - 2rem) / 3);
  }
}

/* ==============================================
   PAGE PIÈCE DÉDIÉE
   ============================================== */

.piece-page {
  padding: 3rem 1.5rem 5rem;
}

.piece-retour {
  display: inline-block;
  margin-bottom: 2.5rem;
}

/* Mobile : empilé, image en premier */
.piece-corps {
  display: grid;
  gap: 2.5rem;
}

.piece-page-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.piece-infos {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.titre-piece {
  font-family: var(--titre);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  color: var(--texte);
  margin: 0;
}

/* Desktop : 2 colonnes, image ~45%, texte ~55% */
@media (min-width: 768px) {
  .piece-corps {
    grid-template-columns: 45fr 55fr;
    gap: 5rem;
    align-items: start;
  }

  .piece-infos {
    padding-top: 1rem;
    position: sticky;
    top: 2rem; /* colle le texte en haut au scroll si image longue */
  }
}
