:root {
  --c-principal: #e8553e;
  --c-principal-fonce: #c43f2a;
  --c-sarcelle: #12808a;
  --c-sarcelle-fonce: #0b5f67;
  --c-soleil: #f6b23c;
  --c-marine: #1d2b4f;
  --c-texte: #26304a;
  --c-doux: #5d6680;
  --c-fond: #fffaf5;
  --c-fond-doux: #fdf0e6;
  --c-carte: #ffffff;
  --c-bordure: #efe3d8;
  --rayon: 18px;
  --ombre: 0 6px 24px rgba(29, 43, 79, .07);
  --bs-body-font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

html.grand-texte {
  font-size: 19px;
}

body {
  font-family: var(--bs-body-font-family);
  color: var(--c-texte);
  background: var(--c-fond);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--c-marine);
  font-weight: 800;
}

a {
  color: var(--c-sarcelle-fonce);
}

a:hover {
  color: var(--c-principal-fonce);
}

:focus-visible {
  outline: 3px solid var(--c-soleil);
  outline-offset: 2px;
}

.lien-evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--c-marine);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 8px 8px;
}

.lien-evitement:focus {
  left: 1rem;
  color: #fff;
}

.barre-haut {
  background: var(--c-marine);
  color: #dfe5f3;
  font-size: .85rem;
  padding: .35rem 0;
}

.barre-haut i {
  color: var(--c-soleil);
}

.btn-barre {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: .15rem .75rem;
  font-weight: 700;
}

.btn-barre:hover, .btn-barre[aria-pressed="true"] {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.entete {
  background: rgba(255, 250, 245, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-bordure);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.logo-icone {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--c-principal), var(--c-soleil));
  color: #fff;
  font-size: 1.3rem;
  transform: rotate(-6deg);
}

.logo-icone.grand {
  width: 64px;
  height: 64px;
  font-size: 2rem;
}

.logo-texte {
  font-size: 1.25rem;
  color: var(--c-marine);
  font-weight: 600;
  line-height: 1;
}

.logo-texte strong {
  color: var(--c-principal);
  font-weight: 800;
}

.navbar-toggler {
  border: none;
  color: var(--c-marine);
}

.navbar .nav-link {
  color: var(--c-marine);
  font-weight: 700;
  padding: .5rem .8rem !important;
  border-radius: 10px;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
  color: var(--c-principal-fonce);
  background: var(--c-fond-doux);
}

.dropdown-menu {
  border: 1px solid var(--c-bordure);
  border-radius: 14px;
  box-shadow: var(--ombre);
  padding: .5rem;
}

.dropdown-item {
  border-radius: 8px;
  padding: .5rem .8rem;
  font-weight: 600;
}

.dropdown-item:active {
  background: var(--c-principal);
}

.btn {
  font-weight: 700;
  border-radius: 999px;
  padding: .55rem 1.3rem;
}

.btn-lg {
  padding: .8rem 1.7rem;
}

.btn-sm {
  padding: .25rem .8rem;
}

.btn-principal {
  background: var(--c-principal);
  border-color: var(--c-principal);
  color: #fff;
}

.btn-principal:hover, .btn-principal:focus {
  background: var(--c-principal-fonce);
  border-color: var(--c-principal-fonce);
  color: #fff;
}

.btn-contour {
  border: 2px solid var(--c-marine);
  color: var(--c-marine);
  background: transparent;
}

.btn-contour:hover {
  background: var(--c-marine);
  color: #fff;
}

.btn-don {
  background: var(--c-sarcelle);
  color: #fff;
  border: none;
}

.btn-don:hover {
  background: var(--c-sarcelle-fonce);
  color: #fff;
}

.btn-accent {
  background: var(--c-soleil);
  color: var(--c-marine);
  border: none;
  border-radius: 0 999px 999px 0;
}

.btn-accent:hover {
  background: #e9a01f;
}

.btn-blanc {
  background: #fff;
  color: var(--c-principal-fonce);
  border: none;
}

.btn-blanc:hover {
  background: var(--c-fond-doux);
  color: var(--c-principal-fonce);
}

.btn-choix {
  border: 2px solid var(--c-bordure);
  background: #fff;
  color: var(--c-texte);
  border-radius: 12px;
  font-weight: 600;
}

.btn-choix i {
  opacity: 0;
  color: var(--c-principal);
}

.btn-check:checked + .btn-choix, .btn-choix.active {
  border-color: var(--c-principal);
  background: #fff1ec;
  color: var(--c-principal-fonce);
}

.btn-check:checked + .btn-choix i {
  opacity: 1;
}

.btn-check:focus-visible + .btn-choix {
  outline: 3px solid var(--c-soleil);
}

.text-accent {
  color: var(--c-principal);
}

.surtitre {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-principal-fonce);
}

