/* --- Import Polices --- */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
  /* --- Palette principale --- */
  --primary: #5a0f1b;
  --secondary: #eacd7f;
  --lightsecondary: #f2e9d8;
  --dark: #2b2b2b;
  --light: #fbfbe8;
  /* --- Polices --- */
  --police-titres: 'Libre Baskerville', serif;
  --police-textes: 'Source Sans 3', sans-serif;
  /* 📏 Échelles typographiques (desktop) */
  --taille-h1: 3rem;
  --taille-h2: 2.25rem;
  --taille-h3: 1.75rem;
  --taille-h4: 1.25rem;
  --taille-texte: 1rem;
  --taille-petit: 0.875rem;
}
/* Tailles responsive */
@media (max-width: 768px) {
  :root {
    --taille-h1: 2.2rem;
    --taille-h2: 1.8rem;
    --taille-h3: 1.4rem;
    --taille-h4: 1.1rem;
    --taille-texte: 0.95rem;
  }
}

html {
  scroll-behavior: smooth;
}

/* --- Style global --- */
body {
  font-family : var(--police-textes);
  font-size: var(--taille-texte);
  line-height: 1.6;
  color : var(--dark);
  background-color: var(--light);
  margin : 0;
  padding : 0;
}

/* --- Titres --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--police-titres);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
h1 { font-size: var(--taille-h1); font-weight: 700; }
h2 { font-size: var(--taille-h2); font-weight: 700; }
h3 { font-size: var(--taille-h3); font-weight: 700; }
h4 { font-size: var(--taille-h4); font-weight: 600; }

/* --- Paragraphes --- */
p {margin-bottom: 1em;}

.light-text {
  color: var(--light)
}

/* --- Liens --- */
a {
  text-decoration: none;
  transition: text-decoration 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

.section {
  display: flex;
  padding: 4rem 2rem;
}

.section--small { padding: 2rem 1rem; }
.section--large { padding: 6rem 2rem; }

.image{max-width: 85vw;}

.image--small {max-height: 200px;border-radius: 6px;}
.image--medium {max-height: 300px;}
.image--big {max-height: 450px;}

.primary-bg {
  background-color: var(--primary);
  color: var(--light)
}
.white-bg{background-color: white;}
.dark-text{color: var(--dark);}

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

header {
  background-color : var(--primary);
  color : var(--light);
  padding : 1rem 2rem;
  display : flex;
  justify-content : space-between;
  align-items : center;
  position : sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.site-title {
  font-family: var(--police-textes);
  font-size: 1.3rem;
  color: var(--light);
  margin: 0;
}

/* ----- Menu principal ----- */
.menu {
  display: flex;
  gap: 1.5rem;
  color: var(--light)
}

.menu ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.menu a {
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
}

.menu a:hover {
  text-decoration: underline;
}

/* ----- Bouton burger ----- */
.menu-icon {
  display: none; /* caché sur grand écran */
  font-size: 2rem;
  color: var(--light);
  cursor: pointer;
}

/* Le checkbox est caché */
#menu-toggle {
  display: none;
}

/* ----- Menu Mode mobile ----- */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
  }

  .menu {
    display: none; /* menu caché par défaut */
    flex-direction: column;
    width: 100%;
    background: var(--primary);
    border-top: 1px solid var(--light);
    padding: 1rem 0;
  }

  /* Quand le menu est activé (checkbox cochée) */
  #menu-toggle:checked + .menu-icon + .menu {
    display: flex;
  }

  .menu-icon {
    display: block; /* le burger devient visible */
  }

    .menu ul {
    flex-direction: column;
    gap: 0.8rem;
  }
  .menu a {
    color : var(--light);
    display: block;
    padding: 0.8rem;
  }
}
.section.hero{background: linear-gradient(to bottom, white, var(--light));}

.hero {
  display: flex;
  text-align : center;
  min-height: 70vh;
}
.hero-text {margin:auto;}

@media (max-width: 768px) {
  .hero {
    min-height: none;
  }
}


.bloc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.bloc-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  margin-top: 3rem;
}

.bloc-texte {
  max-width: 500px;
}

/* --- Bloc mode Mobile */
@media (max-width: 768px) {
  .bloc {
    flex-direction: column; /* empile l’image et le texte */
    text-align: center;
  }

  .mobile-reverse {
    flex-direction: column-reverse; /* empile l’image et le texte en ordre inverse*/
    text-align: center;
  }

  .bloc-image img {
    max-width: 100%;
  }

  .bloc-texte {
    max-width: 100%;
  }
}

/* TITRE CENTRAL */
.multicard {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

/* CONTENEUR DES BOÎTES */
.cards-container {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: wrap;
}

/* BOÎTES INDIVIDUELLES */
.card {
  border: 2px solid var(--secondary);
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  padding: 2rem 1.5rem;
  flex: 1 1 300px; /* Largeur flexible, minimum 300px */
  max-width: 350px;
  box-sizing: border-box;
  color: inherit; /* pour que la couleur ne soit pas affectée si c'est un lien */
}

.widecard {max-width: 100%;}

.video-card {
  text-decoration: none !important;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

  /* Icône play au survol */
/* --- Bouton Play dans un cercle bordeaux --- */
.video-card::after {
  content: "▶";
  font-size: 28px;
  line-height: 60px;              /* centre verticalement dans le cercle */
  text-align: center;
  color: white; 
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  transition: opacity 0.3s ease;
}

.video-card:hover::after {
  opacity: 1;
}

/* Effet global */
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  background-color: var(--lightsecondary);
}

.video-card:hover img {
  transform: scale(1.05);
}

/* ✅ RESPONSIVE */
@media (max-width: 768px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
  }

  .card {flex: 0 1 90%;width: 90%;;display: block;height: auto !important;}

  .widecard {width: 90%;}
}

footer {
  background-color : var(--primary);
  color : var(--light);
  text-align : center;
  padding : 1rem;
}