/* =========================
   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; /* ajuste si besoin */
  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;
}




/* état actif = même effet que hover */
.nav-desktop a.active {
  color: var(--accent);
}

/* underline actif */
.nav-desktop a.active::after {
  width: 100%;
}







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

/* ================= 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
==================================================================================================== */

.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;
  flex-direction: column;
  padding: 100px 30px;
  gap: 20px;

  transition: right 0.3s ease;

  z-index: 2000;
}

.drawer.open {
  right: 0;
}

.drawer a {
  text-decoration: none;
  color: #222;
  font-size: 18px;
}

/* ====================================================================================================
   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;

  padding-top: 320px;
}

.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 
==================================================================================================== */

.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-color: #F5F5F5;

  display: flex;
  align-items: flex-start;

  position: relative;

  background-image: url(../images/livres_5.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  padding-top: 300px;
  padding-bottom: 140px;
}

/* overlay */
section.section_un::before {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(255, 255, 255, 0.65);
  z-index: 0;
}

/* =========================
   CONTAINER GLOBAL
========================= */

section.section_un .content {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 1600px;

  margin-left: 120px;
  margin-right: 80px;

  display: flex;
  align-items: flex-start;
}

/* =========================
   TEXTE
========================= */

.text-content {
  max-width: 700px;

  display: flex;
  flex-direction: column;
}

/* =========================
   TYPOGRAPHIE
========================= */

h1 {
  font-size: 4rem;
  font-family: "Playfair Display", serif;
  font-weight: 400;

  margin: 0 0 4px 0;
  line-height: 1.1;
}

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

  margin: 0 0 10px 0;
  line-height: 1.2;
}

.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: 0;
  line-height: 1.6;
}


























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

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

  background: #F5F5F5;

  display: flex;
  align-items: center;

  position: relative;
  background-image: url(../images/livres_5.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

section.section_un::before {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(255, 255, 255, 0.65); 

  z-index: 0;
}

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

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

  display: flex;
  align-items: center;
  gap: 120px; 
}

.text-content {
  max-width: 700px;
}

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;
}

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

.profile-image {
  position: absolute;
  right: 120px;
  top: 50%;
  transform: translateY(-50%);

  width: auto; 
  height: 500px;

  overflow: hidden;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}*/


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

section.section_deux {
  width: 100%;
  min-height: 15vh;

  display: flex;
  align-items: center;
  position: relative;
  background-color: #D9D9D9;
}

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


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

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

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 100px 24px;
}

/* CONTENEUR FORM */
#contactForm {
  width: 100%;
  max-width: 720px;

  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* LABELS */
#contactForm label,
.message-full label {
  display: flex;
  flex-direction: column;
  gap: 10px;

  font-family: "Lato", sans-serif;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #474646;

  text-align: left;
}

/* INPUTS + SELECT + TEXTAREA */
#contactForm input,
#contactForm select,
.message-full textarea {
  width: 100%;

  padding: 16px 14px;

  border: 1px solid #ddd;
  border-radius: 10px;

  font-size: 1.6rem;
  font-family: "Lato", sans-serif;

  box-sizing: border-box;
}

#contactForm select {
  font-weight: 300;
}

.divider_form {
  width: 100%;
  max-width: 120px;
  height: 2px;

  background: #D4A017;

  margin: 20px auto;
}

/* MESSAGE */
.message-full {
  width: 100%;
  max-width: 720px;
}

.message-full textarea {
  min-height: 350px;
  resize: none;
}

/* CHECKBOX */
.checkbox {
  width: 100%;
  max-width: 720px;

  margin-top: 20px;

  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 1.4rem;
  font-family: "Lato", sans-serif;

  color: #474646;
}

.checkbox input {
  width: 18px;
  height: 18px;

  margin: 0;
  flex-shrink: 0;
}

/* FOOTER */
.form-footer {
  width: 100%;
  max-width: 720px;

  display: flex;
  justify-content: flex-end;

  margin-top: 30px;
}

/* BOUTON */
.btn-submit {
  background: var(--accent);
  color: white;

  border: none;
  border-radius: 999px;

  padding: 14px 28px;

  font-family: "Lato", sans-serif;
  font-size: 1.4rem;

  cursor: pointer;
  transition: 0.3s ease;
}

.btn-submit:hover {
  opacity: 0.9;
}

.help-text {
  font-size: 0.8rem; /* beaucoup plus petit */
  color: #777;

  max-width: 720px;
  width: 100%;

  margin-top: -18px; /* rapproche du champ */
  margin-bottom: 10px;

  line-height: 1.4;
  text-align: left;
}

/* Cache visuellement l'astérisque dans le texte */
.help-text::first-letter {
  display: none;
}


/* ====================================================================================================
    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.section_un {
    min-height: auto; 
    padding: 70px 0; 
    background: white;
  }

  .content {
    margin-left: 0;
    gap: 16px; 
    padding: 0 24px;
    padding-left: 40px;

    flex-direction: column;
    align-items: flex-start;
  }

  /* TYPOGRAPHIE FULL RESET MOBILE */
  h1 {
    font-size: 2.2rem;
    margin: 0;
  }

  h2 {
    font-size: 1.6rem;
    margin: 0;
  }

  p {
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.5;

    margin-top: 52px; 
  }

  /* DIVIDER ultra compact */
  .divider {
    width: 400px;
    height: 2px;
    margin: 6px 0;
  }

  .text-content {
    max-width: 100%;
  }

  /* IMAGE totalement neutralisée proprement */
  .profile-image {
    display: none;
  }


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

.content_section_deux {
  display: flex;
  flex-direction: column;

  gap: 6px; /* 🔥 encore plus serré */

  margin-left: 0;
  padding: 0 24px;
  padding-left: 40px;
}

/* RESET TOTAL */
.h2_section_deux,
.h3_section_deux,
.section_deux .divider {
  margin: 0;
  line-height: 1.1;
}

/* TITRES */
.h2_section_deux {
  font-size: 2.2rem;
}

.h3_section_deux {
  font-size: 1.6rem;
  color: #6b7280;
}

/* DIVIDER ULTRA COLLÉ */
.section_deux .divider {
  width: 300px;
  height: 2.3px;
  margin: 2px 0; /* 🔥 quasi collé */
}

/* PARAGRAPHE (on garde l’espace volontaire) */
.content_section_deux p {
  font-size: 1.3rem;
  line-height: 1.5;

  margin: 0;
  margin-top: 48px; /* 🔥 légèrement réduit pour cohérence */

  text-align: center;
  align-self: center;
  max-width: 90%;
}






/* ====================================================================================================
    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;
  }

  
}