/* ============================================
   Coach Mindset — Styles de base
   Noms en français pour s'y retrouver :
   - .menu-bouton / .menu-liens = navigation
   - .bouton / .bouton-principal / .bouton-contour = boutons
   - .titre-section = titre de section avec petit texte au-dessus
   - .pied-contenu / .pied-haut / .pied-bas = footer
   ============================================ */

:root {
  /* Fonds — teal & blush (sections alternées) */
  --teal-fonce: #2d4a47;
  --teal-moyen: #3d5f5c;
  --blush: #e8d4d0;
  --blush-rose: #dfc4bf;
  --blush-clair: #f2e4e1;
  /* Marron / rust — boutons, bordures, accents */
  --marron: #7a5c4d;
  --marron-fonce: #5c4539;
  --rust: #8b6b5c;
  /* Crème & blanc — texte sur fond sombre, fonds clairs */
  --creme: #faf6f2;
  --blanc: #ffffff;
  --beige: #f5f0eb;
  --beige-chaud: #efe9e3;
  /* Typo & contraste */
  --charcoal: #2d2a26;
  --texte: #2d2a26;
  --texte-clair: #5c5652;
  /* Accents doux */
  --olive: #7a8f7a;
  --olive-clair: #9aab9a;
  /* Ombres & effets */
  --ombre-douce: rgba(45, 42, 38, 0.08);
  --ombre-accent: rgba(122, 92, 77, 0.15);
}

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


html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--texte);
  background: var(--creme);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: 0.01em;
}
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p, .menu-liens, .bouton, input, textarea, label {
  font-family: 'Outfit', 'Segoe UI', sans-serif;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(250, 246, 242, 0.85);
  border-bottom: 1px solid var(--blush-rose);
  transition: box-shadow 0.3s ease;
}

header.scrolled {
  box-shadow: 0 4px 24px var(--ombre-douce);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
}

.logo img {
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
}

.menu-liens {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.menu-liens a {
  color: var(--teal-fonce);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

.menu-liens a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--marron);
  transition: width 0.3s ease;
}

.menu-liens a:hover::after,
.menu-liens a.active::after {
  width: 100%;
}

/* Mobile menu */
.menu-bouton {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-bouton span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--texte);
  margin: 5px 0;
  transition: 0.3s;
}

/* Main content spacing (for fixed header) */
main {
  position: relative;
  z-index: 0;
  padding-top: 84px;
  min-height: calc(100vh - 200px);
}

/* Sections */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.titre-section {
  text-align: center;
  color: var(--charcoal);
  margin-bottom: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.titre-section span {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--texte-clair);
  margin-bottom: 0.5rem;
}

/* Boutons */
.bouton {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.bouton-principal {
  background: var(--marron);
  color: var(--creme);
  box-shadow: 0 4px 20px var(--ombre-accent);
}

.bouton-principal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--ombre-accent);
  background: var(--marron-fonce);
  color: var(--creme);
}

.bouton-contour {
  background: transparent;
  border: 2px solid var(--creme);
  color: var(--creme);
}

.bouton-contour:hover {
  background: rgba(250, 246, 242, 0.15);
  color: var(--creme);
  border-color: var(--creme);
}

.bouton-secondaire {
  background: transparent;
  border: 2px solid var(--marron);
  color: var(--marron);
}

.bouton-secondaire:hover {
  background: var(--marron);
  color: var(--creme);
}

/* Footer */
footer {
  position: relative;
  background: var(--teal-fonce);
  color: var(--creme);
  padding: 3.5rem 2rem 2rem;
  margin-top: 0;
  border-top: none;
}

.pied-contenu {
  max-width: 1100px;
  margin: 0 auto;
}

.pied-haut {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(250, 246, 242, 0.2);
  margin-bottom: 1.5rem;
}

.pied-col {
  text-align: center;
}

.pied-col h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blush-clair);
  margin-bottom: 1rem;
}

.pied-liens-rapides ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pied-liens-rapides li {
  margin-bottom: 0.5rem;
}

.pied-liens-rapides a {
  color: var(--creme);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.pied-liens-rapides a:hover{
  color: var(--blush-clair);
  text-decoration: underline;
}

.pied-reseaux-icones {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pied-reseaux-icones a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(250, 246, 242, 0.12);
  color: var(--creme);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pied-reseaux-icones a:hover {
  background: var(--blush-clair);
  color: var(--teal-fonce);
  transform: translateY(-2px);
}

.pied-reseaux-icones svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.pied-newsletter p {
  font-size: 0.9rem;
  color: rgba(250, 246, 242, 0.9);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.pied-newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pied-newsletter-form input {
  flex: 1;
  min-width: 180px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(250, 246, 242, 0.35);
  border-radius: 6px;
  background: rgba(250, 246, 242, 0.08);
  color: var(--creme);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pied-newsletter-form input::placeholder {
  color: rgba(250, 246, 242, 0.5);
}

.pied-newsletter-form input:focus {
  outline: none;
  border-color: var(--blush-clair);
  background: rgba(250, 246, 242, 0.12);
}

.pied-newsletter-form button {
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 6px;
  background: var(--blush-clair);
  color: var(--teal-fonce);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pied-newsletter-form button:hover {
  background: var(--creme);
  transform: translateY(-1px);
}

.pied-bas {
  display: flex;
  align-items: center;
  justify-content: center;  
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;     
}

.pied-copyright {
  font-size: 0.85rem;
  color: rgba(250, 246, 242, 0.75);
  margin: 0;
}

@media (max-width: 768px) {
  .pied-haut {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    text-align: center;
  }

  .pied-reseaux-icones {
    justify-content: center;
  }

  .pied-newsletter-form {
    flex-direction: column;
  }

  .pied-newsletter-form input {
    min-width: 100%;
  }

  .pied-bas {
    flex-direction: column;
    text-align: center;
  }
}

/* Retour en haut (flèche après la section hero) */
.retour-haut {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-fonce);
  color: var(--creme);
  border-radius: 50%;
  box-shadow: 0 4px 20px var(--ombre-accent);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.retour-haut.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.retour-haut:hover {
  background: var(--teal-moyen);
  color: var(--creme);
}

.retour-haut:focus {
  outline: 2px solid var(--marron);
  outline-offset: 3px;
}

.retour-haut svg {
  display: block;
}

/* Utility */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

/* Responsive */
@media (max-width: 768px) {
  .menu-bouton {
    display: block;
  }

  /* La nav devient le repère pour le menu et occupe toute la largeur du header */
  nav {
    position: relative;
    width: 100%;
    max-width: none;
  }

  .menu-liens {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: -1px; /* léger chevauchement pour éviter toute ligne entre barre et menu */
    background: rgba(250, 246, 242, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--blush-rose);
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 10px 30px var(--ombre-douce);
  }

  /* En mobile, on enlève la fine bordure sous la navbar
     pour que la section hero touche directement le header */
  header {
    border-bottom: none;
    /* Hauteur explicite pour que la zone colorée soit toujours pleine */
    min-height: 72px;
  }

  .menu-liens.ouvert {
    transform: translateY(0);
    opacity: 1;
  }

  section {
    padding: 3rem 1.5rem;
  }
}

/* Très petits écrans (mobile < 480px) */
@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  nav {
    padding: 0.5rem 1.25rem;
  }

  .logo img {
    height: 52px;
  }

  section {
    padding: 2.5rem 1.25rem;
  }

  .bouton {
    width: 100%;
    text-align: center;
  }

  .pied-newsletter-form {
    align-items: stretch;
  }

  .pied-newsletter-form button {
    width: 100%;
  }
}
