/* JoliTrait – feuille de style commune.
   Couleurs et polices tirées de l'identité visuelle de la marque. */
@font-face { font-family: "Nunito"; src: url("../fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  /* Palette de la marque */
  --marine: #01163c;
  --sarcelle: #43a1ac;
  --corail: #ef6d6c;
  --orange: #f9b04b;
  --vert: #a5c483;
  --violet: #a264a2;
  --rose: #f9dbdc;
  --violet-fonce: #8f4f8f; /* mauve un peu plus foncé, pour que le texte blanc reste lisible */
  --corail-fonce: #e85a5a;

  /* Fonds très pâles des collections */
  --fond-coloriage: #fdf7ee;
  --fond-points: #f8f4f5;
  --fond-mandalas: #f5f8f2;
  --fond-jeux: #eff5f5;
  --fond-dessin: #fff0ea;

  --fond: #fff;
  --texte: var(--marine);
  --texte-doux: #4d5670;
  --bordure: #ece6e1;
  --police-texte: "Nunito", system-ui, sans-serif;
  --largeur: 1080px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: var(--police-texte); font-size: 1.05rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--marine); text-decoration-color: var(--sarcelle); text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0 0 12px; }
h3 { font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
h3 { font-size: 1.3rem; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }
.a-completer { background: #fff3c4; color: var(--marine); padding: 0 4px; border-radius: 3px; }
.centre { text-align: center; }
/* Le MC de la marque, en exposant, sans décaler la ligne */
sup { font-size: 0.6em; line-height: 0; }
.intro { color: var(--texte-doux); max-width: 640px; margin: 0 auto 32px; }

/* En-tête et navigation */
.entete { border-bottom: 1px solid var(--bordure); background: var(--fond); }
.entete .conteneur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.entete .logo img { width: 150px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; font-weight: 700; }
.nav a { text-decoration: none; padding-block: 4px; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--sarcelle); }

/* Sections */
main.conteneur { padding-block: 40px 64px; }
section { margin-bottom: 72px; }
.hero { position: relative; text-align: center; padding-top: 16px; }
.hero .logo-grand { width: min(520px, 90%); margin: 0 auto 16px; }
.hero .slogan { color: var(--marine); font-weight: 700; font-size: clamp(1.3rem, 3.5vw, 1.7rem); margin: 0 auto 8px; }
.hero p { color: var(--texte-doux); max-width: 620px; margin: 0 auto 28px; }
.boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* Boutons corail avec texte marine : le texte blanc serait trop pâle sur le corail */
.bouton { display: inline-block; background: var(--corail); color: var(--marine); font-weight: 700; padding: 12px 26px; border-radius: 999px; text-decoration: none; }
.bouton:hover { background: var(--corail-fonce); }
.bouton.secondaire { background: transparent; color: var(--marine); border: 2px solid var(--marine); }

/* Livre vedette */
.vedette { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 40px; align-items: center; background: var(--c-fond); border: 1px solid var(--bordure); border-radius: 16px; padding: 32px; }
.vedette img { border-radius: 6px; box-shadow: 0 8px 24px rgba(1, 22, 60, 0.18); }
.vedette .fiche { list-style: none; padding: 0; margin: 16px 0 24px; color: var(--texte-doux); }
.vedette .boutons { justify-content: flex-start; }
@media (max-width: 720px) { .vedette { grid-template-columns: 1fr; padding: 20px; } .vedette img { max-width: 300px; margin: 0 auto; } }

/* Collections : chaque collection a sa couleur, son fond pâle et son dessin de soulignement
   (crayon, pointillés, branche feuillue, ligne pointillée et X, pinceau) */
.collection { --c: var(--marine); --c-etiquette: var(--marine); --c-texte: #fff; --c-fond: #fff; --c-trait: none; }
.collection.coloriage { --c: var(--orange); --c-etiquette: var(--orange); --c-texte: var(--marine); --c-fond: var(--fond-coloriage);
  --c-trait: url("../img/collections/coloriage-trait.webp"); }
.collection.points { --c: var(--violet); --c-etiquette: var(--violet-fonce); --c-texte: #fff; --c-fond: var(--fond-points);
  --c-trait: url("../img/collections/points-trait.webp"); }
.collection.mandalas { --c: var(--vert); --c-etiquette: var(--vert); --c-texte: var(--marine); --c-fond: var(--fond-mandalas);
  --c-trait: url("../img/collections/mandalas-trait.webp"); }
.collection.jeux { --c: var(--sarcelle); --c-etiquette: var(--sarcelle); --c-texte: var(--marine); --c-fond: var(--fond-jeux);
  --c-trait: url("../img/collections/jeux-trait.webp"); }
.collection.dessin { --c: var(--corail); --c-etiquette: var(--corail); --c-texte: var(--marine); --c-fond: var(--fond-dessin);
  --c-trait: url("../img/collections/dessin-trait.webp"); }
.etiquette { display: inline-block; background: var(--c-etiquette); color: var(--c-texte); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 14px; border-radius: 999px; }

.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
/* Cartes des collections (accueil) : bande de couleur, trait, étiquette, description et petite icône */
.collection.coloriage { --c-carte: #f88c38; --c-carte-fond: #fef9f1; }
.collection.points { --c-carte: #a468b4; --c-carte-fond: #faf3fb; }
.collection.mandalas { --c-carte: #5cac74; --c-carte-fond: #f8fcf3; }
.collection.jeux { --c-carte: #58a0dc; --c-carte-fond: #effafd; }
.collection.dessin { --c-carte: #f88084; --c-carte-fond: #fef4ed; }
.carte { display: flex; flex-direction: column; align-items: center; gap: 14px; background: var(--c-carte-fond); border: 1px solid var(--bordure); border-top: 6px solid var(--c-carte); border-radius: 16px; padding: 22px 10px 24px; text-align: center; }
.carte .trait { width: 100%; max-width: 220px; height: 34px; object-fit: contain; margin-bottom: 6px; }
.carte .etiquette { background: var(--c-carte); color: #fff; font-size: 0.82rem; letter-spacing: 0.03em; white-space: nowrap; padding: 7px 14px; }
.carte p { margin: 0; color: var(--marine); }
.carte .icone { width: 40px; height: 40px; object-fit: contain; margin-top: auto; }
.rayon h2::after { content: ""; display: block; width: 220px; max-width: 100%; height: 34px; background: var(--c-trait) no-repeat left center / contain; }

/* Page des cahiers */
.rayon { margin-bottom: 32px; background: var(--c-fond); border-radius: 16px; padding: 28px; }
.rayon h2::after { margin-top: 6px; }
@media (max-width: 720px) { .rayon { padding: 20px; } }
.livre .bouton { padding: 8px 18px; font-size: 0.95rem; }
.livres { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.livre { background: #fff; border: 1px solid var(--bordure); border-radius: 12px; overflow: hidden; }
.livre .texte { padding: 14px 16px; }
.livre h3 { font-size: 1.15rem; margin-bottom: 4px; }
.livre p { margin: 0 0 8px; color: var(--texte-doux); font-size: 0.95rem; }
.bientot { color: var(--texte-doux); font-style: italic; }

/* Valeurs */
.valeurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; text-align: center; }
.valeurs div { background: #fff; border: 1px solid var(--bordure); border-radius: 12px; padding: 20px 12px; font-weight: 700; font-size: 1.2rem; }

/* Pied de page */
.pied { border-top: 1px solid var(--bordure); color: var(--texte-doux); font-size: 0.92rem; padding-block: 28px; }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.pied p { margin: 0; }
/* Liens vers les comptes Instagram et Pinterest, avec leur petite icône */
.reseaux { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.reseaux a { display: inline-flex; align-items: center; gap: 6px; }
.reseaux .icone { flex-shrink: 0; }
