/*
 * Site themes.
 *
 * Every colour of the site comes from the variables below. The default
 * theme is the original palette; the others only redefine variables.
 * The active theme is set on <html data-theme="...">, from the SITE_THEME
 * setting (see website/themes.py). In DEBUG a picker lets you switch live.
 *
 * Palettes stay soft, warm and rounded: this is a website for young children.
 */

/* ---------- Défaut (palette d'origine) ---------- */
:root {
  --primary: #f5a623;
  --primary-dark: #e88e14;
  --primary-deep: #c56b0a;
  --primary-soft: #ffecb3;
  --accent: #007bff;
  --topbar: #f5a623;
  --topbar-strip: #e88e14;
  --footer: #3498db;
  --footer-strip: #5faee3;
  --sec-choice: #e0f7fa;
  --sec-citation: #eceff1;
  --sec-pedag: #f0f4c3;
  --sec-mission: #c8e6c9;
  --sec-vision: #e8eaf6;
  --sec-creche: #ffecb3;
  --sec-about: #f0d2f3;
  --about-title: #305f72;
  --dot: #c5cae9;
  --hero-deco: none;
}

/* ---------- Printemps : fleurs et jeunes pousses ---------- */
[data-theme="printemps"] {
  --primary: #f48fb1;
  --primary-dark: #d9607f;
  --primary-deep: #b0435f;
  --primary-soft: #fde4ec;
  --accent: #43a047;
  --topbar: #f48fb1;
  --topbar-strip: #d9607f;
  --footer: #5aa469;
  --footer-strip: #81c784;
  --sec-choice: #f1f8e9;
  --sec-citation: #fdf5f8;
  --sec-pedag: #fff8e1;
  --sec-mission: #e8f5e9;
  --sec-vision: #f3e5f5;
  --sec-creche: #fde4ec;
  --sec-about: #f8e1ec;
  --about-title: #4f7a3a;
  --dot: #f8bbd0;
  --hero-deco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg transform='translate(34 34)'%3E%3Ccircle cx='0' cy='-11' r='9' fill='%23f8bbd0'/%3E%3Ccircle cx='11' cy='0' r='9' fill='%23f8bbd0'/%3E%3Ccircle cx='0' cy='11' r='9' fill='%23f8bbd0'/%3E%3Ccircle cx='-11' cy='0' r='9' fill='%23f8bbd0'/%3E%3Ccircle r='6' fill='%23ffd54f'/%3E%3C/g%3E%3Cg transform='translate(88 84) scale(.7)'%3E%3Ccircle cx='0' cy='-11' r='9' fill='%23fff'/%3E%3Ccircle cx='11' cy='0' r='9' fill='%23fff'/%3E%3Ccircle cx='0' cy='11' r='9' fill='%23fff'/%3E%3Ccircle cx='-11' cy='0' r='9' fill='%23fff'/%3E%3Ccircle r='6' fill='%23ffd54f'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Été : soleil et mer ---------- */
[data-theme="ete"] {
  --primary: #ffb74d;
  --primary-dark: #f57c00;
  --primary-deep: #d35400;
  --primary-soft: #fff3cd;
  --accent: #0288d1;
  --topbar: #ffb74d;
  --topbar-strip: #f57c00;
  --footer: #26a69a;
  --footer-strip: #4db6ac;
  --sec-choice: #e0f7fa;
  --sec-citation: #fffde7;
  --sec-pedag: #fff3e0;
  --sec-mission: #e0f2f1;
  --sec-vision: #e3f2fd;
  --sec-creche: #fff3cd;
  --sec-about: #fce4ec;
  --about-title: #00796b;
  --dot: #b2ebf2;
  --hero-deco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg transform='translate(60 60)' stroke='%23ffca28' stroke-width='6' stroke-linecap='round'%3E%3Cpath d='M0-44v-10M0 44v10M-44 0h-10M44 0h10M-31-31l-7-7M31 31l7 7M-31 31l-7 7M31-31l7-7'/%3E%3C/g%3E%3Ccircle cx='60' cy='60' r='26' fill='%23ffd54f'/%3E%3C/svg%3E");
}

/* ---------- Automne : feuilles et citrouilles ---------- */
[data-theme="automne"] {
  --primary: #e0914a;
  --primary-dark: #c96f2d;
  --primary-deep: #9c4f1c;
  --primary-soft: #fbe3c8;
  --accent: #c0392b;
  --topbar: #e0914a;
  --topbar-strip: #c96f2d;
  --footer: #a0613b;
  --footer-strip: #c08457;
  --sec-choice: #fdf2e3;
  --sec-citation: #f7efe6;
  --sec-pedag: #fbead1;
  --sec-mission: #f1e8d4;
  --sec-vision: #f6e7d8;
  --sec-creche: #fbe3c8;
  --sec-about: #f5e1d5;
  --about-title: #7b4a2a;
  --dot: #e8c9a8;
  --hero-deco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M30 10c18 8 26 26 16 44-18-2-30-18-16-44z' fill='%23e57c23'/%3E%3Cpath d='M30 12c4 14 8 28 16 42' stroke='%23a0522d' stroke-width='2' fill='none'/%3E%3Cpath d='M92 58c-2 20-18 34-38 30 2-18 18-32 38-30z' fill='%23c0392b'/%3E%3Cpath d='M90 60c-12 8-24 18-36 28' stroke='%237b3f1d' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

/* ---------- Hiver : flocons et douceur ---------- */
[data-theme="hiver"] {
  --primary: #7fb3e0;
  --primary-dark: #4a8ccc;
  --primary-deep: #2f6aa3;
  --primary-soft: #e3f0fb;
  --accent: #7e57c2;
  --topbar: #7fb3e0;
  --topbar-strip: #4a8ccc;
  --footer: #4f6fa8;
  --footer-strip: #7b96c6;
  --sec-choice: #eef5fc;
  --sec-citation: #f5f7fb;
  --sec-pedag: #f1effa;
  --sec-mission: #e8f1f8;
  --sec-vision: #ede7f6;
  --sec-creche: #e3f0fb;
  --sec-about: #efe9f7;
  --about-title: #3a5a8c;
  --dot: #c5d7ef;
  --hero-deco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg stroke='%23fff' stroke-width='4' stroke-linecap='round' fill='none'%3E%3Cg transform='translate(36 36)'%3E%3Cpath d='M0-22V22M-19-11L19 11M-19 11L19-11M-6-17L0-11L6-17M-6 17L0 11L6 17'/%3E%3C/g%3E%3Cg transform='translate(88 82) scale(.6)'%3E%3Cpath d='M0-22V22M-19-11L19 11M-19 11L19-11M-6-17L0-11L6-17M-6 17L0 11L6 17'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Chaud : pêche, corail et miel ---------- */
[data-theme="chaud"] {
  --primary: #ff9a76;
  --primary-dark: #f2704a;
  --primary-deep: #c9502c;
  --primary-soft: #ffe3d6;
  --accent: #e8590c;
  --topbar: #ff9a76;
  --topbar-strip: #f2704a;
  --footer: #e06c5f;
  --footer-strip: #f08c7f;
  --sec-choice: #fff1e6;
  --sec-citation: #fdf3ec;
  --sec-pedag: #fff4d6;
  --sec-mission: #fde2e4;
  --sec-vision: #ffe8d6;
  --sec-creche: #ffe3d6;
  --sec-about: #fbe7e0;
  --about-title: #a8432a;
  --dot: #ffc9b3;
  --hero-deco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M36 56s-22-13-22-28c0-8 6-14 13-14 5 0 8 3 9 6 1-3 4-6 9-6 7 0 13 6 13 14 0 15-22 28-22 28z' fill='%23ff8a80'/%3E%3Cpath d='M88 100s-14-8-14-18c0-5 4-9 8-9 3 0 5 2 6 4 1-2 3-4 6-4 4 0 8 4 8 9 0 10-14 18-14 18z' fill='%23fff'/%3E%3C/svg%3E");
}

/* ---------- Froid : menthe, lagon et lavande ---------- */
[data-theme="froid"] {
  --primary: #6cc4b8;
  --primary-dark: #3fa396;
  --primary-deep: #2a7d72;
  --primary-soft: #dcf2ef;
  --accent: #5c6bc0;
  --topbar: #6cc4b8;
  --topbar-strip: #3fa396;
  --footer: #6a78c8;
  --footer-strip: #8e99d6;
  --sec-choice: #e8f5f4;
  --sec-citation: #f2f4fb;
  --sec-pedag: #e3f2fd;
  --sec-mission: #e0f7fa;
  --sec-vision: #ede7f6;
  --sec-creche: #dcf2ef;
  --sec-about: #ece8f7;
  --about-title: #3f4f9a;
  --dot: #c5cae9;
  --hero-deco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M16 44c8-8 16-8 24 0s16 8 24 0 16-8 24 0' stroke='%23fff' stroke-width='6' stroke-linecap='round' fill='none'/%3E%3Cpath d='M36 84c8-8 16-8 24 0s16 8 24 0' stroke='%23b2dfdb' stroke-width='6' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}

/* ================= Jeux et jouets / psychomotricité ================= */

/* ---------- Jeux et jouets : briques de construction ---------- */
[data-theme="briques"] {
  --primary: #f47c6e;
  --primary-dark: #e0584a;
  --primary-deep: #b83f33;
  --primary-soft: #fde2de;
  --accent: #3d8bd4;
  --topbar: #f47c6e;
  --topbar-strip: #e0584a;
  --footer: #3d8bd4;
  --footer-strip: #6aa8e0;
  --sec-choice: #fff6d6;
  --sec-citation: #e6f1fb;
  --sec-pedag: #e8f6e8;
  --sec-mission: #fde2de;
  --sec-vision: #fff6d6;
  --sec-creche: #fde2de;
  --sec-about: #e6f1fb;
  --about-title: #2f6ea8;
  --dot: #fbc4bd;
  --hero-deco: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='120'%20viewBox='0%200%20120%20120'%3E%3Crect%20x='14'%20y='70'%20width='44'%20height='30'%20rx='5'%20fill='%23f47c6e'/%3E%3Ccircle%20cx='26'%20cy='69'%20r='5'%20fill='%23f47c6e'/%3E%3Ccircle%20cx='46'%20cy='69'%20r='5'%20fill='%23f47c6e'/%3E%3Crect%20x='62'%20y='70'%20width='44'%20height='30'%20rx='5'%20fill='%233d8bd4'/%3E%3Ccircle%20cx='74'%20cy='69'%20r='5'%20fill='%233d8bd4'/%3E%3Ccircle%20cx='94'%20cy='69'%20r='5'%20fill='%233d8bd4'/%3E%3Crect%20x='38'%20y='36'%20width='44'%20height='30'%20rx='5'%20fill='%23ffd166'/%3E%3Ccircle%20cx='50'%20cy='35'%20r='5'%20fill='%23ffd166'/%3E%3Ccircle%20cx='70'%20cy='35'%20r='5'%20fill='%23ffd166'/%3E%3C/svg%3E");
}

/* ---------- Jeux et jouets : crayons de couleur ---------- */
[data-theme="crayons"] {
  --primary: #b39ddb;
  --primary-dark: #8f73c9;
  --primary-deep: #6c4fae;
  --primary-soft: #eee7fb;
  --accent: #f08a4b;
  --topbar: #b39ddb;
  --topbar-strip: #8f73c9;
  --footer: #7c6cc4;
  --footer-strip: #a095d6;
  --sec-choice: #fff4e6;
  --sec-citation: #f6f1fc;
  --sec-pedag: #e8f7f0;
  --sec-mission: #fdeef3;
  --sec-vision: #eee7fb;
  --sec-creche: #fff4e6;
  --sec-about: #f3ecfb;
  --about-title: #5e46a0;
  --dot: #d7c8f0;
  --hero-deco: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='120'%20viewBox='0%200%20120%20120'%3E%3Cg%20transform='rotate%28-35%2060%2060%29'%3E%3Crect%20x='52'%20y='16'%20width='16'%20height='62'%20rx='3'%20fill='%238f73c9'/%3E%3Crect%20x='52'%20y='16'%20width='16'%20height='10'%20rx='3'%20fill='%236c4fae'/%3E%3Cpath%20d='M52%2078h16l-8%2018z'%20fill='%23f5d6a8'/%3E%3Cpath%20d='M57%2089h6l-3%207z'%20fill='%238f73c9'/%3E%3C/g%3E%3Cpath%20d='M14%20104c10-12%2020%208%2030-3s20%208%2030-3%2020%208%2030-3'%20stroke='%23f08a4b'%20stroke-width='5'%20fill='none'%20stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Jeux et jouets : doudou et peluche ---------- */
[data-theme="peluche"] {
  --primary: #d4a77a;
  --primary-dark: #b8855a;
  --primary-deep: #8a5d36;
  --primary-soft: #f6e9dc;
  --accent: #e38b98;
  --topbar: #d4a77a;
  --topbar-strip: #b8855a;
  --footer: #a9805c;
  --footer-strip: #c4a07f;
  --sec-choice: #fbf4ec;
  --sec-citation: #fdf6f0;
  --sec-pedag: #fcecef;
  --sec-mission: #f6efe4;
  --sec-vision: #f9ece3;
  --sec-creche: #f6e9dc;
  --sec-about: #fbeef0;
  --about-title: #7d5534;
  --dot: #e8cdb3;
  --hero-deco: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='120'%20viewBox='0%200%20120%20120'%3E%3Ccircle%20cx='38'%20cy='36'%20r='15'%20fill='%23c99a6b'/%3E%3Ccircle%20cx='82'%20cy='36'%20r='15'%20fill='%23c99a6b'/%3E%3Ccircle%20cx='38'%20cy='36'%20r='7'%20fill='%23f3c9cf'/%3E%3Ccircle%20cx='82'%20cy='36'%20r='7'%20fill='%23f3c9cf'/%3E%3Ccircle%20cx='60'%20cy='64'%20r='34'%20fill='%23d9b08c'/%3E%3Ccircle%20cx='47'%20cy='58'%20r='4'%20fill='%235b3a24'/%3E%3Ccircle%20cx='73'%20cy='58'%20r='4'%20fill='%235b3a24'/%3E%3Cellipse%20cx='60'%20cy='75'%20rx='13'%20ry='10'%20fill='%23f6e9dc'/%3E%3Ccircle%20cx='60'%20cy='71'%20r='4'%20fill='%235b3a24'/%3E%3C/svg%3E");
}

/* ---------- Psychomotricité : parcours moteur ---------- */
[data-theme="parcours"] {
  --primary: #4fc3b4;
  --primary-dark: #23a191;
  --primary-deep: #167a6d;
  --primary-soft: #d6f3ef;
  --accent: #e8a200;
  --topbar: #4fc3b4;
  --topbar-strip: #23a191;
  --footer: #3a7ca5;
  --footer-strip: #6a9fc2;
  --sec-choice: #fff7d9;
  --sec-citation: #eef8f7;
  --sec-pedag: #e3f1f8;
  --sec-mission: #d6f3ef;
  --sec-vision: #fff1d6;
  --sec-creche: #d6f3ef;
  --sec-about: #e8f3f9;
  --about-title: #23608a;
  --dot: #a8e2da;
  --hero-deco: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='120'%20viewBox='0%200%20120%20120'%3E%3Cpath%20d='M12%20102V76a19%2019%200%200%201%2038%200v26H40V76a9%209%200%200%200-18%200v26z'%20fill='%2323a191'/%3E%3Cpath%20d='M58%20102l48-42v42z'%20fill='%23f2b705'/%3E%3Crect%20x='58'%20y='24'%20width='46'%20height='18'%20rx='9'%20fill='%233a7ca5'/%3E%3C/svg%3E");
}

/* ---------- Psychomotricité : balles et ballons ---------- */
[data-theme="ballons"] {
  --primary: #7ea6f2;
  --primary-dark: #4f82e3;
  --primary-deep: #2f5fb8;
  --primary-soft: #e1ebfd;
  --accent: #f2a900;
  --topbar: #7ea6f2;
  --topbar-strip: #4f82e3;
  --footer: #4a6fd1;
  --footer-strip: #7b95dd;
  --sec-choice: #fff6d9;
  --sec-citation: #eef3fd;
  --sec-pedag: #fdeee8;
  --sec-mission: #e1ebfd;
  --sec-vision: #fff6d9;
  --sec-creche: #e1ebfd;
  --sec-about: #eef1fb;
  --about-title: #2f4f9e;
  --dot: #bcd0f7;
  --hero-deco: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='120'%20viewBox='0%200%20120%20120'%3E%3Ccircle%20cx='40'%20cy='44'%20r='26'%20fill='%234f82e3'/%3E%3Cpath%20d='M14%2044h52M40%2018c12%209%2012%2043%200%2052'%20stroke='%23fff'%20stroke-width='3'%20fill='none'/%3E%3Ccircle%20cx='88'%20cy='84'%20r='18'%20fill='%23ffb703'/%3E%3Ccircle%20cx='82'%20cy='78'%20r='5'%20fill='%23fff'%20opacity='.7'/%3E%3Ccircle%20cx='26'%20cy='98'%20r='10'%20fill='%23f47c6e'/%3E%3C/svg%3E");
}

/* ---------- Psychomotricité : équilibre ---------- */
[data-theme="equilibre"] {
  --primary: #8fcf8a;
  --primary-dark: #5fae5f;
  --primary-deep: #3f8444;
  --primary-soft: #e3f4e2;
  --accent: #ef8354;
  --topbar: #8fcf8a;
  --topbar-strip: #5fae5f;
  --footer: #4e9a6e;
  --footer-strip: #7bb994;
  --sec-choice: #f2f9ec;
  --sec-citation: #f7faf2;
  --sec-pedag: #fdf0e7;
  --sec-mission: #e3f4e2;
  --sec-vision: #eef6f0;
  --sec-creche: #e3f4e2;
  --sec-about: #f0f7ee;
  --about-title: #3a7a4a;
  --dot: #c3e5c0;
  --hero-deco: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='120'%20viewBox='0%200%20120%20120'%3E%3Crect%20x='18'%20y='42'%20width='84'%20height='10'%20rx='5'%20fill='%23c9a36b'/%3E%3Cpath%20d='M38%2052l-8%2024M82%2052l8%2024'%20stroke='%23c9a36b'%20stroke-width='6'%20stroke-linecap='round'/%3E%3Cellipse%20cx='24'%20cy='98'%20rx='14'%20ry='8'%20fill='%235fae5f'/%3E%3Cellipse%20cx='60'%20cy='88'%20rx='14'%20ry='8'%20fill='%23ef8354'/%3E%3Cellipse%20cx='96'%20cy='98'%20rx='14'%20ry='8'%20fill='%238fcf8a'/%3E%3C/svg%3E");
}

/* ================= Button decorations and hover animation per theme =================
 * --btn-deco / --btn-deco-2: shapes flying out of the address button (button.css "stars")
 * --btn-anim: keyframes played when hovering the main buttons
 */
:root {
  /* défaut: the button keeps its original stars; these only decorate the sections */
  --btn-deco: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cpath%20d='M20%203l5%2011%2012%201-9%208%203%2012-11-6-11%206%203-12-9-8%2012-1z'%20fill='%23f5a623'/%3E%3C/svg%3E");
  --btn-deco-2: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cpath%20d='M20%203l5%2011%2012%201-9%208%203%2012-11-6-11%206%203-12-9-8%2012-1z'%20fill='%235faee3'/%3E%3C/svg%3E");
  --btn-anim: btn_pop;
}

[data-theme="printemps"] {
  --btn-deco: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cg%20transform='translate%2820%2020%29'%3E%3Ccircle%20cy='-8'%20r='7'%20fill='%23f48fb1'/%3E%3Ccircle%20cx='8'%20r='7'%20fill='%23f48fb1'/%3E%3Ccircle%20cy='8'%20r='7'%20fill='%23f48fb1'/%3E%3Ccircle%20cx='-8'%20r='7'%20fill='%23f48fb1'/%3E%3Ccircle%20r='5'%20fill='%23ffd54f'/%3E%3C/g%3E%3C/svg%3E");
  --btn-deco-2: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cg%20transform='translate%2820%2020%29'%3E%3Ccircle%20cy='-8'%20r='7'%20fill='%23aed581'/%3E%3Ccircle%20cx='8'%20r='7'%20fill='%23aed581'/%3E%3Ccircle%20cy='8'%20r='7'%20fill='%23aed581'/%3E%3Ccircle%20cx='-8'%20r='7'%20fill='%23aed581'/%3E%3Ccircle%20r='5'%20fill='%23ffd54f'/%3E%3C/g%3E%3C/svg%3E");
  --btn-anim: btn_sway;
}

[data-theme="ete"] {
  --btn-deco: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cg%20stroke='%23ffb300'%20stroke-width='3'%20stroke-linecap='round'%3E%3Cpath%20d='M20%202v6M20%2032v6M2%2020h6M32%2020h6M7%207l4%204M29%2029l4%204M7%2033l4-4M29%2011l4-4'/%3E%3C/g%3E%3Ccircle%20cx='20'%20cy='20'%20r='9'%20fill='%23ffb300'/%3E%3C/svg%3E");
  --btn-deco-2: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cg%20stroke='%234dd0e1'%20stroke-width='3'%20stroke-linecap='round'%3E%3Cpath%20d='M20%202v6M20%2032v6M2%2020h6M32%2020h6M7%207l4%204M29%2029l4%204M7%2033l4-4M29%2011l4-4'/%3E%3C/g%3E%3Ccircle%20cx='20'%20cy='20'%20r='9'%20fill='%234dd0e1'/%3E%3C/svg%3E");
  --btn-anim: btn_shine;
}

[data-theme="automne"] {
  --btn-deco: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cpath%20d='M8%2034C6%2018%2016%206%2034%206c0%2018-10%2028-26%2028z'%20fill='%23e57c23'/%3E%3Cpath%20d='M8%2034L26%2014'%20stroke='%237b3f1d'%20stroke-width='2'/%3E%3C/svg%3E");
  --btn-deco-2: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cpath%20d='M8%2034C6%2018%2016%206%2034%206c0%2018-10%2028-26%2028z'%20fill='%23c0392b'/%3E%3Cpath%20d='M8%2034L26%2014'%20stroke='%237b3f1d'%20stroke-width='2'/%3E%3C/svg%3E");
  --btn-anim: btn_fall;
}

[data-theme="hiver"] {
  --btn-deco: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cg%20stroke='%237fb3e0'%20stroke-width='3'%20stroke-linecap='round'%20transform='translate%2820%2020%29'%3E%3Cpath%20d='M0-16V16M-14-8L14%208M-14%208L14-8'/%3E%3C/g%3E%3C/svg%3E");
  --btn-deco-2: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cg%20stroke='%23b39ddb'%20stroke-width='3'%20stroke-linecap='round'%20transform='translate%2820%2020%29'%3E%3Cpath%20d='M0-16V16M-14-8L14%208M-14%208L14-8'/%3E%3C/g%3E%3C/svg%3E");
  --btn-anim: btn_shiver;
}

[data-theme="chaud"] {
  --btn-deco: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cpath%20d='M20%2034S4%2024%204%2013c0-5%204-9%208-9%204%200%207%202%208%205%201-3%204-5%208-5%204%200%208%204%208%209%200%2011-16%2021-16%2021z'%20fill='%23ff8a80'/%3E%3C/svg%3E");
  --btn-deco-2: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cpath%20d='M20%2034S4%2024%204%2013c0-5%204-9%208-9%204%200%207%202%208%205%201-3%204-5%208-5%204%200%208%204%208%209%200%2011-16%2021-16%2021z'%20fill='%23ffb74d'/%3E%3C/svg%3E");
  --btn-anim: btn_beat;
}

[data-theme="froid"] {
  --btn-deco: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Ccircle%20cx='20'%20cy='20'%20r='14'%20fill='none'%20stroke='%234db6ac'%20stroke-width='3'/%3E%3Ccircle%20cx='15'%20cy='15'%20r='3'%20fill='%234db6ac'/%3E%3C/svg%3E");
  --btn-deco-2: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Ccircle%20cx='20'%20cy='20'%20r='14'%20fill='none'%20stroke='%237986cb'%20stroke-width='3'/%3E%3Ccircle%20cx='15'%20cy='15'%20r='3'%20fill='%237986cb'/%3E%3C/svg%3E");
  --btn-anim: btn_float;
}

[data-theme="briques"] {
  --btn-deco: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Crect%20x='4'%20y='14'%20width='32'%20height='20'%20rx='3'%20fill='%23f47c6e'/%3E%3Ccircle%20cx='13'%20cy='13'%20r='4'%20fill='%23f47c6e'/%3E%3Ccircle%20cx='27'%20cy='13'%20r='4'%20fill='%23f47c6e'/%3E%3C/svg%3E");
  --btn-deco-2: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Crect%20x='4'%20y='14'%20width='32'%20height='20'%20rx='3'%20fill='%233d8bd4'/%3E%3Ccircle%20cx='13'%20cy='13'%20r='4'%20fill='%233d8bd4'/%3E%3Ccircle%20cx='27'%20cy='13'%20r='4'%20fill='%233d8bd4'/%3E%3C/svg%3E");
  --btn-anim: btn_stack;
}

[data-theme="crayons"] {
  --btn-deco: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cpath%20d='M8%2022c4-10%2018-14%2024-6s-4%2018-14%2016S6%2028%208%2022z'%20fill='%238f73c9'/%3E%3C/svg%3E");
  --btn-deco-2: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cpath%20d='M8%2022c4-10%2018-14%2024-6s-4%2018-14%2016S6%2028%208%2022z'%20fill='%23f08a4b'/%3E%3C/svg%3E");
  --btn-anim: btn_scribble;
}

[data-theme="peluche"] {
  --btn-deco: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cellipse%20cx='20'%20cy='27'%20rx='9'%20ry='8'%20fill='%23c99a6b'/%3E%3Ccircle%20cx='9'%20cy='16'%20r='4'%20fill='%23c99a6b'/%3E%3Ccircle%20cx='16'%20cy='10'%20r='4'%20fill='%23c99a6b'/%3E%3Ccircle%20cx='24'%20cy='10'%20r='4'%20fill='%23c99a6b'/%3E%3Ccircle%20cx='31'%20cy='16'%20r='4'%20fill='%23c99a6b'/%3E%3C/svg%3E");
  --btn-deco-2: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cpath%20d='M20%2034S4%2024%204%2013c0-5%204-9%208-9%204%200%207%202%208%205%201-3%204-5%208-5%204%200%208%204%208%209%200%2011-16%2021-16%2021z'%20fill='%23e38b98'/%3E%3C/svg%3E");
  --btn-anim: btn_squish;
}

[data-theme="parcours"] {
  --btn-deco: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cpath%20d='M20%205l16%2028H4z'%20fill='%23f2b705'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  --btn-deco-2: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Crect%20x='4'%20y='14'%20width='32'%20height='20'%20rx='3'%20fill='%2323a191'/%3E%3Ccircle%20cx='13'%20cy='13'%20r='4'%20fill='%2323a191'/%3E%3Ccircle%20cx='27'%20cy='13'%20r='4'%20fill='%2323a191'/%3E%3C/svg%3E");
  --btn-anim: btn_hop;
}

[data-theme="ballons"] {
  --btn-deco: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Ccircle%20cx='20'%20cy='20'%20r='15'%20fill='%234f82e3'/%3E%3Cpath%20d='M5%2020h30M20%205c7%205%207%2025%200%2030'%20stroke='%23fff'%20stroke-width='2'%20fill='none'/%3E%3C/svg%3E");
  --btn-deco-2: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Ccircle%20cx='20'%20cy='20'%20r='15'%20fill='%23ffb703'/%3E%3Cpath%20d='M5%2020h30M20%205c7%205%207%2025%200%2030'%20stroke='%23fff'%20stroke-width='2'%20fill='none'/%3E%3C/svg%3E");
  --btn-anim: btn_bounce;
}

[data-theme="equilibre"] {
  --btn-deco: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cellipse%20cx='20'%20cy='22'%20rx='14'%20ry='9'%20fill='%235fae5f'/%3E%3C/svg%3E");
  --btn-deco-2: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cellipse%20cx='20'%20cy='22'%20rx='14'%20ry='9'%20fill='%23ef8354'/%3E%3C/svg%3E");
  --btn-anim: btn_balance;
}

/* ---------- Bindings: colours hard-coded in style.css ---------- */
.hero_area .header_section {
  background-color: var(--topbar);
}

.hero_area .header_section .contact_nav_container {
  background-color: var(--topbar-strip);
}

.choice_section { background-color: var(--sec-choice); }
.citation_section { background-color: var(--sec-citation); }
.pedag_section { background-color: var(--sec-pedag); }
.mission_section { background-color: var(--sec-mission); }
.vision_section { background-color: var(--sec-vision); }
.creche_section { background-color: var(--sec-creche); }
.about_section { background-color: var(--sec-about); }

.about_section h1,
.about_section h2 {
  color: var(--about-title);
}

.info_section {
  background-color: var(--footer);
}

.info_section::before {
  background-color: var(--footer-strip);
}

.info_section .info_social a {
  color: var(--footer);
}

.pedag_section .container-fluid .box .detail-box a {
  background-color: var(--primary-dark);
}

.pedag_section .container-fluid .box .detail-box a:hover {
  background-color: var(--primary-deep);
}

.creche_section h2 {
  color: var(--primary-dark);
}

.creche_section form button {
  background-color: var(--primary-dark);
}

.gallery_note {
  color: var(--primary-deep);
}

/* seasonal decoration floating in the hero corners */
.slider_section .box::before,
.slider_section .box::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background-image: var(--hero-deco);
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: 0.9;
  animation: hero_deco_float 7s ease-in-out infinite;
}

.slider_section .box::before {
  top: 14px;
  right: 18px;
}

.slider_section .box::after {
  bottom: 10px;
  left: 42%;
  width: 80px;
  height: 80px;
  animation-delay: -3.5s;
}

@keyframes hero_deco_float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .slider_section .box::before,
  .slider_section .box::after {
    animation: none;
  }
}

@media (max-width: 767px) {
  .slider_section .box::before {
    width: 72px;
    height: 72px;
    top: 8px;
    right: 8px;
  }

  .slider_section .box::after {
    width: 56px;
    height: 56px;
    left: 10px;
    bottom: 8px;
  }
}

/* ---------- Theme-shaped "stars" around the address button ---------- */
[data-theme]:not([data-theme="defaut"]) .choice_section button [class^="star-"] svg {
  display: none;
}

[data-theme]:not([data-theme="defaut"]) .choice_section button [class^="star-"] {
  aspect-ratio: 1;
  background: var(--btn-deco) center / contain no-repeat;
}

[data-theme]:not([data-theme="defaut"]) .choice_section button .star-2,
[data-theme]:not([data-theme="defaut"]) .choice_section button .star-4,
[data-theme]:not([data-theme="defaut"]) .choice_section button .star-6 {
  background-image: var(--btn-deco-2);
}

/* the smallest stars (5-8px) are too tiny for a drawn shape */
[data-theme]:not([data-theme="defaut"]) .choice_section button .star-3,
[data-theme]:not([data-theme="defaut"]) .choice_section button .star-6 {
  width: 12px;
}

[data-theme]:not([data-theme="defaut"]) .choice_section button .star-4 {
  width: 14px;
}

/* ---------- Hover animation of the main buttons ---------- */
.hero_btn:hover,
.hero_btn:focus-visible,
.site_nav .nav-link.nav_cta:hover,
.choice_section .container-fluid .box .detail-box button:hover,
.choice_section .container-fluid .box .detail-box button:focus-visible,
.creche_section form button:hover,
.gallery_more:hover {
  animation-name: var(--btn-anim);
  animation-duration: 0.8s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero_btn:hover,
  .hero_btn:focus-visible,
  .site_nav .nav-link.nav_cta:hover,
  .choice_section .container-fluid .box .detail-box button:hover,
  .choice_section .container-fluid .box .detail-box button:focus-visible,
  .creche_section form button:hover,
  .gallery_more:hover {
    animation: none;
  }
}

/* défaut: petit "pop" */
@keyframes btn_pop {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.08); }
  70% { transform: scale(0.98); }
}

/* printemps: se balance comme une fleur */
@keyframes btn_sway {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

/* été: brille au soleil */
@keyframes btn_shine {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.05); filter: brightness(1.15); box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 35%, transparent); }
}

