/* =========================================================
   PALETTE
   ========================================================= */
:root {
  --jaune: #ffc01d;
  --blanc: #ffffff;
  --mauve-dark: #400040;
  --mauve-mid: #800080;
  --mauve-light: #c000c0;
}

/* =========================================================
   BASE
   ========================================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  background-color: var(--blanc);
  color: var(--mauve-dark);
}

a {
  text-decoration: none;
}

/* =========================================================
   HEADER & NAV
   ========================================================= */
header {
  background: linear-gradient(135deg, var(--mauve-dark), var(--mauve-mid));
  padding: 10px 20px;
  color: var(--blanc);
  position: relative;
  z-index: 1000;
}

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

.logo {
  height: 60px;
}

/* --- MENU DESKTOP --- */
.desktop-menu {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.desktop-menu a {
  color: var(--blanc);
  font-weight: 600;
}

.desktop-menu a:hover {
  color: var(--jaune);
}

/* --- HAMBURGER --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 32px;
  height: 4px;
  background-color: var(--jaune);
  border-radius: 3px;
  transition: 0.3s;
}

/* Animation hamburger */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* --- MENU MOBILE SLIDE-IN (transform) --- */
/* --- MENU MOBILE SLIDE-IN (right) --- */
#mobile-menu {
  position: fixed;
  top: 0;
  right: -300px; /* caché hors écran */
  width: 280px;
  max-width: 80%;
  height: 100vh;
  background-color: var(--mauve-dark);
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: right 0.4s ease;
  z-index: 2000;
  overflow-y: auto;
}

#mobile-menu a {
  color: var(--blanc);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--mauve-light);
  padding-bottom: 10px;
}

#mobile-menu a:hover {
  color: var(--jaune);
}


/* --- OVERLAY SOMBRE --- */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: none;
  z-index: 1500;
}

/* =========================================================
   HERO
   ========================================================= */
/*.hero {
  background-color: var(--jaune);
  color: var(--mauve-dark);
  text-align: center;
  padding: 2rem 1rem;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
}
*/

/* ============================
   HERO MAQUETTE
   ============================ */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--jaune), var(--jaune));
  position: relative;
  overflow: hidden;
}

/* Vague mauve */
/* Vague mauve uniquement sur la page index */
.hero-wave::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 295px;
  background: url('images/wave-mauve.svg') no-repeat bottom center;
  background-size: cover;
  z-index: 0;
}



/* Texte à gauche */
.hero-left {
  max-width: 50%;
  z-index: 1;
}

.hero-left h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: var(--mauve-dark);
}

.hero-left p {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

/* Boutons */
.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn-primary {
  background: var(--mauve-mid);
  color: var(--blanc);
  padding: 12px 22px;
  border-radius: 25px;
  font-weight: bold;
}

.btn-secondary {
  background: var(--blanc);
  color: var(--mauve-mid);
  padding: 12px 22px;
  border-radius: 25px;
  font-weight: bold;
  border: 2px solid var(--mauve-mid);
}

/* Logo à droite */
.hero-right {
  z-index: 1;
}

.hero-right img {
  width: 550px;
  height: auto;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .hero-left {
    max-width: 100%;
  }

  .hero-right img {
    margin-top: 20px;
    width: 200px;
  }

  .hero::before {
    display: none; /* On retire la vague pour mobile */
  }
}

/* =========================================================
   CARTES / CONTENU
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.card {
  background-color: var(--blanc);
  border: 3px solid var(--mauve-mid);
  border-radius: 20px;
  padding: 1.5rem;
  transition: 0.3s;
}

.card:hover {
  border-color: var(--jaune);
  transform: translateY(-5px);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background-color: var(--jaune);
  color: var(--mauve-dark);
  text-align: center;
  padding: 1.5rem;
}

footer a {
  color: var(--mauve-dark);
  font-weight: bold;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .desktop-menu {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* Désactivation totale du menu mobile en desktop */
@media (min-width: 901px) {
  #mobile-menu {
    right: -300px;
  }
  #overlay {
    display: none;
  }
}

/* ============================
   SECTION HISTORIQUE
   ============================ */
main.content {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Conteneur global */
.content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  padding: 0 40px;
  margin: 40px auto;
}

/* Colonne de texte */
.cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Image à droite (scroll normal) */
.image-side {
  flex: 0 0 420px;
  position: relative;
}

.image-side img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Les cartes reprennent toute la largeur une fois l’image dépassée */
.cards::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
}

/* Largeur fluide après l’image */
main.content > .cards {
  width: 100%;
}

/* Responsive : sur mobile, l’image passe en dessous */
@media (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    padding: 0 20px;
  }

  .image-side {
    width: 100%;
    margin-top: 20px;
  }
}


/* ============================
   PHOTOS — FILM + TEXTE (2 colonnes)
   ============================ */

.photo-item {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 20px;
  border: 3px solid var(--mauve-mid);
  border-radius: 20px;
  background: var(--blanc);
  transition: 0.3s;
}

.photo-item:hover {
  border-color: var(--jaune);
  transform: translateY(-5px);
}

