/* Groupe Scolaire La Prairie. Tokens come from the Figma file's variables
   (page "01 Design system"); names keep the Figma groups. */
:root {
  --marque-foret: #0e4d2c;
  --marque-prairie: #1e7a43;
  --action-orange: #f28a1e;
  --action-orange-hover: #e07a10;
  --action-texte: #1a1206;
  --accent-soleil: #f6b830;
  --accent-ciel: #23356b;
  --fond-page: #f8f3ea;
  --fond-carte: #ffffff;
  --fond-sombre: #0e4d2c;
  --fond-menthe: #e6f2ea;
  --fond-jaune-doux: #fef5dd;
  --fond-orange-doux: #fdf1e3;
  --fond-secondaire: #e8ebf4;
  --texte-principal: #1c2421;
  --texte-secondaire: #4a5550;
  --texte-sur-titre: #a64600;
  --texte-inverse: #ffffff;
  --texte-inverse-doux: #c9e8d3;
  --bordure-claire: #e4dccb;
  --bordure-champ: #c9d3cc;
  --ombre-carte: 0 10px 30px rgba(14, 77, 44, 0.1);
  --ombre-flottante: 0 8px 20px rgba(0, 0, 0, 0.22);
  --font-titre: "Fraunces", Georgia, serif;
  --font-texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond-page);
  color: var(--texte-principal);
  font-family: var(--font-texte);
  font-size: 16px;
  line-height: 24px;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-soleil); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--fond-carte); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(1176px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; overflow: hidden; padding: 88px 0; }
.section--carte { background: var(--fond-carte); }
.section--menthe { background: var(--fond-menthe); }
.section--sombre { background: var(--fond-sombre); color: var(--texte-inverse); }
.section > .container { position: relative; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ---------- Type ---------- */
.titre {
  font-family: var(--font-titre);
  font-weight: 700;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  color: var(--marque-foret);
}
.titre-1 { font-size: 66px; line-height: 68px; }
.titre-2 { font-size: 44px; line-height: 48px; }
.titre-2b { font-size: 36px; line-height: 42px; }
.titre-3 { font-size: 28px; line-height: 34px; }
.titre-4 { font-family: var(--font-texte); font-weight: 700; font-size: 20px; line-height: 26px; color: var(--marque-foret); }
.titre em, .titre i { font-style: italic; color: var(--marque-prairie); }
.sur-titre {
  font-weight: 700; font-size: 14px; line-height: 20px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--texte-sur-titre);
}
.texte-grand { font-size: 20px; line-height: 30px; color: var(--texte-secondaire); }
.texte { font-size: 18px; line-height: 28px; color: var(--texte-secondaire); }
.texte-moyen { font-size: 16px; line-height: 24px; color: var(--texte-secondaire); }
.petit { font-size: 14px; line-height: 20px; color: var(--texte-secondaire); }
.section--sombre .titre { color: var(--texte-inverse); }
.section--sombre .texte, .section--sombre .texte-moyen { color: var(--texte-inverse-doux); }

.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-title .stack { gap: 10px; max-width: 640px; }
.section-title--center { justify-content: center; text-align: center; }
.section-title--center .stack { align-items: center; max-width: 900px; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 999px; border: 0;
  background: var(--action-orange); color: var(--action-texte);
  font-weight: 700; font-size: 16px; line-height: 20px; text-decoration: none;
  white-space: nowrap; cursor: pointer; transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--action-orange-hover); }
.btn:active { transform: translateY(1px); }
.btn img { width: 18px; height: 18px; flex: none; }
.btn--l { height: 58px; padding: 0 28px; font-size: 17px; }
.btn--contour { background: var(--fond-carte); border: 2px solid var(--marque-prairie); color: var(--marque-foret); }
.btn--contour:hover { background: var(--fond-menthe); }
.btn--clair { background: transparent; border: 2px solid var(--texte-inverse-doux); color: var(--texte-inverse); padding: 0 24px; }
.btn--clair:hover { background: rgba(255, 255, 255, .08); }
.btn--vert { background: var(--marque-prairie); color: var(--texte-inverse); }
.btn--vert:hover { background: var(--marque-foret); }
.btn--blanc { background: var(--fond-carte); color: var(--marque-foret); }
.btn--blanc:hover { background: var(--fond-menthe); }
.buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.lien-fleche {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; font-size: 16px; line-height: 20px; color: var(--marque-foret);
  text-decoration: none; white-space: nowrap;
}
.lien-fleche img { width: 18px; height: 18px; transition: transform .15s ease; }
.lien-fleche:hover { text-decoration: underline; text-underline-offset: 4px; }
.lien-fleche:hover img { transform: translateX(3px); }