/* automne: tombe doucement comme une feuille */
@keyframes btn_fall {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  30% { transform: translate(-3px, 3px) rotate(-3deg); }
  60% { transform: translate(3px, 5px) rotate(2deg); }
}

/* hiver: frissonne */
@keyframes btn_shiver {
  0%, 100% { transform: translateX(0); }
  15%, 45%, 75% { transform: translateX(-2px); }
  30%, 60%, 90% { transform: translateX(2px); }
}

/* chaud: bat comme un cœur */
@keyframes btn_beat {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.1); }
  35% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* froid: flotte comme une bulle */
@keyframes btn_float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* briques: s'empile et se pose */
@keyframes btn_stack {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  35% { transform: translateY(-8px) scale(1, 1); }
  65% { transform: translateY(0) scale(1.05, 0.92); }
  80% { transform: translateY(-2px) scale(1, 1); }
}

/* crayons: petit gribouillis */
@keyframes btn_scribble {
  0%, 100% { transform: rotate(0) skewX(0); }
  20% { transform: rotate(-2deg) skewX(-3deg); }
  40% { transform: rotate(2deg) skewX(3deg); }
  60% { transform: rotate(-1deg) skewX(-2deg); }
  80% { transform: rotate(1deg) skewX(1deg); }
}

/* peluche: un câlin tout doux */
@keyframes btn_squish {
  0%, 100% { transform: scale(1, 1); }
  30% { transform: scale(1.08, 0.92); }
  60% { transform: scale(0.96, 1.05); }
}

