/* ==========================================================================
   Cap Ensemble Dolomieu — feuille de style principale
   Couleurs calées sur le logo (bleu "Cap", orange "ensemble", vert des vagues,
   jaune du soleil).
   ========================================================================== */

:root{
  --bg: #FBF8F2;
  --panel: #F2ECDD;
  --ink: #253A4E;
  --ink-soft: #5B6B7A;

  /* Palette reprise du logo (ruban bleu ciel au-dessus des personnages,
     celui qui vire au blanc) */
  --blue: #0B5EA6;        /* bleu de base (liens, focus) */
  --ribbon-blue: #AEDBEF; /* bleu pâle du ruban, tel quel dans le logo */
  --ribbon-blue-soft: #E3F2F9; /* même bleu, très éclairci (pas blanc) */
  --navy: #0A3A5E;        /* marine foncé : texte lisible sur fond clair */
  --legal-muted: #3E5872; /* marine sourd pour le texte légal, petit */
  --orange: #DD6B1D;      /* orange du mot "ensemble" et du soleil */
  --green: #5E8C2E;       /* vert des vagues et du feuillage */
  --yellow: #F2B705;      /* jaune du soleil */

  --max: 760px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2{
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: var(--blue);
  margin: 0;
}

/* Titre surligné par le bleu pâle du ruban du logo (comme "Dolomieu"), en aplat */
.section-title{
  display: table; /* pour pouvoir le centrer avec margin:auto, en restant à la taille du texte */
  margin: 0 auto;
  padding: 6px 20px;
  border-radius: 999px;
  background: var(--ribbon-blue);
  color: var(--navy);
  text-align: center;
}

a{ color: var(--orange); }
a:focus-visible, button:focus-visible{
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / hero (bandeau avec le logo) */
.hero{
  padding: 64px 0 40px;
  text-align: center;
}

.hero img{
  width: min(420px, 80vw);
  height: auto;
  display: block;
  margin: 0 auto 28px;
}

.hero p{
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto;
}

/* Mention d'avertissement provisoire — texte simple, sans encadré */
.site-notice{
  margin: 36px 0 0;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Séparateur en forme de vague */
.wave{
  display: block;
  width: 100%;
  height: 60px;
  margin: -1px 0;
}

/* Sections */
section{ padding: 56px 0; }

.panel{
  background: var(--panel);
}

h2{
  font-size: 1.7rem;
  margin-bottom: 20px;
}

section p{
  color: var(--ink-soft);
  max-width: 58ch;
}

.panel p{ color: var(--ink); }

ul.points{
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

ul.points li{
  position: relative;
  padding-left: 28px;
  color: var(--ink);
}

ul.points li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.cta{
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ribbon-blue);
  color: var(--navy);
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid rgba(10,58,94,0.2);
  box-shadow: 0 6px 18px rgba(10,58,94,0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover{
  box-shadow: 0 8px 22px rgba(10,58,94,0.2);
  transform: translateY(-1px);
}

.cta svg{ width: 20px; height: 20px; fill: var(--navy); }

/* Le bouton Facebook prend la place du titre : centré, au-dessus du texte */
#rejoindre{ text-align: center; padding-bottom: 20px; }
#rejoindre p{ text-align: left; }

/* Footer */
footer{
  background: linear-gradient(180deg, var(--ribbon-blue) 0%, var(--ribbon-blue-soft) 100%);
  color: var(--navy);
  padding: 12px 0 28px;
}

footer h2{
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 14px;
  text-align: center;
}

.contact-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact-list li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-list svg{
  width: 22px;
  height: 22px;
  fill: var(--navy);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-list a{
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(10,58,94,0.35);
}

.contact-list a:hover{ border-color: var(--navy); }

.legal{
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(10,58,94,0.15);
  font-size: 0.85rem;
  color: var(--legal-muted);
  line-height: 1.6;
}

@media (max-width: 480px){
  body{ font-size: 16.5px; }
  .hero{ padding-top: 48px; }
  section{ padding: 44px 0; }
}

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