/* Polices auto-hébergées : Alice (Titres) et Nunito (Texte)
   Fichiers Google Fonts (licence SIL OFL), sous-ensemble latin, mêmes
   déclarations que l'ancien @import (Nunito est une police variable :
   un seul fichier pour toutes les graisses utilisées). */
@font-face {
  font-family: 'Alice';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/alice-v21-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/nunito-v32-latin-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/nunito-v32-latin-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/nunito-v32-latin-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Variables globales - Identité Visuelle */
:root {
  --color-bg: #FDFBF7;
  --color-text: #524C48; /* Anthracite légèrement plus chaud et doux */
  --color-primary: #8EA091; /* Vert sauge extrait du logo */
  --color-secondary: #C0CDC2; 
  --color-accent: #E2A799; 
  --color-card-bg: #FFFFFF;
  
  --font-heading: 'Alice', serif;
  --font-body: 'Nunito', sans-serif;
  
  --border-radius: 12px;
  --box-shadow: 0 4px 20px rgba(74, 68, 65, 0.05);
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  margin-bottom: 1rem;
  font-weight: 500;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
}

p, [data-notion] {
  margin-bottom: 1rem;
  white-space: pre-line;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* Utilitaires */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.section {
  padding: 5rem 0;
}

/* Hero Section & Filigrane Cordon */
.hero-section {
  position: relative;
  background-color: var(--color-bg);
  padding: 4.5rem 0;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-cord-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-cord-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}


/* Header & Navigation */
header {
  background-color: var(--color-bg);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 52px;
  width: auto;
  border-radius: 0; /* Pas d'arrondi sur le logo */
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.nav-links li a.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 4px;
}

/* Bouton Hamburger (Mobile) */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.menu-toggle .bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease;
  transform-origin: center;
}

/* Animation Hamburger -> Croix (X) */
.menu-toggle.is-active .bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: #7a8c7d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(142, 160, 145, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: #fff;
}

/* Clause de non-responsabilité / Avertissement légal */
.disclaimer-section {
  background-color: rgba(142, 160, 145, 0.07);
  border-top: 1px solid rgba(142, 160, 145, 0.18);
  padding: 1.25rem 1rem;
}

.disclaimer-text {
  font-size: 0.82rem;
  color: #79716b;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  line-height: 1.55;
}

.disclaimer-text strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: #fff;
  padding: 2.75rem 0 1.5rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-logo-container,
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.footer-logo-img,
.footer-logo img,
.footer-logo-container img {
  height: 48px;
  width: auto;
  border-radius: 0;
  filter: brightness(0) invert(1); /* Logo en blanc pur sur le fond vert sauge */
}

.footer-logo-text,
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Zones tactiles d'au moins 44px sur mobile / écrans tactiles :
   liens du pied de page, coordonnées (tél., e-mail) et lien CGV */
@media (pointer: coarse), (max-width: 768px) {
  /* Listes du pied de page : lignes régulières de 44px */
  .footer-links li {
    margin-bottom: 0;
    line-height: 44px;
  }

  .footer-links a {
    display: inline-block;
    margin-bottom: 0; /* neutralise la marge de [data-notion], sans effet tant que le lien était inline */
  }

  /* Liens isolés : zone agrandie par padding compensé, sans décaler la mise en page */
  .contact-info a[href^="tel:"],
  .contact-info a[href^="mailto:"] {
    display: inline-block;
    padding: 11px 0;
    margin: -11px 0;
  }

  .footer-bottom a {
    display: inline-block;
    padding: 13px 8px;
    margin: -13px -8px;
  }
}

/* Grille de cartes */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Composant Carte */
.card {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(74, 68, 65, 0.08);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.card-text {
  flex-grow: 1;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .logo-img {
    height: 42px; /* Taille compacte et standard sur mobile */
  }

  .logo-text {
    font-size: 1.35rem;
  }

  footer {
    padding: 2.25rem 0 1.25rem;
  }

  .footer-content {
    gap: 1.5rem;
  }

  /* Affichage du bouton hamburger sur mobile */
  .menu-toggle {
    display: flex;
  }

  /* Panneau déroulant du menu mobile */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-card-bg);
    box-shadow: 0 12px 28px rgba(82, 76, 72, 0.12);
    border-bottom: 2px solid var(--color-secondary);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                transform 0.3s ease,
                visibility 0.35s ease;
  }

  .nav-menu.is-open {
    max-height: 360px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 0 1rem;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 1rem 1.75rem;
    font-size: 0.95rem;
    color: var(--color-text);
    border-bottom: 1px solid rgba(192, 205, 194, 0.25);
    transition: var(--transition);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links li a:hover,
  .nav-links li a:active {
    background-color: var(--color-bg);
    color: var(--color-primary);
    padding-left: 2rem;
  }

  .nav-links li a.active {
    color: var(--color-primary);
    background-color: rgba(142, 160, 145, 0.08);
    border-bottom: 1px solid rgba(192, 205, 194, 0.25);
    border-left: 4px solid var(--color-primary);
    padding-left: calc(1.75rem - 4px);
  }

  .section {
    padding: 3rem 0;
  }

  .legal-article {
    padding: 1.5rem;
  }
}

/* Styles pour les pages légales (CGV, Mentions, etc.) */
.legal-page {
  padding: 3.5rem 0 5rem;
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
}

.legal-header h1 {
  margin-bottom: 0.5rem;
}

.legal-updated {
  color: #8c847e;
  font-size: 0.95rem;
  font-style: italic;
}

.legal-container {
  max-width: 860px;
  margin: 0 auto;
}

.legal-toc {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--box-shadow);
  border-left: 4px solid var(--color-primary);
}

.legal-toc h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.legal-toc ol {
  padding-left: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.5rem 1.5rem;
}

.legal-toc li a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.legal-toc li a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.legal-article {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
}

.legal-article h2 {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  display: block;
}

.legal-article h2::after {
  display: none;
}

.legal-article h3 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.legal-article p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-article ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-article li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-box {
  background-color: var(--color-bg);
  border-left: 4px solid var(--color-primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.legal-box p {
  margin-bottom: 0.4rem;
}

.legal-box p:last-child {
  margin-bottom: 0;
}

.legal-box-accent {
  border-left-color: var(--color-accent);
  background-color: rgba(226, 167, 153, 0.12);
}

/* Feedback et états du formulaire de contact */
.form-feedback {
  padding: 1.15rem 1.35rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  display: none;
  animation: fadeInFeedback 0.3s ease-in-out;
}

@keyframes fadeInFeedback {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-feedback.success {
  display: block;
  background-color: rgba(142, 160, 145, 0.15);
  border: 1px solid var(--color-primary);
  color: #38503d;
  font-weight: 600;
}

.form-feedback.error {
  display: block;
  background-color: rgba(226, 167, 153, 0.18);
  border: 1px solid var(--color-accent);
  color: #8c3f33;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.label-optional {
  font-weight: 400;
  font-size: 0.85em;
  color: #8c847e;
  margin-left: 0.25rem;
}

.form-control.is-invalid {
  border-color: var(--color-accent) !important;
  background-color: rgba(226, 167, 153, 0.05);
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(226, 167, 153, 0.25);
}

