/* =========================
   RESET GLOBAL
========================= */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, sans-serif;

  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

body {
  background: #F5F5F5;
  color: #222;
}

/* =========================
   VARIABLES
========================= */
:root {
  --accent: #D4A017;
}

/* ====================================================================================================
   HEADER
==================================================================================================== */

.header {
  height: 100px;
  padding: 0 32px;
  border-bottom: 1px solid #eee;
  background: white;

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: sticky;
  top: 0;

  z-index: 10000; 
  isolation: isolate; 
}

/* =========================
   LOGO IMAGE CLIQUABLE
========================= */

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 70px;
  width: auto;
  display: block;

  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo img:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

/* NAV DESKTOP */
.nav-desktop {
  display: flex;
  gap: 32px;
}

.nav-desktop a {
  position: relative;
  text-decoration: none;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: #1F2937;

  display: flex;
  align-items: center;
  height: 40px;
}

/* underline sauf dernier lien */
.nav-desktop a:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;

  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-desktop a:not(:last-child):hover::after {
  width: 100%;
}

.nav-desktop a:not(:last-child):hover {
  color: var(--accent);
}

/* bouton contact header */
.nav-desktop a:last-child {
  background: var(--accent);
  color: #1F2937;
  padding: 20px 30px;
  border-radius: 999px;

  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.05em;

  display: flex;
  align-items: center;

  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-desktop a:last-child:hover {
  background-color: #ecc04c;
}

/* ====================================================================================================
   BURGER BOOKMARK (CORRIGÉ)
==================================================================================================== */

/* ================= BURGER BOOKMARK ================= */

.menu-toggle {
  position: fixed;
  top: 0;
  right: 20px;

  width: 55px;
  height: 80px;

  padding: 0;

  background: transparent;
  border: none;
  cursor: pointer;

  z-index: 99999;

  /* 🔥 IMPORTANT : casse les stacking contexts internes */
  transform: translateZ(0);
  isolation: isolate;
  display: none;
}

.menu-toggle svg {
  width: 100%;
  height: 100%;
  display: block;

  overflow: visible;
}

/* IMPORTANT : on cible le PATH */
.menu-toggle svg path {
  fill: #D4A017;
  transform-origin: top;
  transition: transform 0.35s ease;

  display: block;
}

/* état fermé */
.menu-toggle svg path {
  transform: scaleY(1);
}

/* état ouvert */
.menu-toggle.open svg path {
  transform: scaleY(1.6);
}

/* ====================================================================================================
   DRAWER (MENU BURGER DESIGN)
==================================================================================================== */

.drawer {
  position: fixed;
  top: 0;
  right: -260px;

  width: 260px;
  height: 100vh;

  background: white;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);

  display: flex;
  align-items: center;
  justify-content: flex-start; /* 🔥 important */

  transition: right 0.3s ease;

  z-index: 2000;
  padding: 0;
}

.drawer.open {
  right: 0;
}

/* MENU LIST */
.drawer-menu {
  list-style: none;
  padding: 0;
  margin: 0;

  width: 100%;              /* 🔥 clé */
  display: flex;
  flex-direction: column;
}

.drawer-menu a {
  display: block;

  width: 100%;

  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 400;
  color: #1F2937;

  text-align: center;

  padding: 14px 0;

  transition: background-color 0.25s ease;
}

.drawer-menu a:hover {
  background-color: #d9d9d9;
}

/* ====================================================================================================
   OVERLAY
==================================================================================================== */

.overlay {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.3);

  opacity: 0;
  pointer-events: none;

  transition: 0.3s;

  z-index: 1500;
}

.overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* ====================================================================================================
   CARDS BOOKMARK (INCHANGÉ MAIS SÉCURISÉ)
==================================================================================================== */

.card {
  position: relative;
}

.card-bookmark {
  position: absolute;
  top: 0;
  right: 18px;

  width: 70px;
  height: 170px;

  opacity: 0;
  transform: translateY(-40px);

  transition: all 0.45s ease;
  pointer-events: none;
  z-index: 5;
}

.card:hover .card-bookmark {
  opacity: 1;
  transform: translateY(0);
}



/* ====================================================================================================
   MAIN
==================================================================================================== */

/* ====================================================================================================
   SECTION 1
==================================================================================================== */

