/* --- CSS VARIABLES & RESET --- */
:root {
  --primary-color: #a8321c;
  --primary-hover: #86260f;
  --olive: #6b7340;
  --olive-hover: #555c31;
  --gold-accent: #c5a059;
  --text-color: #333333;
  --text-muted: #666666;
  --bg-light: #f7f3ec;
  --border-color: #e2dbd0;
  
    --font-serif: Georgia, serif;
    --font-cursive: 'Great Vibes', cursive;
  --font-sans: 'Montserrat', sans-serif;

}
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/material-symbols-outlined.woff2') format('woff2');
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text-color);
  background-color: var(--bg-light);
  background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), radial-gradient(rgba(0,0,0,0.02) 1px, var(--bg-light) 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  line-height: 1.6;
  padding-bottom: 70px;

}

a {
  text-decoration: none;
  color: inherit;
}

/* --- HEADER & LOGO --- */
header {
  position: relative;
  width: 100%;
  padding: 1.2rem 1.5rem 0.5rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.logo,
header .logo,
.drawer-header .logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 2px;
  color: var(--olive);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
}

header a.logo-link,
.drawer-header a.logo-link {
  text-decoration: none;
  display: inline-block;
}

header .logo img.heart-custom-img,
.drawer-header .logo img.heart-custom-img {
  width: 21px;
  height: 20px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin-top: 1px;
}

/* Logo d'en-tête : un peu plus grand, encadré de deux traits dorés (pas dans la sidebar) */
header .logo {
  font-size: 1.55rem;
}

header .logo::before,
header .logo::after {
  content: '';
  width: clamp(18px, 5vw, 70px);
  height: 1px;
  background: var(--gold-accent);
}

header .logo::before {
  margin-right: 0.6rem;
}

header .logo::after {
  margin-left: 0.6rem;
}

/* BOUTON HAMBURGER FLOTTANT */
.fixed-hamburger {
  position: fixed;
  top: 1rem;
  right: 1.2rem;
  z-index: 1002;
  background: rgba(247, 243, 236, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* --- DRAWER MENU & SIDEBAR --- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--bg-light);
  background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  box-shadow: -5px 0 25px rgba(0,0,0,0.12);
  z-index: 1003;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu-overlay.active {
  right: 0;
}

.close-btn {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.2rem;
  display: block;
}

.drawer-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-left: 0.5rem;
}

.mobile-nav-links li a {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-color) !important;
  font-weight: 400 !important;
  background-color: transparent !important;
  letter-spacing: 0.3px;
  transition: color 0.2s, background-color 0.2s;
  padding: 0.4rem 0.6rem !important;
  border-radius: 6px;
}

.mobile-nav-links li a:hover {
  color: var(--primary-color) !important;
  background-color: rgb(168 50 28 / 6%) !important;
}

.mobile-nav-links li a:hover i,
.mobile-nav-links li a:hover .material-symbols-outlined {
  color: var(--primary-color) !important;
}

.mobile-nav-links li a i,
.mobile-nav-links li a .material-symbols-outlined {
  color: var(--text-muted) !important;
  font-size: 1.2rem;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mobile-nav-links li a.active {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  background-color: rgb(168 50 28 / 10%) !important;
  padding-left: 0.8rem !important;
}

.mobile-nav-links li a.active i,
.mobile-nav-links li a.active .material-symbols-outlined {
  color: var(--primary-color) !important;
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  text-align: center;
  position: relative;
}

.mobile-menu-footer p {
  font-family: var(--font-cursive);
  font-size: 1.6rem;
  color: var(--primary-color);
  line-height: 1.4;
  margin-bottom: 3.5rem;
}

.drawer-illustration-container {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.2rem;
}

.branche-drawer-bottom {
  width: 200px;
  height: auto;
  object-fit: contain;
  transform: scaleX(-1) rotate(-8deg);
  mix-blend-mode: multiply;
}

/* --- BOTTOM NAVIGATION BAR (MOBILE) --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #f7f3ec;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 950;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.6rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  width: 20%;
  height: 100%;
  transition: color 0.2s;
}

.bottom-nav-item i,
.bottom-nav-item .material-symbols-outlined {
  font-size: 1.2rem;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
  margin-bottom: 4px;
}

.bottom-nav-item:hover {
  color: var(--primary-color);
}

.bottom-nav-item.active {
  color: var(--primary-color);
  font-weight: 600;
}

.adjustedSize {
  font-size: 1.5rem !important;
}

/* --- RESPONSIVE SIDEBAR --- */
@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
  .bottom-nav {
    display: none !important;
  }
}

