@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito+Sans:wght@400;600;700&display=swap');

:root {
  --color-bg: #f3fbfc;
  --color-bg-panel: #e5f7fa;
  --color-bg-panel-2: #d8f2f5;

  --color-ink: #11143d;
  --color-ink-soft: #596080;

  --color-navy: #070749;
  --color-navy-deep: #050535;

  --color-gold: #17bcd4;
  --color-gold-soft: #bcecf2;

  --color-coral: #17bcd4;

  --border: 2px solid #bcecf2;

  --radius-cover: 18px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: 'Fredoka', system-ui, sans-serif;
  color: var(--color-navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { max-width: 64ch; color: var(--color-ink-soft); }

a {
  color: var(--color-coral);
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--color-navy);
  color: #fff;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.site-header .logo {
  display: block;
  width: auto;
}

.site-header .logo img {
  display: block;
  height: 55px;
  width: auto;
  max-width: 55px;
  object-fit: contain;
}

.site-header .logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  color: #dff8fb;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border-bottom: none;
  display: inline-block;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-navy);
  background: #fff;
  text-decoration: none;
}

/* Petite bordure à pois */

.wave {
  display: none;
}

.site-header::after {
  content: "";
  display: block;
  height: 26px;
  background-image: radial-gradient(
    circle,
    var(--color-coral) 3.5px,
    transparent 3.6px
  );
  background-size: 22px 14px;
  background-position: 4px center;
  background-repeat: repeat-x;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--color-navy);
  color: #fff;
  padding: 3.8rem 0 5rem;
  text-align: left;
}

.hero h1 {
  color: #fff;
  max-width: 66%;
}

.hero p {
  color: #dff8fb;
  font-size: 1.15rem;
  max-width: 50ch;
}

.btn {
  display: inline-block;
  background: var(--color-coral);
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  box-shadow: 0 6px 16px rgba(23, 188, 212, 0.35);
}

.btn:hover {
  text-decoration: none;
  background: #0fa5bb;
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--color-navy);
  color: #fff;
}

/* ---------- Sections ---------- */

section {
  padding: 3.2rem 0;
}

section.alt {
  background: var(--color-bg-panel);
}

.eyebrow-free-heading {
  margin-bottom: 1.6rem;
}

/* ---------- Ce qu'on propose : cartes pastel ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.feature-card {
  border: none;
  border-radius: 20px;
  background: var(--color-bg-panel);
  padding: 1.6rem;
  box-shadow: 0 4px 14px rgba(7, 7, 73, 0.08);
}

.feature-card:nth-child(2) {
  background: var(--color-bg-panel-2);
}

.feature-card:nth-child(4) {
  background: var(--color-bg-panel-2);
}

.feature-card:nth-child(6) { background: var(--color-bg-panel-2); }

/* ---------- Book shelf : couvertures rondes ---------- */

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 1.8rem 1.3rem;
}

.book {
  display: block;
  color: var(--color-ink);
}

.book:hover {
  text-decoration: none;
}

.book-cover {
  border: none;
  border-radius: var(--radius-cover);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--color-bg-panel);
  box-shadow: 0 6px 16px rgba(7, 7, 73, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.book-cover.carre {
  aspect-ratio: 1 / 1;
}

.book:hover .book-cover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(7, 7, 73, 0.24);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.7rem;
  color: var(--color-navy);
}

.book .achat {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-coral);
}

/* ---------- Fiche livre ---------- */

.livre-detail {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 640px) {
  .livre-detail {
    grid-template-columns: 1fr;
  }
}

.livre-detail .book-cover:hover {
  transform: none;
}

/* ---------- Événements ---------- */

.evenement {
  border-left: 5px solid var(--color-gold);
  border-radius: 0 14px 14px 0;
  background: var(--color-bg-panel);
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}

.evenement .date {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  color: var(--color-coral);
  display: block;
}

/* ---------- Zone profs list ---------- */

.ressource-list {
  display: grid;
  gap: 1.1rem;
}

.ressource-item {
  border: none;
  border-radius: 18px;
  background: var(--color-bg-panel);
  padding: 1.3rem 1.5rem;
  box-shadow: 0 4px 14px rgba(7, 7, 73, 0.08);
}

/* ---------- Contact form ---------- */

form.contact {
  display: grid;
  gap: 1.1rem;
  max-width: 480px;
}