section.section_un {
  width: 100%;
  min-height: 87vh;

  background-image: url(/images/ChatGPT\ Image\ 27\ avr.\ 2026\,\ 14_31_04.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
}

.content {
  max-width: 1600px;
  margin-left: 120px;
}

/* TYPOGRAPHIE */
h1 {
  font-size: 4rem;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  margin: 0 0 4px 0;
}

h2 {
  font-size: 2.7rem;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  color: #6b7280;
  margin: 0 0 10px 0;
}

.divider {
  width: 120px;
  height: 4px;
  background: var(--accent);
  border-radius: 999px;
  margin-bottom: 20px;
}

section.section_un p {
  font-family: "Lato", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 30px;
}

/* ====================================================================================================
   BUTTONS SECTION 
==================================================================================================== */

.buttons {
  display: flex;
  gap: 15px;
}

.section-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 200px;
  height: 55px;

  padding: 0 24px;

  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: #1F2937;

  text-decoration: none;
  border-radius: 30px;

  transition: all 0.3s ease;

  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.section-btn--primary {
  background-color: var(--accent);
  color: #1F2937;
}

.section-btn--secondary {
  background-color: #ffffff;
  color: #1F2937;
  border: 1px solid #ddd;
}

.section-btn--primary:hover,
.section-btn--secondary:hover {
  background-color: #ecc04c;
  color: #1F2937;
}


/* ====================================================================================================
   SECTION 2
==================================================================================================== */

.section_deux {
  width: 100%;
  min-height: 70vh;
  /*background: #d9d9d9;*/
  background: linear-gradient(
  180deg,
  #f1f1f1 0%,
  #d9d9d9 100%
);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 80px 0;
}

.section_deux .content {
  max-width: 1600px;
  width: 100%;

  margin: 0 auto;
  padding: 0 40px;
}

/* GRID */
.cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

/* CARD */
.card {
  width: 420px;
  height: 680px;

  display: flex;
  flex-direction: column;

  text-decoration: none;
  color: inherit;

  background: #fff;
  border-radius: 10px;

  padding: 150px 24px 24px 24px;

  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.14);

  transition: all 0.3s ease;

  position: relative;
  overflow: hidden;
}

/* hover card */
.card:hover {
  transform: translateY(-6px);
  background: #d4a017;
}


/* DIVIDER */
.divider {
  width: 120px;
  height: 4px;
  background: var(--accent);
  border-radius: 999px;

  margin-bottom: 20px;

  transition: background-color 0.8s ease;
}

.card:hover .divider {
  background: #ffffff;
}

/* HEADER CARD */
.card-header h2 {
  font-size: 2.8rem;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  color: #474646;
  margin: 0;
}

.card-header h3 {
  font-size: 1.7rem;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  color: #6b7280;

  margin: 5px 0 10px 0;
}