.titre-section {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.section {
  padding: 4.5rem 0;
}

.section-douce {
  background: var(--c-fond-doux);
}

.meta {
  color: var(--c-doux);
}

.carte {
  background: var(--c-carte);
  border: 1px solid var(--c-bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

.lien-carte {
  color: inherit;
  text-decoration: none;
}

.lien-carte::after {
  content: "";
  position: absolute;
  inset: 0;
}

.lien-carte:hover {
  color: var(--c-principal-fonce);
}

.lien-fleche {
  font-weight: 800;
  color: var(--c-principal-fonce);
  text-decoration: none;
}

.lien-fleche i {
  transition: transform .2s;
  display: inline-block;
}

.lien-fleche:hover i, .carte:hover .lien-fleche i {
  transform: translateX(4px);
}

.lien-bloc {
  text-decoration: none;
  color: var(--c-texte);
  transition: transform .2s;
}

.lien-bloc:hover {
  transform: translateY(-2px);
  color: var(--c-principal-fonce);
}

.pastille {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: var(--c-fond-doux);
  color: var(--c-marine);
}

.pastille-claire {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.heros {
  padding: 5rem 0 4rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(246, 178, 60, .25), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(18, 128, 138, .15), transparent 40%),
    var(--c-fond);
}

.heros h1 {
  color: var(--c-marine);
  line-height: 1.1;
}

.heros-visuel {
  position: relative;
  height: 380px;
}

.bulle {
  position: absolute;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 16px 40px rgba(29, 43, 79, .15);
  animation: flotter 6s ease-in-out infinite;
}

.bulle.b1 { width: 170px; height: 170px; background: var(--c-principal); font-size: 4rem; top: 20px; left: 30px; }
.bulle.b2 { width: 140px; height: 140px; background: var(--c-sarcelle); font-size: 3.2rem; top: 0; right: 30px; animation-delay: -2s; }
.bulle.b3 { width: 150px; height: 150px; background: var(--c-soleil); font-size: 3.4rem; bottom: 10px; right: 80px; animation-delay: -4s; }
.bulle.b4 { width: 100px; height: 100px; background: var(--c-marine); font-size: 2.2rem; bottom: 40px; left: 60px; animation-delay: -1s; }
.bulle.b5 { width: 70px; height: 70px; background: #8ac926; font-size: 1.6rem; top: 170px; left: 210px; animation-delay: -3s; }

@keyframes flotter {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .bulle { animation: none; }
  html { scroll-behavior: auto; }
}

.chiffres {
  background: var(--c-marine);
  color: #fff;
  padding: 2.2rem 0;
}

.chiffres strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--c-soleil);
  line-height: 1.1;
}

.chiffres span {
  font-size: .95rem;
  color: #dfe5f3;
}

.valeur {
  border-radius: var(--rayon);
  padding: 1.5rem;
  height: 100%;
  color: #fff;
}

.valeur i {
  font-size: 2rem;
}

.valeur h3 {
  color: #fff;
  margin: .6rem 0 .2rem;
  font-size: 1.1rem;
}

.valeur p {
  margin: 0;
  opacity: .9;
}

.valeur.v1 { background: var(--c-principal); }
.valeur.v2 { background: var(--c-sarcelle); }
.valeur.v3 { background: var(--c-soleil); color: var(--c-marine); }
.valeur.v3 h3 { color: var(--c-marine); }
.valeur.v4 { background: var(--c-marine); }

.service {
  padding: 1.8rem;
  transition: transform .2s, box-shadow .2s;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(29, 43, 79, .12);
}

.service-icone {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  font-size: 1.5rem;
  background: #fff1ec;
  color: var(--c-principal);
  margin-bottom: 1rem;
}

.carte-activite {
  position: relative;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--c-carte);
  border: 1px solid var(--c-bordure);
  border-left: 6px solid var(--cat, var(--c-principal));
  border-radius: var(--rayon);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--ombre);
  transition: transform .2s;
}

.carte-activite:hover {
  transform: translateX(4px);
}

.carte-activite .pastille {
  background: color-mix(in srgb, var(--cat) 14%, white);
  color: color-mix(in srgb, var(--cat) 75%, black);
}

.date-bloc {
  flex: 0 0 70px;
  text-align: center;
  border-radius: 14px;
  background: var(--c-fond-doux);
  padding: .5rem 0;
}

.date-bloc .jour {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--c-marine);
  line-height: 1;
}

.date-bloc .mois {
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 800;
  color: var(--c-principal-fonce);
}

.badge-places {
  background: var(--c-soleil);
  color: var(--c-marine);
}