/* parcours: saute deux obstacles */
@keyframes btn_hop {
  0%, 50%, 100% { transform: translateY(0); }
  25% { transform: translateY(-8px); }
  75% { transform: translateY(-5px); }
}

/* ballons: rebondit */
@keyframes btn_bounce {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  30% { transform: translateY(-10px) scale(0.97, 1.03); }
  55% { transform: translateY(0) scale(1.06, 0.92); }
  75% { transform: translateY(-4px) scale(1, 1); }
}

/* équilibre: cherche son équilibre */
@keyframes btn_balance {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-4deg); }
  45% { transform: rotate(3deg); }
  70% { transform: rotate(-1.5deg); }
}

/* ---------- Section decorations (visible on phones too) ----------
 * ::before  garland of the theme shapes along the top of each section
 * ::after   large faded hero decoration in the bottom corner
 */
.choice_section,
.citation_section,
.pedag_section,
.mission_section,
.vision_section,
.creche_section,
.gallery_section,
.about_section {
  position: relative;
  /* clip, not hidden: hidden would break the sticky info card of the creche page */
  overflow: clip;
}

.choice_section > *,
.citation_section > *,
.pedag_section > *,
.mission_section > *,
.vision_section > *,
.creche_section > *,
.gallery_section > *,
.about_section > * {
  position: relative;
  z-index: 1;
}