/* ---------- Pills ---------- */
.pastille {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 6px 14px; border-radius: 999px;
  font-weight: 700; font-size: 14px; line-height: 20px; white-space: nowrap;
  background: var(--fond-carte); color: var(--texte-principal);
}
.pastille--foret { background: var(--fond-sombre); color: var(--texte-inverse); }
.pastille--prairie { background: var(--marque-prairie); color: var(--texte-inverse); }
.pastille--soleil { background: var(--accent-soleil); color: var(--action-texte); }
.pastille--menthe { background: var(--fond-menthe); color: var(--marque-foret); }
.pastille--provisoire { background: var(--fond-jaune-doux); color: var(--texte-sur-titre); border: 1px dashed var(--accent-soleil); }

/* Placeholder slots the school still has to fill, kept visible on purpose. */
.a-venir { border: 2px dashed var(--bordure-champ); border-radius: 14px; padding: 10px 14px; color: var(--texte-secondaire); }

/* ---------- Motifs (Adinkra) ---------- */
.motif { position: absolute; pointer-events: none; z-index: 0; }
.section > .container, .hero > .container { z-index: 1; }

/* ---------- Contact bar ---------- */
.barre-contact { background: var(--fond-sombre); color: var(--texte-inverse); font-size: 14px; line-height: 20px; }
.barre-contact .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.barre-contact__liens { display: flex; align-items: center; gap: 24px; }
.barre-contact a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.barre-contact a:hover { text-decoration: underline; }
.barre-contact img { width: 16px; height: 16px; }
.barre-contact__annonce { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-soleil); text-decoration: none; }
.barre-contact__annonce::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-soleil); }

/* ---------- Header ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: var(--fond-carte); border-bottom: 1px solid var(--bordure-claire); }
.entete .container { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; padding-bottom: 16px; }
.entete__rangee { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.logo img { width: 56px; height: 56px; }
.logo__nom { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.logo__groupe { font-weight: 700; font-size: 12px; line-height: 20px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--texte-secondaire); }
.logo__prairie { font-family: var(--font-titre); font-variation-settings: "SOFT" 0, "WONK" 1; font-weight: 700; font-size: 28px; line-height: 34px; color: var(--marque-foret); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav > li { position: relative; }
.nav a, .nav__cycles { display: inline-flex; align-items: center; gap: 4px; padding: 10px 4px; font-weight: 500; font-size: 16px; line-height: 24px; color: var(--texte-principal); text-decoration: none; border: 0; background: none; cursor: pointer; border-bottom: 3px solid transparent; }
.nav a:hover, .nav__cycles:hover { color: var(--marque-prairie); }
.nav a[aria-current="page"], .nav__cycles.is-active { color: var(--marque-foret); border-bottom-color: var(--action-orange); }
.nav__cycles img { width: 14px; height: 14px; }
.sous-menu {
  position: absolute; top: 100%; left: -12px; min-width: 280px; padding: 8px;
  background: var(--fond-carte); border: 1px solid var(--bordure-claire); border-radius: 16px; box-shadow: var(--ombre-carte);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav > li:hover .sous-menu, .nav > li:focus-within .sous-menu { opacity: 1; visibility: visible; transform: none; }
.sous-menu a { display: flex; width: 100%; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 0; font-weight: 500; color: var(--marque-foret); }
.sous-menu a:hover { background: var(--fond-menthe); color: var(--marque-foret); }
.sous-menu img { width: 22px; height: 22px; }
.entete__boutons { display: flex; justify-content: center; gap: 12px; }
.entete__mobile { display: none; align-items: center; gap: 8px; }
.bouton-menu { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--fond-menthe); cursor: pointer; }
.bouton-menu img { width: 22px; height: 22px; }

/* Mobile menu panel */
.menu-mobile { position: fixed; inset: 0; z-index: 60; display: none; flex-direction: column; background: var(--fond-carte); overflow-y: auto; }
.menu-mobile.is-open { display: flex; }
.menu-mobile__entete { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--bordure-claire); }
.menu-mobile__entete .logo { margin-right: auto; }
.menu-mobile nav a, .menu-mobile__cycles { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 20px; border: 0; border-bottom: 1px solid var(--bordure-claire); background: none; font-weight: 700; font-size: 18px; line-height: 26px; color: var(--marque-foret); text-decoration: none; text-align: left; cursor: pointer; }
.menu-mobile nav a[aria-current="page"] { background: var(--fond-menthe); color: var(--marque-prairie); }
.menu-mobile nav a[aria-current="page"]::before { content: ""; width: 4px; height: 24px; border-radius: 2px; background: var(--marque-prairie); }
.menu-mobile__cycles span { flex: 1; }
.menu-mobile__cycles img { width: 20px; height: 20px; transition: transform .15s ease; }
.menu-mobile__cycles[aria-expanded="false"] img { transform: rotate(180deg); }
.menu-mobile__sous { background: var(--fond-page); border-bottom: 1px solid var(--bordure-claire); }
.menu-mobile__sous[hidden] { display: none; }
.menu-mobile .menu-mobile__sous a { padding: 10px 20px 10px 36px; border: 0; font-weight: 400; font-size: 16px; line-height: 24px; }
.menu-mobile__sous a span { flex: 1; }
.menu-mobile__sous img { width: 22px; height: 22px; }
.menu-mobile__sous a img:last-child { width: 20px; height: 20px; }
.menu-mobile__actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 24px; border-top: 1px solid var(--bordure-claire); }
.menu-mobile__actions .btn { width: 100%; }
.menu-mobile__rapide { display: flex; gap: 16px; }
.menu-mobile__rapide a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--marque-foret); text-decoration: none; }
.menu-mobile__rapide img { width: 18px; height: 18px; }
body.menu-ouvert { overflow: hidden; }

