/*
Theme Name: Un Arc en Ciel pour Clara
Theme URI: https://unarcencielpourclara.org/
Author: Lucas
Description: Thème de l'association « Un Arc en Ciel pour Clara » : page d'accueil unique, calendrier, ventes solidaires, dons, galerie et partenaires, modifiables depuis l'administration par les bénévoles.
Version: 1.0.5
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arc-en-ciel-clara
*/

/* =====================================================================
   Styles issus de la maquette validée
   ===================================================================== */
body{margin:0;font-family:ui-rounded,"Nunito","Quicksand","Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;color:#3a2f4b;background:#fff9f1;line-height:1.65;font-size:17px;-webkit-font-smoothing:antialiased}
a{color:#9775fa;text-underline-offset:3px}
a:hover{color:#ff6b6b}
h1,h2,h3{line-height:1.2;margin:0;font-weight:800;letter-spacing:-.01em}
p{margin:0 0 1em}
.marquee{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);padding:16px 0 22px}
.marquee-track{display:flex;width:max-content;animation:defile 66s linear infinite}
.marquee:hover .marquee-track{animation-play-state:paused}
@keyframes defile{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.marquee-track{animation:none}.marquee{overflow-x:auto}}
.car-btn{cursor:pointer}
.polaroids{display:grid;grid-template-columns:repeat(3,1fr);gap:40px 30px;padding:10px 0}
@media (max-width:700px){.polaroids{grid-template-columns:repeat(2,1fr);gap:30px 16px}.polaroids .pola:last-child:nth-child(odd){grid-column:1/-1;width:calc(50% - 8px);margin:0 auto}}
.gal-sub{font-size:24px;margin:0 0 22px;text-align:center;color:#3a2f4b}
.vids{display:flex;justify-content:center;gap:32px;margin:0 0 56px}
.vid{flex:0 1 340px;min-width:0;margin:0}
.vid-box{position:relative;aspect-ratio:9/16;border-radius:22px;overflow:hidden;background:#000;box-shadow:0 14px 34px rgba(120,90,160,.3);border:4px solid #ffffff}
.vid-box video{display:block;width:100%;height:100%;object-fit:cover}
.vid-play{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;border:0;padding:0;font-family:inherit;background:linear-gradient(180deg,rgba(40,30,60,.05),rgba(40,30,60,.45));cursor:pointer}
.vid-disc{width:78px;height:78px;border-radius:50%;background:#ffffff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 0 #3a2f4b;border:4px solid #3a2f4b;box-sizing:border-box;transition:transform .2s ease}
.vid-play:hover .vid-disc{transform:scale(1.08)}
.vid-lbl{padding:6px 16px;border-radius:999px;background:#ffd43b;border:3px solid #3a2f4b;font-weight:800;font-size:15px;color:#3a2f4b}
.vid-badge{position:absolute;top:12px;left:12px;padding:4px 12px;border-radius:999px;background:#ff6b6b;color:#ffffff;font-weight:800;font-size:13px;letter-spacing:.03em;pointer-events:none}
.vid-cap{padding:12px 6px 0;text-align:center;font-weight:800;font-size:16px;color:#3a2f4b}
@media (max-width:600px){.vids{gap:14px}.vid-disc{width:54px;height:54px}.vid-lbl{font-size:12px;padding:4px 10px}.vid-box{border-width:3px;border-radius:16px}}
.pola{position:relative;margin:0;background:#ffffff;padding:12px 12px 0;border-radius:6px;box-shadow:0 12px 26px rgba(120,90,160,.2);transition:transform .25s ease,box-shadow .25s ease}
.pola:nth-child(odd){transform:rotate(-1.8deg)}
.pola:nth-child(even){transform:rotate(1.5deg)}
.pola:hover{transform:rotate(0deg) scale(1.03);box-shadow:0 16px 34px rgba(120,90,160,.28)}
.pola:before{content:"";position:absolute;top:-12px;left:50%;width:74px;height:24px;margin-left:-37px;border-radius:3px;opacity:.85;transform:rotate(-3deg);background:#ffd43b}
.pola:nth-child(6n+2):before{background:#ff8e8e;transform:rotate(3deg)}
.pola:nth-child(6n+3):before{background:#74c0fc}
.pola:nth-child(6n+4):before{background:#8ce99a;transform:rotate(4deg)}
.pola:nth-child(6n+5):before{background:#b197fc}
.pola:nth-child(6n):before{background:#ffc078;transform:rotate(2deg)}
.pola-photo{aspect-ratio:3/4;overflow:hidden;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#f6e9d4;border-radius:2px;font-weight:800;color:#6b5f7d;text-align:center}
.pola-cap{padding:12px 6px 16px;text-align:center;font-weight:800;font-size:15px;color:#3a2f4b}
.pola-cap span{display:block;margin-top:2px;font-weight:600;font-size:13px;color:#6b5f7d}
.pola-photo img{display:block;width:100%;height:100%;object-fit:cover}
.don-card{background:#ffffff;border-radius:22px;padding:24px 22px 22px;color:#3a2f4b;box-shadow:0 10px 30px rgba(58,47,75,.18);display:flex;flex-direction:column;align-items:center;text-align:center}
.don-title{font-size:20px;margin:0 0 18px;line-height:1.2}
.don-qr{width:172px;height:172px;flex:none;margin:0 0 22px;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.don-qr img{display:block;width:100%;height:100%;object-fit:contain}
.don-btn{display:inline-flex;align-items:center;justify-content:center;min-width:200px;padding:14px 24px;margin:0 0 24px;border-radius:999px;border:3px solid #3a2f4b;box-shadow:0 5px 0 #3a2f4b;box-sizing:border-box;font-family:inherit;font-weight:800;font-size:16px;line-height:1.2;color:#3a2f4b;text-decoration:none;cursor:pointer}
.don-btn:hover{transform:translateY(2px);box-shadow:0 3px 0 #3a2f4b;color:#3a2f4b}
.legal{margin-top:6px}
.legal summary{display:inline-block;cursor:pointer;list-style:none;color:#ffd43b;font-size:13px;text-decoration:underline}
.legal summary::-webkit-details-marker{display:none}
.legal summary::after{content:"\00a0\25BE";text-decoration:none;display:inline-block;font-size:11px}
.legal[open] summary::after{content:"\00a0\25B4"}
.legal p{margin:8px 0 0;font-size:12.5px;line-height:1.55;opacity:.85;max-width:48em}
.legal a{color:#ffd43b}
.foot-grid{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:28px 48px;margin-bottom:32px}
.foot-brand{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px}
.foot-rainbow{order:-1}
.foot-rainbow svg{display:block;width:200px;max-width:100%;height:auto}
.foot-title{margin:0 0 8px;font-size:17px;line-height:1.3;color:#ffffff}
.foot-text p{margin:0;max-width:15em}
.foot-links{display:flex;flex-wrap:wrap;gap:24px 40px}
.don-txt{margin:0;font-size:15px;line-height:1.6;color:#6b5f7d}
.don-extra{width:100%;box-sizing:border-box;margin-top:16px;padding-top:12px;border-top:2px dashed rgba(58,47,75,.15);font-size:13px;line-height:1.55;color:#4a3f5c}
.aide-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:22px}
.aide-card{display:flex;flex-direction:column;background:#ffffff;border-radius:22px;padding:27px;box-shadow:0 10px 30px rgba(120,90,160,.12)}
.aide-ico{width:58px;height:58px;border-radius:18px;display:flex;align-items:center;justify-content:center;margin-bottom:16px;flex:none}
.aide-card h3{font-size:21px;margin-bottom:12px}
.aide-card p{font-size:16px;line-height:1.6;color:#4a3f5c;margin:0 0 12px}
.aide-badge{align-self:flex-start;display:inline-flex;align-items:baseline;gap:8px;background:#fff3c4;border:2px solid #3a2f4b;border-radius:999px;padding:6px 18px;margin-bottom:16px;font-weight:800;font-size:16px;color:#3a2f4b}
.aide-badge b{font-size:26px;line-height:1.1;color:#e8504f}
.aide-text{flex:1;margin-bottom:18px}
.aide-text p:last-child{margin-bottom:0}
.aide-bottom{margin-top:auto}
.aide-op{margin-top:auto;padding-top:16px;border-top:2px dashed rgba(58,47,75,.15)}
.aide-op .aide-btn{display:flex;justify-content:center;width:100%;box-sizing:border-box}
.aide-when{display:flex;flex-direction:column;gap:3px;margin:0 0 16px;padding:12px 16px;border-radius:16px;background:#fff6dc;border:2px solid #3a2f4b}
.aide-when-lbl{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:#6b5f7d}
.aide-when-row{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.aide-when-row b{font-size:21px;line-height:1.25;color:#3a2f4b}
.aide-when-sub{font-size:14px;color:#4a3f5c}
.aide-count{display:inline-block;padding:2px 11px;border-radius:999px;background:#ff6b6b;color:#ffffff;font-size:13px;font-weight:800;line-height:1.5}
.aide-facts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:11px}
.aide-card .aide-facts li,.aide-card .aide-pay{display:flex;gap:10px;align-items:flex-start;margin:0;font-size:16px;line-height:1.5;color:#3a2f4b}
.aide-card .aide-facts + .aide-pay{margin-top:11px}
.aide-card .aide-facts li:before,.aide-card .aide-pay:before{content:"✓";flex:none;width:22px;height:22px;margin-top:1px;border-radius:50%;background:#e1f8e5;color:#1f7a35;font-weight:800;font-size:13px;line-height:22px;text-align:center}
.how-grid{display:grid;grid-template-columns:minmax(220px,380px) minmax(0,1fr);gap:32px;align-items:center}
.how-grid img{display:block;width:100%;height:auto;border-radius:16px;box-shadow:0 6px 18px rgba(58,47,75,.18)}
@media (max-width:820px){.how-grid{grid-template-columns:1fr}.how-grid img{max-width:360px;margin:0 auto}}
.aide-btn{display:inline-flex;align-items:center;gap:8px;padding:13px 24px;border-radius:999px;font-weight:800;text-decoration:none;border:3px solid #3a2f4b;background:#ffd43b;color:#3a2f4b;box-shadow:0 5px 0 #3a2f4b;font-size:16px}
.aide-btn.alt{background:#ffffff}
.aide-btn:hover{color:#3a2f4b;transform:translateY(2px)}
.don-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:stretch;max-width:780px;margin:0 auto}
html{scroll-behavior:smooth}
[id]{scroll-margin-top:14px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media (max-width:820px){.don-row{grid-template-columns:1fr;max-width:380px;margin:0 auto}}

/* =====================================================================
   Ajouts propres au thème WordPress
   ===================================================================== */
.skip-link{position:absolute;left:-9999px;top:0;z-index:2000;background:#ffffff;color:#3a2f4b;padding:10px 16px;border-radius:0 0 12px 0;font-weight:800}
.skip-link:focus{left:0}
:focus-visible{outline:3px solid #9775fa;outline-offset:3px}
.site{width:100%;background:#fff9f1}
.wrap{width:min(1080px,92%);margin:0 auto}
.wrap-m{width:min(820px,92%);margin:0 auto}
.sec{padding:68px 0}
.sec-tete{text-align:center;max-width:640px;margin:0 auto 38px}
.sec-titre{font-size:clamp(28px,4vw,37px)}
.sec-titre-p{margin-bottom:12px}
.sec-sous{color:#6b5f7d;margin:0}
.titre-arc{display:inline-block;padding-bottom:6px;background-image:linear-gradient(90deg,#ff6b6b,#ffa94d,#ffd43b,#69db7c,#4dabf7,#9775fa);background-repeat:no-repeat;background-position:0 100%;background-size:100% 6px}
.carte{background:#ffffff;border-radius:22px;padding:27px;box-shadow:0 10px 30px rgba(120,90,160,.12)}

/* En-tête */
.entete{background:#fff9f1;border-bottom:1px solid rgba(58,47,75,.08)}
.entete-in{width:min(1080px,92%);margin:0 auto;padding:11px 0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
.marque,.marque:hover{display:flex;align-items:center;gap:10px;font-weight:800;color:#3a2f4b;text-decoration:none;font-size:17px}
.nav{display:flex;flex-wrap:wrap;gap:3px}
.nav a{display:block;padding:7px 13px;border-radius:999px;color:#3a2f4b;text-decoration:none;font-weight:700;font-size:15px}
.nav a:hover{background:#ffe9ec;color:#3a2f4b}
.entete-arc{height:4px;background:linear-gradient(90deg,#ff6b6b,#ffa94d,#ffd43b,#69db7c,#4dabf7,#9775fa)}

/* Boutons */
.btn,.btn:hover{display:inline-flex;align-items:center;padding:14px 24px;border-radius:999px;font-weight:800;text-decoration:none;border:3px solid #3a2f4b;box-shadow:0 5px 0 #3a2f4b;font-size:16px;font-family:inherit;line-height:1.65;cursor:pointer}
.btn-rouge,.btn-rouge:hover{background:#ff6b6b;color:#ffffff}
.btn-blanc,.btn-blanc:hover{background:#ffffff;color:#3a2f4b}
.btn-jaune,.btn-jaune:hover{background:#ffd43b;color:#3a2f4b}
.btn:hover{transform:translateY(2px);box-shadow:0 3px 0 #3a2f4b}

/* Textes modifiables (pages « histoire » et « remerciements ») */
.texte-riche h2,.texte-riche h3{font-size:22px;margin:30px 0 14px}
.texte-riche>h2:first-child,.texte-riche>h3:first-child{margin-top:0}
.texte-riche ul,.texte-riche ol{margin:0 0 1em;padding-left:22px}
.texte-riche li{margin-bottom:8px}
.texte-riche li:last-child{margin-bottom:0}
#merci .texte-riche li{margin-bottom:6px}
#merci .texte-riche li:last-child{margin-bottom:0}
.texte-riche img{max-width:100%;height:auto;border-radius:12px}
.texte-riche figure{margin:0 0 1em}
.texte-riche .alignleft{float:left;margin:0 1em 1em 0}
.texte-riche .alignright{float:right;margin:0 0 1em 1em}
.texte-riche .aligncenter{display:block;margin-left:auto;margin-right:auto}
.texte-riche blockquote{margin:0 0 1em;padding:6px 0 6px 18px;border-left:6px solid #9775fa}
.js .histoire-suite:not(.is-open){display:none}
.histoire-suite>*:last-child{margin-bottom:1em}

/* Carrousel */
.car-cadre{overflow:hidden;border-radius:28px;border:6px solid #ffffff;box-shadow:0 10px 30px rgba(120,90,160,.12);background:#ffffff}
.car-piste{display:flex;transition:transform .5s ease}
.car-slide{flex:0 0 100%;min-width:0;margin:0}
.car-vue{position:relative;aspect-ratio:5/4;max-height:82vh;overflow:hidden;background:#f6e9d4}
.car-flou{position:absolute;top:-24px;left:-24px;width:calc(100% + 48px);height:calc(100% + 48px);object-fit:cover;filter:blur(22px);opacity:.9}
.car-photo{position:relative;display:block;width:100%;height:100%;object-fit:contain}
.car-pos{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);padding:4px 14px;border-radius:999px;background:rgba(58,47,75,.78);color:#ffffff;font-size:13px;font-weight:700;white-space:nowrap}
.car-nav{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:20px}
.car-fleche{width:48px;height:48px;border-radius:50%;border:3px solid #3a2f4b;background:#ffffff;box-shadow:0 4px 0 #3a2f4b;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer}
.car-points{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:center}
.car-dot{width:14px;height:14px;padding:0;border-radius:50%;border:2px solid #3a2f4b;background:#ffffff;cursor:pointer}
.car-dot.is-active{background:#ff6b6b}
@media (prefers-reduced-motion:reduce){.car-piste{transition:none}}

/* Calendrier */
.ev{display:flex;gap:19px;align-items:flex-start;background:#ffffff;padding:19px 22px;border-radius:22px;box-shadow:0 10px 30px rgba(120,90,160,.12);margin-bottom:16px}
.ev-pastille{flex:none;width:96px;box-sizing:border-box;text-align:center;border-radius:16px;border:3px solid #3a2f4b;font-weight:800;line-height:1.15;padding:8px 4px}
.ev-pastille b{display:block;font-size:26px}
.ev-pastille.longue b{font-size:16px}
.ev-corps{min-width:0}
.ev-corps h3{font-size:20px;margin-bottom:4px}
.ev-corps p{margin:0 0 4px}
.ev-corps .ev-info{margin:0;color:#6b5f7d}

/* Dons : troisième carte facultative (HelloAsso) */
.don-row.don-row-3{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1080px}
@media (max-width:980px){.don-row.don-row-3{grid-template-columns:1fr;max-width:380px}}
.don-qr svg{display:block;width:96px;height:96px}

/* Partenaires */
.part{flex:none;width:224px;height:112px;margin-right:20px;border-radius:20px;overflow:hidden;background:#ffffff;border:2px solid rgba(58,47,75,.1);box-shadow:0 6px 16px rgba(58,47,75,.1);box-sizing:border-box}
.part img{display:block;width:100%;height:100%;object-fit:cover}
.part-nom{display:flex;align-items:center;justify-content:center;text-align:center;font-weight:800;font-size:15px;line-height:1.25;color:#3a2f4b;padding:14px}

/* Coordonnées */
.contact-liste{list-style:none;padding:0;margin:18px 0 0}
.contact-liste li{display:flex;gap:10px;align-items:flex-start;margin-bottom:8px}
.contact-liste li:last-child{margin-bottom:0}
.contact-liste svg{flex:none;margin-top:5px}

/* Visionneuse (bons de commande et affiches) */
.visio{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;background:rgba(40,30,60,.78);overflow:auto;padding:24px 14px}
.visio[hidden]{display:none}
.visio-boite{width:min(860px,100%);margin:0 auto;background:#ffffff;border-radius:22px;box-shadow:0 20px 60px rgba(0,0,0,.4);overflow:hidden}
.visio-barre{position:sticky;top:0;z-index:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;background:#fff3c4;border-bottom:3px solid #3a2f4b}
.visio-titre{font-size:18px;color:#3a2f4b}
.visio-actions{display:flex;gap:10px;flex-wrap:wrap}
.visio .aide-btn{padding:9px 18px;font-size:15px;font-family:inherit;cursor:pointer}
.visio-pages{padding:18px;display:flex;flex-direction:column;gap:16px;background:#f3eefb}
.visio-pages img{display:block;width:100%;height:auto;margin:0 auto;border-radius:8px;box-shadow:0 4px 16px rgba(58,47,75,.2);background:#ffffff}
.visio-pages.est-image img{width:auto;max-width:100%;max-height:78vh}
body.visio-ouverte{overflow:hidden}

/* Pages ordinaires (anciens articles, 404…) */
.page-corps{padding:56px 0 72px}
.page-corps h1{font-size:clamp(30px,5vw,44px);margin-bottom:22px}
.page-corps .texte-riche h2{font-size:26px}
.page-corps .texte-riche h3{font-size:22px}
.page-meta{color:#6b5f7d;font-size:15px;margin:-10px 0 22px}
.liste-articles{list-style:none;margin:0;padding:0}
.liste-articles li{background:#ffffff;border-radius:18px;padding:16px 20px;margin-bottom:12px;box-shadow:0 6px 18px rgba(120,90,160,.1)}
.liste-articles a{font-weight:800;font-size:18px}
.pagination{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.pagination a,.pagination span{padding:6px 14px;border-radius:999px;border:2px solid #3a2f4b;text-decoration:none;font-weight:700;color:#3a2f4b}
.pagination .current{background:#ffd43b}