form.contact label {
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
  color: var(--color-navy);
}

form.contact input,
form.contact textarea {
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--color-gold-soft);
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}

form.contact input:focus,
form.contact textarea:focus {
  border-color: var(--color-coral);
  outline: none;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-navy-deep);
  color: #d5edf0;
  padding: 2.6rem 0;
  margin-top: 3rem;
  font-size: 0.92rem;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.6rem;
}

.footer-grid h3 {
  font-family: 'Fredoka', sans-serif;
  color: #7ddbea;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* ---------- Responsive nav ---------- */

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
  }

  .site-nav a {
    display: block;
  }

  .site-header .wrap {
    flex-wrap: wrap;
  }
}

/* ---------- Accessibilité ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-coral);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Accordéon ---------- */

.accordion {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.8rem;
}

.accordion-item {
  border: none;
  border-radius: 16px;
  background: var(--color-bg-panel);
  box-shadow: 0 4px 14px rgba(7, 7, 73, 0.08);
  overflow: hidden;
}

.accordion-item summary {
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: var(--color-navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-coral);
  border-bottom: 2px solid var(--color-coral);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.accordion-item[open] summary::after {
  transform: rotate(-135deg);
}

.accordion-content {
  padding: 0 1.3rem 1.3rem;
}

.accordion-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 0.5rem 0;
}

/* ---------- Texte pleine largeur ---------- */

.texte-large p {
  max-width: none;
}

/* ---------- Bloc autrice : photo + texte superposé ---------- */

.auteure-bloc {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  margin: 3rem 0;
}

.auteure-photo {
  grid-column: 1;
  grid-row: 1;
}

.auteure-photo img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
}

.auteure-texte {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 2;
  margin-left: -3.5rem;
  background: var(--color-bg-panel);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(7, 7, 73, 0.14);
  padding: 2rem;
}

.auteure-bloc--inverse .auteure-photo {
  grid-column: 2;
}

.auteure-bloc--inverse .auteure-texte {
  grid-column: 1;
  margin-left: 0;
  margin-right: -3.5rem;
}

@media (max-width: 720px) {
  .auteure-bloc,
  .auteure-bloc--inverse {
    grid-template-columns: 1fr;
  }

  .auteure-bloc .auteure-photo,
  .auteure-bloc--inverse .auteure-photo {
    grid-column: 1;
    grid-row: 1;
  }

  .auteure-bloc .auteure-texte,
  .auteure-bloc--inverse .auteure-texte {
    grid-column: 1;
    grid-row: 2;
    margin: -2.5rem 1.2rem 0;
  }
}

/* ---------- Séparateur à petits points ---------- */

.separateur-points {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 2.5rem 0;
}

.separateur-points span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-coral);
  display: block;
}

/* ---------- Cartes animations ---------- */

.animation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.animation-card {
  padding: 1.7rem 1.9rem;
}

.animation-card h3 {
  font-size: 1.3rem;
}

.animation-card-niveau {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-coral);
  margin: 0 0 0.5rem;
  font-family: 'Fredoka', sans-serif;
}

/* ---------- Petites couvertures de romans ---------- */

.animation-card-livres {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.animation-card-livre-cover {
  display: block;
  width: 100px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(7, 7, 73, 0.18);
  flex-shrink: 0;
}

.animation-card-livre-cover.carre {
  aspect-ratio: 1 / 1;
}

.animation-card-livre-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Icônes des réseaux sociaux ---------- */

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.social-links a:hover {
  background: #fff;
  color: var(--color-navy);
}

/* ---------- Navigation du footer sur 2 colonnes ---------- */

.footer-nav-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.2rem;
}

.footer-nav-columns p {
  margin: 0;
}
/* ---------- Groupes "Suivre X" côte à côte dans le footer ---------- */
.social-groupes { display: flex; gap: 2rem; flex-wrap: wrap; }

/* ---------- Filtre par autrice (site commun) ---------- */
.filtre-auteures { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.filtre-btn {
  cursor: pointer;
  border: var(--border);
  background: var(--color-bg-panel);
  color: var(--color-navy-deep);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}
.filtre-btn.active { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }

/* ---------- Correction : la bio dans le hero est sur une carte claire ---------- */
.hero .auteure-texte p { color: var(--color-ink-soft); max-width: none; }