.gallery_section > dialog {
  position: fixed;
}

.choice_section::before,
.citation_section::before,
.pedag_section::before,
.mission_section::before,
.vision_section::before,
.creche_section::before,
.gallery_section::before,
.about_section::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 26px;
  /* each 40px shape is drawn centred in an 84px tile; the second set is shifted by half a tile */
  background-image: var(--btn-deco), var(--btn-deco-2);
  background-size: 84px 22px, 84px 22px;
  background-position: 0 50%, 42px 50%;
  background-repeat: repeat-x;
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
  animation: deco_sway 6s ease-in-out infinite;
}

.choice_section::after,
.citation_section::after,
.pedag_section::after,
.mission_section::after,
.vision_section::after,
.creche_section::after,
.gallery_section::after,
.about_section::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 130px;
  height: 130px;
  background: var(--hero-deco) center / contain no-repeat;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-12deg);
}

/* alternate the corner so the page does not look repetitive */
.citation_section::after,
.mission_section::after,
.gallery_section::after {
  right: auto;
  left: -10px;
  transform: rotate(12deg);
}

@keyframes deco_sway {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

@media (max-width: 767px) {
  .choice_section::before,
  .citation_section::before,
  .pedag_section::before,
  .mission_section::before,
  .vision_section::before,
  .creche_section::before,
  .gallery_section::before,
  .about_section::before {
    top: 6px;
    height: 22px;
    background-size: 64px 20px, 64px 20px;
    background-position: 0 50%, 32px 50%;
    opacity: 0.85;
  }

  .choice_section::after,
  .citation_section::after,
  .pedag_section::after,
  .mission_section::after,
  .vision_section::after,
  .creche_section::after,
  .gallery_section::after,
  .about_section::after {
    width: 90px;
    height: 90px;
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .choice_section::before,
  .citation_section::before,
  .pedag_section::before,
  .mission_section::before,
  .vision_section::before,
  .creche_section::before,
  .gallery_section::before,
  .about_section::before {
    animation: none;
  }
}

/* ---------- Theme picker (local development only) ---------- */
.theme_picker {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  font-family: "Poppins", sans-serif;
}

.theme_picker_toggle,
.theme_picker_toggle:hover {
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--primary-dark);
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.theme_picker_panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.theme_picker_panel[hidden] {
  display: none;
}

.theme_picker_panel p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #555555;
}

.theme_picker_panel code {
  font-size: 12px;
}

.theme_picker_panel .theme_picker_current {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f7f7f7;
}

.theme_picker_reset,
.theme_picker_reset:hover {
  display: block;
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px solid #cccccc;
  border-radius: 999px;
  background: #ffffff;
  color: #333333;
  font-size: 12px;
  box-shadow: none;
}

.theme_picker_list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.theme_picker_panel .theme_picker_family {
  margin: 12px 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888888;
}

.theme_picker_option,
.theme_picker_option:hover {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #f7f7f7;
  color: #333333;
  font-size: 14px;
  text-align: left;
  box-shadow: none;
}

.theme_picker_option.active {
  border-color: #333333;
  background: #ffffff;
}

.theme_picker_swatch {
  display: inline-flex;
  flex: 0 0 auto;
}

.theme_picker_swatch span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-left: -4px;
  box-shadow: 0 0 0 2px #ffffff;
}

.theme_picker_swatch span:first-child {
  margin-left: 0;
}