@media screen and (min-width: 1401px) {
  body.has-sidebar .mobile-menu-overlay {
    right: 0 !important;
    box-shadow: none;
    border-left: 1px solid var(--border-color);
    z-index: 900;
  }
  body.has-sidebar .close-btn {
    display: none !important;
  }
  body.has-sidebar .fixed-hamburger {
    display: none !important;
  }
}

/* --- PAGES SECTIONS & COMMON COMPONENTS --- */
.page-section {
  padding: 1.5rem 1.5rem 4rem 1.5rem;
  max-width: 550px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}

.section-subtitle {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.branche-img {
  display: block;
  object-fit: contain;
  filter: contrast(110%) brightness(95%);
  mix-blend-mode: multiply;
}

.side-by-side-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.handwritten-text {
  font-family: var(--font-cursive);
  font-size: clamp(1.8rem, 5vw, 2.1rem);
  color: var(--primary-color);
  font-style: italic;
  transform: rotate(-3deg);
  line-height: 1.2;
  text-align: left;
}

/* --- BOUTON PRINCIPAL (BTN-PRIMARY) --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--olive);
  color: white;
  padding: 0.85rem 1.8rem;
  border-radius: 25px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

.btn-primary:hover {
  background-color: var(--olive-hover);
}

/* --- INFO CARDS --- */
.info-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  text-align: left;
}

.info-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.info-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.info-card a {
  color: var(--primary-color);
  overflow-wrap: anywhere;
}

/* --- ANIMATION D'APPARITION AU CHARGEMENT (ONLOAD) --- */
@keyframes pageEntrance {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Effet de fondu et slide appliqué uniquement sur le contenu principal */
.page-section, .hero {
  animation: pageEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media screen and (max-width: 480px) {
  .mobile-menu-footer p {
    font-size: 1.9rem;
  }
}/* --- AUGMENTER LA TAILLE DES ICONES MATERIAL (BOTTOM NAV & SIDEBAR) --- */

/* Dans la barre de navigation du bas (mobile) */
.bottom-nav-item .material-symbols-outlined {
  font-size: 1.5rem !important; /* Ajuste cette valeur si tu veux plus grand (ex: 1.6rem) */
}

/* Dans le menu latéral / drawer (desktop ou mobile ouvert) */
.mobile-nav-links li a .material-symbols-outlined {
  font-size: 1.4rem !important; /* Ajuste cette valeur si tu veux plus grand */
  width: 28px; /* On élargit un peu le conteneur pour éviter que ça serre */
  height: 28px;
}

.handwritten-text  {
  opacity: 0;
  animation: fadeInCursive 0.6s ease-out 0.1s forwards;
}

@keyframes fadeInCursive {
  to {
    opacity: 1;
  }
}/* --- PEAUFINAGE DE LA TYPO SERIF (GEORGIA) --- */
.section-title, 
.info-card h3, 
.timeline-content h3,
.logo {
  font-family: Georgia, serif;
  font-weight: normal;       /* Évite qu'elle ne soit trop grasse/épaisse */
  letter-spacing: -0.3px;    /* Rapproche très légèrement les lettres pour un effet plus condensé/chic */
  line-height: 1.2;          /* Resserre un peu les interlignes si ton titre fait deux lignes */
}

/* --- MENU LATÉRAL (MOBILE / TABLETTE) : PAS DE SCROLL ---
   Le contenu est resserré pour tenir dans la hauteur de l'écran ;
   sur les écrans très courts, c'est le décor du bas qui s'efface. */
@media (max-width: 1400px) {
  .mobile-menu-overlay,
  .mobile-menu-overlay .sidebar-scroll-content {
    overflow: hidden !important;
  }

  /* Le menu ouvert passe au-dessus du bouton hamburger (croix accessible) */
  .mobile-menu-overlay {
    z-index: 10002;
  }

  .mobile-menu-overlay .drawer-header {
    margin-bottom: 1rem !important;
  }

  .mobile-menu-overlay .mobile-nav-links {
    gap: 0.7rem !important;
  }

  .mobile-menu-overlay .mobile-menu-footer {
    flex-shrink: 1 !important;
    min-height: 0;
    overflow: hidden;
    padding-top: 1rem !important;
  }

  .mobile-menu-overlay .mobile-menu-footer p {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.8rem !important;
  }

  .mobile-menu-overlay .branche-drawer-bottom {
    width: 130px !important;
  }
}

@media (max-width: 1400px) and (max-height: 700px) {
  .mobile-menu-overlay .drawer-illustration-container {
    display: none !important;
  }
}

@media (max-width: 1400px) and (max-height: 580px) {
  .mobile-menu-overlay .mobile-menu-footer {
    display: none !important;
  }
}