/* Conteneur en 2 colonnes */
.photo-list {
  display: grid;
  column-count: 2;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
  
}

/* Une colonne sur tablette/mobile */
@media (max-width: 900px) {
  .photo-list {
    grid-template-columns: 1fr;
	
  }
}


/* Cadre film argentique */
.film-frame {
  background: #000;
  padding: 0px 0;
  width: 200px;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  flex-shrink: 0;   /* ✔ empêche le cadre de se réduire */
}

.film-top,
.film-bottom {
  width: 200px;
  display: block;
}

.film-photo {
  width: 200px;
  height: auto;
  display: block;
  margin: 6px 0;
  border: 2px solid #222;
}

/* Texte à droite */
.photo-text {
  flex: 1;
}

.photo-text h2 {
  margin-top: 0;
  color: var(--mauve-dark);
}

.photo-text a {
  color: var(--mauve-mid);
  font-weight: normal;
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 700px) {
  .photo-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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



/* ============================
   CARROUSEL INDEX — CONTINU
   ============================ */

.carousel-section {
  padding: 40px;
  text-align: center;
  border: 3px solid var(--mauve-mid);
  border-radius: 20px;
  background: var(--blanc);
  margin: 40px auto;
  max-width: 900px;
}

.carousel-section h2 {
  color: var(--mauve-dark);
  margin-bottom: 20px;
}

.carousel {
  overflow: hidden;
  width: 700px;          /* ~3 albums visibles */
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  gap: 20px;
  will-change: transform;
}

.carousel-item {
  flex: 0 0 200px;
  border: 3px solid var(--mauve-mid);
  border-radius: 15px;
  overflow: hidden;
  background: var(--blanc);
  transition: border-color 0.3s;
  text-align: center;
  color: var(--mauve-dark);
  font-weight: bold;
  padding-top: 5px;
  padding-bottom: 5px;
}

.carousel-item:hover {
  border-color: var(--jaune);   /* plus de translateY, donc bord jaune intact */
}

.carousel-caption {
  display: block;
  padding-bottom: 5px;
}

.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-more a {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 22px;
  background: var(--mauve-mid);
  color: var(--blanc);
  border-radius: 25px;
  font-weight: bold;
  transition: 0.3s;
}

.carousel-more a:hover {
  background: var(--jaune);
  color: var(--mauve-dark);
}

@media (max-width: 900px) {
  .carousel {
    width: 90%;
  }
}

/* Flèches de contrôle */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.carousel-btn {
  background: var(--mauve-mid);
  color: var(--blanc);
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.carousel-btn:hover {
  background: var(--jaune);
  color: var(--mauve-dark);
}

/* ============================
   SECTION 4 BLOCS — ACCUEIL
   ============================ */

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.home-card {
  background: var(--blanc);
  border: 3px solid var(--mauve-mid);
  border-radius: 20px;
  padding: 25px 10px;
  text-align: center;
  color: var(--mauve-dark);
  font-weight: bold;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-card:hover {
  background: var(--jaune);
  border-color: var(--jaune);
  transform: translateY(-5px);
}

.home-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.home-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--mauve-mid);
}

.home-card:hover svg {
  fill: var(--mauve-dark);
}

.home-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.handwriting {
  font-family: 'Kalam', cursive;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--mauve-dark);
}

.signature {
  font-family: 'Kalam', cursive;
  font-size: 2rem;
  color: var(--mauve-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.signature svg {
  width: 32px;
  height: 32px;
  fill: var(--mauve-dark);
}

.signatures-hyde {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

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

.signature-img {
  max-width: 180px;      /* ajuste selon ton design */
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Effet au survol */
.signature-img:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

/* ============================
   FLECHE POUR REMONTER EN HAUT DE LA PAGE
   ============================ */

.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 40px;
  background: var(--mauve-dark); 
  color: var(--jaune);  
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: heavy;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--jaune); /* rouge festif */
  color: #400040;
  transform: translateY(-5px);
}

@media (min-width: 901px) {
  .cards {
    width: 90%;
    margin: 0 auto; /* centre le bloc horizontalement */
  }
}

/* =========================================================
   BLOCS PAR 3 — VERSION DESKTOP
   ========================================================= */
.triple-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
  gap: 1.5rem;
  width: 90%;
  margin: 2rem auto;
}

/* Carte */
.triple-card {
  background-color: var(--blanc);
  border: 3px solid var(--mauve-mid);
  border-radius: 20px;
  padding: 1.5rem;
  transition: 0.3s;
  color: var(--mauve-dark);
  text-align: left;
  font-weight: normal;
}

/* Hover */
.triple-card:hover {
  border-color: var(--jaune);
  transform: translateY(-5px);
}

/* Image responsive */
.triple-card img {
  width: 100%;        /* prend toute la largeur de la carte */
  height: auto;       /* garde les proportions */
  border-radius: 22px;
  display: block;
}

/* Responsive : 2 colonnes sur tablette */
@media (max-width: 900px) {
  .triple-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive : 1 colonne sur mobile */
@media (max-width: 600px) {
  .triple-cards {
    grid-template-columns: 1fr;
  }
}