.cat-benevolat { --cat: #e8553e; }
.cat-atelier { --cat: #12808a; }
.cat-evenement { --cat: #7b4fbf; }
.cat-campagne { --cat: #d98a00; }
.cat-solidarite { --cat: #2f8f3a; }

.carte-article {
  position: relative;
  overflow: hidden;
  transition: transform .2s;
}

.carte-article:hover {
  transform: translateY(-4px);
}

.carte-article-bandeau {
  height: 110px;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  color: rgba(255, 255, 255, .9);
  background: linear-gradient(135deg, var(--c-sarcelle), var(--c-marine));
}

.col-md-4:nth-child(3n+2) .carte-article-bandeau, .col-lg-4:nth-child(3n+2) .carte-article-bandeau {
  background: linear-gradient(135deg, var(--c-principal), var(--c-soleil));
}

.col-md-4:nth-child(3n) .carte-article-bandeau, .col-lg-4:nth-child(3n) .carte-article-bandeau {
  background: linear-gradient(135deg, #7b4fbf, var(--c-principal));
}

.appel-action {
  background: linear-gradient(120deg, var(--c-principal), #f07b42);
  color: #fff;
  border-radius: 28px;
  padding: 3rem;
}

.appel-action h2 {
  color: #fff;
}

.entete-page {
  background:
    radial-gradient(circle at 90% 0%, rgba(246, 178, 60, .35), transparent 45%),
    linear-gradient(120deg, var(--c-marine), #2d3f6e);
  color: #e6ebf7;
  padding: 3.5rem 0 3rem;
}

.entete-page h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.entete-page .lead {
  max-width: 720px;
}

.entete-page-icone {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  font-size: 1.6rem;
  background: var(--c-principal);
  color: #fff;
  margin-bottom: 1rem;
  transform: rotate(-6deg);
}

.lien-retour {
  color: var(--c-soleil);
  font-weight: 700;
  text-decoration: none;
}

.lien-retour:hover {
  color: #fff;
}

.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.filtre {
  padding: .4rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--c-bordure);
  background: #fff;
  color: var(--c-texte);
  font-weight: 700;
  text-decoration: none;
  font-size: .9rem;
}

.filtre:hover {
  border-color: var(--c-principal);
  color: var(--c-principal-fonce);
}

.filtre.actif {
  background: var(--c-marine);
  border-color: var(--c-marine);
  color: #fff;
}

.calendrier {
  background: #fff;
  border: 1px solid var(--c-bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
}

.cal-ligne {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-entete div {
  background: var(--c-marine);
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: .6rem;
  text-transform: capitalize;
}

.cal-case {
  min-height: 120px;
  border-right: 1px solid var(--c-bordure);
  border-bottom: 1px solid var(--c-bordure);
  padding: .4rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
}

.cal-case:nth-child(7n) {
  border-right: none;
}

.cal-case.hors-mois {
  background: #faf6f2;
  color: #b3b0ab;
}

.cal-case.aujourdhui {
  background: #fff6e5;
}

.cal-case.aujourdhui .cal-num {
  background: var(--c-principal);
  color: #fff;
}

.cal-num {
  font-weight: 800;
  font-size: .9rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.cal-evenement {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .45rem;
  border-radius: 6px;
  text-decoration: none;
  background: color-mix(in srgb, var(--cat) 14%, white);
  color: color-mix(in srgb, var(--cat) 70%, black);
  border-left: 3px solid var(--cat);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-evenement:hover {
  background: var(--cat);
  color: #fff;
}

.cal-evenement span {
  opacity: .8;
}

.mois-titre {
  min-width: 200px;
  text-align: center;
}

.legende {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .9rem;
}

.legende-item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.pastille-couleur {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--cat);
}

.infos-activite li {
  display: flex;
  gap: .8rem;
  align-items: center;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--c-bordure);
  font-weight: 600;
}

.infos-activite i {
  color: var(--c-principal);
  font-size: 1.2rem;
}

.texte-long p {
  font-size: 1.05rem;
}

.formulaire-carte .form-control, .formulaire-carte .form-select {
  border-radius: 12px;
  border: 2px solid var(--c-bordure);
  padding: .65rem .9rem;
}

.formulaire-carte .form-control:focus, .formulaire-carte .form-select:focus {
  border-color: var(--c-sarcelle);
  box-shadow: 0 0 0 .2rem rgba(18, 128, 138, .15);
}

.form-label {
  font-weight: 700;
  color: var(--c-marine);
}

legend {
  color: var(--c-marine);
  font-weight: 800;
}

.input-validation-error {
  border-color: #d63939 !important;
}

.liste-verifiee {
  list-style: none;
  padding: 0;
  margin: 0;
}

.liste-verifiee li {
  padding: .35rem 0 .35rem 1.8rem;
  position: relative;
}

.liste-verifiee li::before {
  content: "\F26E";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  color: var(--c-sarcelle);
  font-weight: bold;
}

.liste-etapes {
  padding-left: 1.2rem;
  margin: 0;
}

.liste-etapes li {
  padding: .3rem 0;
}

.etape {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--c-principal);
  color: #fff;
  margin-bottom: 1rem;
}

.etapes .col-md-4:nth-child(2) .etape { background: var(--c-sarcelle); }
.etapes .col-md-4:nth-child(3) .etape { background: var(--c-soleil); color: var(--c-marine); }

.faq {
  max-width: 800px;
}

.faq .accordion-item {
  border: 1px solid var(--c-bordure);
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: .8rem;
}

.faq .accordion-button {
  font-weight: 700;
  color: var(--c-marine);
}

.faq .accordion-button:not(.collapsed) {
  background: var(--c-fond-doux);
  color: var(--c-principal-fonce);
  box-shadow: none;
}

.membre {
  padding: 1.6rem 1rem;
}

.avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .9rem;
}

.avatar.av0 { background: var(--c-principal); }
.avatar.av1 { background: var(--c-sarcelle); }
.avatar.av2 { background: var(--c-soleil); color: var(--c-marine); }
.avatar.av3 { background: #7b4fbf; }

.partenaire {
  padding: 1.6rem;
}

.niveau-or { border-top: 5px solid #d4a017; }
.niveau-argent { border-top: 5px solid #a7adb7; }
.niveau-bronze { border-top: 5px solid #b87333; }

.initiative {
  padding: 1.8rem;
}

.impact {
  font-weight: 800;
  color: var(--c-sarcelle-fonce);
  background: #e7f5f6;
  border-radius: 12px;
  padding: .6rem .9rem;
}

.coordonnees li {
  display: flex;
  gap: .9rem;
  padding: .6rem 0;
}

.coordonnees i {
  color: var(--c-principal);
  font-size: 1.2rem;
}

.acces li {
  padding: .35rem 0;
}

.acces i {
  color: var(--c-sarcelle);
  margin-right: .4rem;
}

.carte-plan {
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  border: 1px solid var(--c-bordure);
}

.carte-plan iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.bascule-frequence {
  display: flex;
  background: var(--c-fond-doux);
  border-radius: 999px;
  padding: .3rem;
}

.bascule-frequence .btn {
  flex: 1;
  color: var(--c-marine);
}

.bascule-frequence .btn-check:checked + .btn {
  background: var(--c-marine);
  color: #fff;
}

.paiement-simule {
  background: #f7fafc;
  border: 2px dashed #cdd8e4;
  border-radius: 14px;
  padding: 1.2rem;
}

.impacts li {
  padding: .6rem 0;
  border-bottom: 1px dashed var(--c-bordure);
}

.impacts strong {
  display: inline-block;
  min-width: 60px;
  color: var(--c-principal-fonce);
}

.confirmation {
  max-width: 640px;
}

.confirmation-icone {
  font-size: 4rem;
  color: var(--c-sarcelle);
}

.recu {
  max-width: 420px;
  text-align: left;
  background: var(--c-fond-doux);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}

.recu div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .4rem 0;
  border-bottom: 1px dashed var(--c-bordure);
}

.recu div:last-child {
  border-bottom: none;
}

.recu span {
  color: var(--c-doux);
}

.recherche {
  max-width: 600px;
}

.recherche .input-group-text, .recherche .form-control {
  border: 2px solid var(--c-bordure);
}

.recherche .input-group-text {
  background: #fff;
  border-right: none;
  border-radius: 999px 0 0 999px;
}

.recherche .form-control {
  border-left: none;
}

.recherche .btn {
  border-radius: 0 999px 999px 0;
}

.partage a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-fond-doux);
  color: var(--c-marine);
  margin-left: .3rem;
}

.pied {
  background: var(--c-marine);
  color: #c9d1e6;
  padding: 3.5rem 0 1.5rem;
}

.pied h2 {
  color: #fff;
  font-weight: 800;
}

.pied a {
  color: #fff;
}

.pied a:hover {
  color: var(--c-soleil);
}

.pied .logo-texte {
  color: #fff;
}

.pied li {
  padding: .2rem 0;
}

.pied i {
  color: var(--c-soleil);
  margin-right: .3rem;
}

.pied hr {
  border-color: rgba(255, 255, 255, .15);
  margin: 2rem 0 1rem;
}

.reseaux a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  margin-right: .4rem;
  text-decoration: none;
}

.reseaux a i {
  margin: 0;
}

.reseaux a:hover {
  background: var(--c-principal);
}

.infolettre .form-control {
  border-radius: 999px 0 0 999px;
  border: none;
  padding: .6rem 1rem;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 0;
  }

  .btn-don {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 3rem 0;
  }

  .heros {
    padding: 3rem 0 2.5rem;
  }

  .appel-action {
    padding: 2rem 1.5rem;
  }

  .carte-activite {
    padding: 1rem;
    gap: .9rem;
  }

  .date-bloc {
    flex-basis: 58px;
  }
}