/* BODY CARD */
.card-body {
  flex: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.card-body p {
  font-size: 1.2rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* =========================
   SVG MARQUE-PAGE
========================= */

.bookmark-icon {
  position: absolute;
  top: 0;
  right: 18px;

  width: 70px;
  height: 170px;

  opacity: 0;
  transform: translateY(-40px);
  transition: all 0.45s ease;
  z-index: 5;
  pointer-events: none;
}

/* SVG fill control */
.bookmark-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* hover animation */
.card:hover .bookmark-icon {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.grid-buttons-responsive {
  display: none;
}

/* ====================================================================================================
   SECTION 3
==================================================================================================== */

section.section_trois {
  width: 100%;
  min-height: 55vh;

  display: flex;
  align-items: center;
  position: relative;
}

.content_section_trois {
  max-width: 1600px;
  margin-left: 120px;
}

/* TYPOGRAPHIE */
.h2_section_trois {
  font-size: 3rem;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  margin: 0 0 4px 0;
  color: #2e2e2e;
}

.h3_section_trois {
  font-size: 2.5rem;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  color: #6b7280;
  margin: 0 0 10px 0;
}

/* DIVIDER */
.divider {
  width: 120px;
  height: 4px;
  background: var(--accent);
  border-radius: 999px;
  margin-bottom: 20px;
}

/* PARAGRAPHE */
section.section_trois p {
  font-family: "Lato", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 30px;

  text-align: justify;
}

/* POSITION DU BOUTON */
.button_section_trois {
  position: absolute;
  right: 180px;
  bottom: 40px;
}

/* BOUTON */
.button_section_trois_primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 200px;
  height: 55px;
  padding: 0 24px;

  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: #1F2937;

  text-decoration: none;
  border-radius: 30px;

  background-color: #D4A017; /* ✅ jaune appliqué correctement */

  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.button_section_trois_primary:hover {
  background-color: #ecc04c;
  color: #1F2937;
}


/* ====================================================================================================
   SECTION 4
==================================================================================================== */

.section_quatre {
  width: 100%;
  min-height: 55vh; /* ← min-height au lieu de height */
  height: auto; 

  display: flex;

  /*background: #d9d9d9;*/
  background: linear-gradient(
  180deg,
  #f1f1f1 0%,
  #d9d9d9 100%
);
}

/* =========================
   IMAGE (GAUCHE)
========================= */

.image_section_quatre {
  width: 40%;

  background-image: url("/images/livres_1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================
   TEXTE (DROITE)
========================= */

.text_section_quatre {
  width: 60%;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 0 120px 0 80px;

   position: relative;
}

/* =========================
   TYPO 
========================= */

.h2_section_quatre {
  font-size: 3rem;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  margin: 0 0 4px 0;
  color: #2e2e2e; /* ✅ comme section 3 */

  position: relative;
}

.text_section_quatre p {
  font-family: "Lato", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: #6b7280;

  text-align: justify;
}

/* =========================
   DIVIDER (identique)
========================= */

.section_quatre .divider {
  width: 120px;
  height: 4px;
  background: var(--accent);
  border-radius: 999px;
  margin-bottom: 20px;
  margin-top: 1.8%;
}

/* =========================
   LIEN EFLC (cliquable dans le texte)
========================= */

.link_eflc {
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  cursor: pointer;

  transition: color 0.25s ease, opacity 0.25s ease;
}

.link_eflc:hover  {
  color: #ffffff;
  opacity: 0.9;
}

/* =========================
   BOUTON 
========================= */

.button_section_quatre {
  position: absolute;
  right: 180px; 
  bottom: 40px;
}

.button_section_quatre_primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 200px;
  height: 55px;
  padding: 0 24px;

  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: #1F2937;

  text-decoration: none;
  border-radius: 30px;

  background-color: #D4A017; /* ✅ identique */
  transition: all 0.3s ease;

  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.button_section_quatre_primary:hover {
  background-color: #ecc04c;
  color: #1F2937;
}


/* ====================================================================================================
    FOOTER
==================================================================================================== */


.footer {
  width: 100%;
}

/* ===== TOP ===== */
.footer-top {
  background: #d4a017;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;


  min-height: 320px;

  padding: 40px 40px; 
}

/* LOGO GAUCHE */
.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  width: 220px;
  display: block;
}

/* DROITE */
.footer-right {
  display: flex;
  flex-direction: column;


  align-items: flex-start;

  margin-right: 100px;

  justify-content: flex-start;
  text-align: right;

  gap: 25px;
}

/* LIENS */
.footer-links {
  display: flex;
  flex-direction: column;

  align-items: flex-start;

  gap: 8px;
  margin-bottom: 10px;
}

.footer-links a {
  color: #f5f5f5;
  text-decoration: none;

  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
}

.footer-links a {
  color: #f5f5f5;
  text-decoration: none;

  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.05em;

  display: inline-block;
  transition: transform 0.2s ease;
}

/* ✅ hover léger agrandissement */
.footer-links a:hover {
  transform: scale(1.08);
}

/* SOCIAL */
.socials {
  display: flex;
  gap: 25px;

  justify-content: flex-start;
}

.socials img {
  width: auto;
  height: 50px;
  display: block;

  /* ✅ animation fluide */
  transition: transform 0.2s ease;
}

/* ✅ hover */
.socials img:hover {
  transform: scale(1.15);
}

/* ===== BOTTOM ===== */
.footer-bottom {
  background: #1F2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;

  min-height: 60px; /* OK ici */
}

/* gauche */
.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  color: white;
  font-size: 18px;
  text-decoration: underline;
  text-decoration-color: white;
}

/* droite */
.copyright {
  color: white;
  font-size: 18px;
}



























/* ====================================================================================================
   RESPONSIVE
==================================================================================================== */

@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  /* ====================================================================================================
   MAIN
==================================================================================================== */

/* ====================================================================================================
   SECTION 1
==================================================================================================== */

  .section_un {
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
  }

  /* calque sombre */
.section_un::before {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.2); /* intensité du filtre */

  z-index: -1;
}

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

  .content {
    margin-left: 0;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .divider {
    margin-left: auto;
    margin-right: auto;
  }

  .buttons {
    display: none;
  }

/* =========================================================
   SECTION 2 - RESPONSIVE ONLY
========================================================= */

.section_deux{
  display: none;
}
.cards {
    display: none;
  }

  /* on affiche la nouvelle UI */
  .grid-buttons-responsive {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;

    margin: 60px 20px 60px 20px;
  }

  /* bouton */
  .grid-btn {
  background: #d4a017; /* JAUNE PAR DÉFAUT */
  border-radius: 12px;

  min-height: 170px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;

  text-decoration: none;

  color: white; /* TEXTE BLANC PAR DÉFAUT */

  box-shadow: 0 20px 40px rgba(0,0,0,0.12);

  transition: all 0.3s ease;

  padding: 20px;
}

  .grid-btn img {
    width: 50px;
    height: 50px;
    object-fit: contain;
  }

  .grid-btn span {
    font-family: "Lato", sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.05em;
  }

  .grid-btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
  }

/* ====================================================================================================
   SECTION 3
==================================================================================================== */

section.section_trois {
  display: none;
}

/* ====================================================================================================
   SECTION 4
==================================================================================================== */

.section_quatre {
  display: none;
}

/* ====================================================================================================
    FOOTER
==================================================================================================== */

/* ===== TOP ===== */
  .footer-top {
    padding: 30px 20px;
    min-height: auto;
  }

  /* logo plus petit */
  .footer-logo img {
    width: 140px;
  }

  /* bloc droit compact */
  .footer-right {
    margin-right: 0;
    gap: 50  px;
  }

  /* liens */
  .footer-links a {
    font-size: 1.4rem;
  }

  /* socials */
  .socials img {
    height: 100px;
  }

  /* ===== BOTTOM ===== */
  .footer-bottom {
    padding: 12px 20px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .legal-links {
    gap: 14px;
  }

  .legal-links a {
    font-size: 1rem;
  }

  .copyright {
    font-size: 1rem;
  }

  
}