/* ============================================================
   HERO SECTION
============================================================ */
#accueil {
  background: var(--cream);
  overflow: hidden;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;    /* fallback */
  min-height: 100dvh;
}
 
/* Absolute mascot container — extends to the right edge (sidebar included) */
.hero__mascot-wrap {
  position: absolute;
  right: 0;                /* right edge = behind the sidebar */
  bottom: 0;
  width: 55vw;
  max-width: 820px;
  height: 100%;
  pointer-events: none;
  z-index: 1;              /* sous la sidebar (z-index 100) */
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
 
/* Mascot image — actual size 2048×2048 but constrained by the container */
.hero__mascot-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  mix-blend-mode: multiply;
  display: block;
}
 
/* Hero text on the left — stays in normal flow, ignoring the mascot */
.hero__left {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
 
.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--darkteal);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
 
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s forwards;
}
 
.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}
 
.hero__desc {
  font-size: 1rem;
  color: #444;
  max-width: 480px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.65s forwards;
}
.hero__desc p + p { margin-top: 0.75rem; }
 
/* ============================================================
   ABOUT SECTION
============================================================ */
#a-propos { background: var(--cream); }

.about__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  line-height: 1.0;
}

.about__subtitle {
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 3rem;
  font-weight: 400;
}
.about__subtitle em { font-style: normal; color: var(--dark); font-weight: 600; }

.about__text-block {
  margin-top: 3rem;
}

.about__text-block p + p { margin-top: 0.75rem; }
.about__text-block p { font-size: 0.95rem; color: #333; }

.about__card {
  background: var(--dark);
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  width: 100%;
  margin-top: 2.5rem;
}
.about__card-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.about__card-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
}

/* ============================================================
   ACTIVITIES SECTION
============================================================ */
#nos-activites { background: var(--cream); }

.activities__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.activities__subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 3rem;
}
.activities__subtitle em { font-style: normal; font-weight: 600; color: var(--dark); }

.activities__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* "Show more" toggle — only shown on single-column (mobile); JS toggles [hidden] */
.activities__more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.activities__more[hidden] { display: none; }   /* beats the base display:flex */
.activities__more-btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  background: transparent;
  border: 2px solid var(--dark);
  border-radius: 999px;
  padding: 0.8rem 1.9rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.activities__more-btn:hover { background: var(--dark); color: var(--cream); }
.activities__more-btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ============================================================
   FAQ SECTION
============================================================ */
#faq { background: var(--cream); }

/* Two-column layout: questions | mascot */
.faq__layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 3rem;
  align-items: start;
}

/* Librarian mascot on the right (desktop) */
.faq__mascot-wrap {
  display: flex;
  justify-content: center;
  align-self: start;   /* top aligned with the first question */
}

.faq__mascot {
  width: clamp(200px, 24vw, 240px);
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 16px 32px rgba(140, 111, 122, 0.2));
  transition: transform var(--transition), filter var(--transition);
}
.faq__mascot:hover {
  transform: translateY(-6px) rotate(2deg);
  filter: drop-shadow(0 22px 40px rgba(140, 111, 122, 0.3));
}

.faq__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  line-height: 1.0;
}

.faq__subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 3rem;
}
.faq__subtitle em { font-style: normal; font-weight: 600; color: var(--dark); }

.faq__list {
  min-width: 0;       /* avoids overflow in the grid */
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ============================================================
   DOCUMENTATION SECTION
============================================================ */
#documentation { background: var(--cream); }

.docs__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  line-height: 1.0;
}

.docs__subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 3rem;
}
.docs__subtitle em { font-style: normal; font-weight: 600; color: var(--dark); }

/* Main container: two columns (rules | reports) */
.docs__layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 0.5rem;
}

.docs__section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1.25rem;
}
.docs__section-title svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
}

/* ============================================================
   CONTACT SECTION
============================================================ */
#contact {
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}

/* Named-area grid. Desktop: text/buttons/details stacked on the left, mascot spanning on the right. */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "text    mascot"
    "actions mascot"
    "details mascot";
  align-items: start;
  gap: 0 2rem;
}
.contact__text    { grid-area: text; }
.contact__actions { grid-area: actions; }
.contact__details { grid-area: details; }
.contact__mascot  { grid-area: mascot; }

.contact__label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.contact__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin-bottom: 2rem;
}

.contact__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact__details {
  margin-top: 2.5rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.contact__detail { text-align: left; }
.contact__detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
}
.contact__detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}
.contact__detail-value a {
  color: var(--white);
  text-decoration: none;
}
.contact__detail-value a:hover { text-decoration: underline; }

.contact__map-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}
.contact__map-link:hover { text-decoration: underline; }
.contact__map-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Mascot — spans the right column on desktop (see grid-template-areas) */
.contact__mascot {
  width: clamp(286px, 30vw, 462px);
  height: auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 10px 6px rgba(234, 132, 4, 0.15));
  transition: transform var(--transition), filter var(--transition);
  margin-bottom: 5rem;
  align-self: end;
}
.contact__mascot:hover {
  transform: translateY(-8px) rotate(-2deg) scale(1.03);
  filter: drop-shadow(0 6px 6px rgba(234, 132, 4, 0.3));
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 2rem 3rem;
  padding-right: calc(var(--sidebar-w) * 5 + 2rem);
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer__links {
  display: flex;
  gap: 1.5rem;
}
.footer__links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--white); }
.footer__links a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