/* ---------- Page banner (inner pages) ---------- */
.bandeau { position: relative; overflow: hidden; padding: 48px 0 80px; }
.bandeau__contenu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 40px; align-items: center; }
.bandeau__texte { display: flex; flex-direction: column; gap: 20px; }
.fil-ariane { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--texte-secondaire); }
.fil-ariane a { text-decoration: none; }
.fil-ariane a:hover { text-decoration: underline; }
.fil-ariane img { width: 14px; height: 14px; }
.fil-ariane [aria-current] { color: var(--marque-foret); font-weight: 600; }
.photo { position: relative; overflow: hidden; border-radius: 24px; background: var(--fond-menthe); }
.photo > img { width: 100%; height: 100%; object-fit: cover; }

/* Photo slots still to be supplied by the school */
.photo-a-venir {
  position: relative; display: flex; align-items: center; justify-content: center;
  border-radius: 24px; background: var(--fond-menthe); border: 2px dashed var(--bordure-champ); color: var(--marque-foret);
}
.photo-a-venir__legende {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; background: var(--fond-carte); font-size: 14px; line-height: 20px; font-weight: 600;
}

/* ---------- Footer ---------- */
.pied { background: var(--fond-sombre); color: var(--texte-inverse-doux); padding: 72px 0 32px; }
.pied .container { display: flex; flex-direction: column; gap: 40px; }
.frise { display: flex; justify-content: center; gap: 40px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .16); opacity: .7; overflow: hidden; }
.frise img { width: 34px; height: 34px; flex: none; }
.pied__colonnes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.pied__colonne { display: flex; flex-direction: column; gap: 10px; }
.pied__colonne h2 { font-size: 16px; line-height: 26px; font-weight: 700; color: var(--texte-inverse); }
.pied__colonne a { text-decoration: none; }
.pied__colonne a:hover { text-decoration: underline; color: var(--texte-inverse); }
.pied__marque { gap: 14px; }
.pied__marque .logo img { width: 52px; height: 52px; }
.pied__marque .logo { gap: 12px; }
.pied__marque .logo__prairie { color: var(--texte-inverse); font-size: 24px; }
.pied__devise { font-weight: 700; line-height: 20px; color: var(--accent-soleil); }
.carte-plan { display: flex; align-items: center; justify-content: center; height: 96px; border: 2px dashed #3e7a57; border-radius: 12px; font-size: 14px; line-height: 20px; text-decoration: none; }
.carte-plan:hover { background: rgba(255, 255, 255, .06); }
.pied__agrements { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; border-top: 1px solid #2d6a47; font-size: 14px; line-height: 20px; }

/* ---------- Floating contact ---------- */
.contact-flottant { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 12px; }
.contact-flottant a { display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--ombre-flottante); text-decoration: none; }
.contact-flottant__appel { width: 56px; height: 56px; border-radius: 999px; background: var(--fond-carte); }
.contact-flottant__appel img { width: 24px; height: 24px; }
.contact-flottant__whatsapp { gap: 10px; height: 60px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--marque-prairie); color: var(--texte-inverse); font-weight: 700; }
.contact-flottant__whatsapp img { width: 26px; height: 26px; }

/* ---------- Shared cards and blocks ---------- */
.carte { background: var(--fond-carte); border: 1px solid var(--bordure-claire); border-radius: 22px; }
.cta { position: relative; overflow: hidden; background: var(--fond-sombre); color: var(--texte-inverse); padding: 72px 0; }
.cta > .container { position: relative; z-index: 1; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta__texte { display: flex; flex-direction: column; gap: 16px; max-width: 665px; }
.cta .titre { color: var(--texte-inverse); }
.cta .texte { color: var(--texte-inverse-doux); }

/* Fee tables */
.tableau-frais { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 15px; line-height: 20px; }
.tableau-frais th { text-align: left; font-weight: 700; padding: 10px 12px; color: var(--marque-foret); background: var(--fond-menthe); }
.tableau-frais td { padding: 13px 12px; background: var(--fond-page); }
.tableau-frais th:first-child, .tableau-frais td:first-child { border-radius: 10px 0 0 10px; }
.tableau-frais th:last-child, .tableau-frais td:last-child { border-radius: 0 10px 10px 0; }
.tableau-defilant { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Forms */
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label, .champ legend { font-weight: 700; font-size: 14px; line-height: 20px; color: var(--texte-principal); }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--bordure-champ); border-radius: 12px;
  background: var(--fond-carte); font-size: 16px; line-height: 24px;
}
.champ textarea { min-height: 120px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--marque-prairie); box-shadow: 0 0 0 3px rgba(30, 122, 67, .18); }
.champ__aide { font-size: 13px; line-height: 18px; color: var(--texte-secondaire); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: url("icons/select-chevron.svg") center / contain no-repeat; pointer-events: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .entete__rangee .nav, .entete__boutons { display: none; }
  .entete__mobile { display: flex; }
  .entete .container { padding-top: 12px; padding-bottom: 12px; }
}
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .pied__colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bandeau__contenu { grid-template-columns: minmax(0, 1fr); }
  .cta .container { flex-direction: column; align-items: flex-start; }
  .titre-1 { font-size: 52px; line-height: 56px; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-4, .pied__colonnes { grid-template-columns: minmax(0, 1fr); }
  .titre-1 { font-size: 40px; line-height: 44px; }
  .titre-2 { font-size: 32px; line-height: 36px; }
  .titre-2b { font-size: 28px; line-height: 34px; }
  .titre-3 { font-size: 24px; line-height: 30px; }
  .texte-grand { font-size: 17px; line-height: 26px; }
  .texte { font-size: 16px; line-height: 24px; }
  .section-title { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .barre-contact__liens { display: none; }
  .barre-contact .container { justify-content: center; }
  .logo img { width: 40px; height: 40px; }
  .logo { gap: 8px; }
  .logo__groupe { font-size: 9px; letter-spacing: .9px; line-height: 14px; }
  .logo__prairie { font-size: 20px; line-height: 24px; }
  .entete__rangee { gap: 8px; }
  .entete__mobile .btn { padding: 0 14px; }
  .buttons .btn { width: 100%; }
  .bandeau { padding: 32px 0 56px; }
  .frise { gap: 20px; justify-content: flex-start; }
  .contact-flottant { right: 16px; bottom: 16px; }
  .contact-flottant .contact-flottant__appel { display: none; }
  .cta { padding: 56px 0; }
}
@media (max-width: 359px) {
  .entete__mobile .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
