/* SWAP Toulon — feuille de style principale
   Utilisee par : / (accueil), /about, /contact, 404
   La page /profil utilise css/profil.css */

:root {
    --vert-foret: #04342C;
    --vert: #0F6E56;
    --vert-vif: #1D9E75;
    --vert-pale: #E1F5EE;
    --creme: #FBFAF6;
    --encre: #1C2321;
    --encre-douce: #55605B;
    --corail: #D85A30;
    --corail-pale: #FAECE7;
    --radius: 14px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Karla', sans-serif;
    color: var(--encre);
    background: var(--creme);
    line-height: 1.65;
    font-size: 17px;
  }

  h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 500; line-height: 1.2; }

  a { color: inherit; text-decoration: none; }

  .conteneur { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

  /* ---------- Header ---------- */
  header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(251, 250, 246, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(4, 52, 44, 0.08);
  }
  .nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0;
  }
  .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: 1px; }
  .logo-pastille {
    width: 36px; height: 36px; border-radius: 11px;
    background: var(--vert-vif); color: var(--vert-pale);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600;
  }
  .nav-liens { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--encre-douce); }
  .nav-liens a:hover { color: var(--vert); }

  .btn {
    display: inline-block; border: none; cursor: pointer;
    font-family: 'Karla', sans-serif; font-weight: 700; font-size: 16px;
    padding: 13px 28px; border-radius: 100px;
    transition: transform 0.15s ease, background 0.15s ease;
  }
  .btn:active { transform: scale(0.97); }
  .btn-plein { background: var(--vert); color: var(--vert-pale); }
  .btn-plein:hover { background: var(--vert-foret); }
  .btn-contour { background: transparent; color: var(--vert); border: 1.5px solid var(--vert); }
  .btn-contour:hover { background: var(--vert-pale); }
  .btn:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--vert-vif); outline-offset: 3px; }

  .nav .btn { padding: 9px 20px; font-size: 14px; }

  /* ---------- Héros ---------- */
  .heros { padding: 80px 0 56px; text-align: center; }
  .badge-ville {
    display: inline-block; font-size: 14px; font-weight: 700;
    background: var(--corail-pale); color: var(--corail);
    padding: 7px 18px; border-radius: 100px; margin-bottom: 24px;
    letter-spacing: 0.3px;
  }
  .heros h1 {
    font-size: clamp(38px, 6vw, 62px);
    max-width: 15ch; margin: 0 auto 20px;
  }
  .heros h1 em { font-style: italic; color: var(--vert); }
  .heros p {
    max-width: 54ch; margin: 0 auto 36px;
    font-size: 19px; color: var(--encre-douce);
  }

  /* ---------- Formulaire e-mail ---------- */
  .capture { max-width: 480px; margin: 0 auto; }
  .capture-champs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
  .capture input[type="email"] {
    flex: 1; min-width: 220px;
    font-family: 'Karla', sans-serif; font-size: 16px;
    padding: 13px 20px; border-radius: 100px;
    border: 1.5px solid rgba(4, 52, 44, 0.25);
    background: #fff; color: var(--encre);
  }
  .capture input[type="email"]::placeholder { color: #9AA5A0; }
  .capture-note { font-size: 13px; color: var(--encre-douce); margin-top: 12px; }
  .capture-retour { margin-top: 14px; font-size: 15px; font-weight: 700; display: none; }
  .capture-retour.ok { display: block; color: var(--vert); }
  .capture-retour.erreur { display: block; color: var(--corail); }
  .compteur {
    display: none; margin-top: 18px; font-size: 15px; color: var(--vert);
    font-weight: 700;
  }
  .compteur.visible { display: block; }

  /* ---------- Duo ---------- */
  .duo-scene { padding: 40px 0 72px; }
  .duo {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    flex-wrap: wrap;
    background: var(--vert-foret); color: var(--vert-pale);
    border-radius: 24px; padding: 44px 32px;
  }
  .carte-profil {
    background: rgba(251, 250, 246, 0.06);
    border: 1px solid rgba(225, 245, 238, 0.2);
    border-radius: var(--radius);
    padding: 20px 24px; min-width: 250px;
    display: flex; gap: 14px; align-items: center;
  }
  .avatar {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px;
  }
  .avatar-a { background: var(--corail-pale); color: var(--corail); }
  .avatar-b { background: var(--vert-pale); color: var(--vert); }
  .carte-profil p { margin: 0; font-size: 14px; line-height: 1.5; }
  .carte-profil .nom { font-weight: 700; font-size: 16px; }
  .carte-profil .propose { color: rgba(225, 245, 238, 0.75); }
  .carte-profil .cherche { color: #9FE1CB; }

  .fleche-swap {
    font-family: 'Fraunces', serif; font-size: 40px; color: var(--vert-vif);
    animation: respiration 2.6s ease-in-out infinite;
    user-select: none;
  }
  @keyframes respiration {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.18); opacity: 1; }
  }
  @media (prefers-reduced-motion: reduce) {
    .fleche-swap { animation: none; }
    html { scroll-behavior: auto; }
  }

  /* ---------- Sections ---------- */
  section { padding: 64px 0; }
  .entete-section { text-align: center; margin-bottom: 44px; }
  .entete-section h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 10px; }
  .entete-section p { color: var(--encre-douce); max-width: 60ch; margin-left: auto; margin-right: auto; }
  .surtitre {
    display: inline-block; font-size: 13px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--vert); margin-bottom: 12px;
  }

  /* ---------- Comment ça marche ---------- */
  .etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
  .etape {
    background: #fff; border: 1px solid rgba(4, 52, 44, 0.1);
    border-radius: var(--radius); padding: 30px 26px;
  }
  .etape-numero {
    font-family: 'Fraunces', serif; font-size: 15px; font-weight: 600;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--vert-pale); color: var(--vert-foret);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
  }
  .etape h3 { font-size: 20px; margin-bottom: 8px; }
  .etape p { font-size: 15px; color: var(--encre-douce); }

  /* ---------- Principe 1h = 1h ---------- */
  .principe {
    background: var(--vert-pale);
    border-radius: 24px; padding: 52px 32px;
    text-align: center;
  }
  .principe h2 { font-size: clamp(26px, 4vw, 34px); color: var(--vert-foret); margin-bottom: 12px; }
  .principe p { max-width: 56ch; margin: 0 auto; color: var(--vert); font-size: 17px; }
  .principe .egalite {
    font-family: 'Fraunces', serif; font-style: italic;
    font-size: clamp(22px, 3.5vw, 28px); color: var(--vert-foret);
    display: block; margin-top: 24px;
  }

  /* ---------- Domaines ---------- */
  .domaines { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
  .domaine {
    font-size: 15px; font-weight: 500;
    padding: 10px 20px; border-radius: 100px;
    border: 1px solid rgba(4, 52, 44, 0.15);
    background: #fff; color: var(--encre);
  }

  /* ---------- Carte des lieux ---------- */
  .carte-lieux {
    height: 440px; border-radius: 24px;
    border: 1px solid rgba(4, 52, 44, 0.12);
    z-index: 1;
  }
  .leaflet-popup-content-wrapper { border-radius: 12px; font-family: 'Karla', sans-serif; }
  .leaflet-popup-content { font-size: 14px; line-height: 1.5; margin: 12px 16px; }
  .leaflet-popup-content .lieu-nom { font-weight: 700; font-size: 15px; color: var(--vert-foret); }
  .leaflet-popup-content .lieu-adresse { color: var(--encre-douce); font-size: 13px; }
  .legende-carte {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
    margin-top: 18px; font-size: 14px;
  }
  .legende-carte span {
    background: #fff; border: 1px solid rgba(4, 52, 44, 0.15);
    border-radius: 100px; padding: 7px 16px; cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
  }
  .legende-carte span:hover { background: var(--vert-pale); border-color: var(--vert); }

  /* ---------- FAQ ---------- */
  .faq { max-width: 720px; margin: 0 auto; }
  .faq details {
    background: #fff; border: 1px solid rgba(4, 52, 44, 0.1);
    border-radius: var(--radius); margin-bottom: 12px;
    overflow: hidden;
  }
  .faq summary {
    cursor: pointer; list-style: none;
    padding: 20px 24px;
    font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: "+"; font-family: 'Karla', sans-serif; font-size: 22px;
    color: var(--vert); flex-shrink: 0;
    transition: transform 0.2s ease;
  }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq .reponse { padding: 0 24px 22px; font-size: 15.5px; color: var(--encre-douce); }

  /* ---------- CTA final ---------- */
  .cta-final {
    background: var(--vert-foret); border-radius: 24px;
    padding: 64px 32px; text-align: center; color: var(--vert-pale);
  }
  .cta-final h2 { font-size: clamp(28px, 4.5vw, 40px); margin-bottom: 12px; }
  .cta-final > p { color: #9FE1CB; margin-bottom: 32px; }
  .cta-final .capture input[type="email"] { border-color: transparent; }
  .cta-final .btn-plein { background: var(--vert-pale); color: var(--vert-foret); }
  .cta-final .btn-plein:hover { background: #fff; }
  .cta-final .capture-note { color: rgba(159, 225, 203, 0.8); }
  .cta-final .capture-retour.ok { color: #9FE1CB; }
  .cta-final .capture-retour.erreur { color: #F0997B; }

  /* ---------- Footer ---------- */
  footer {
    border-top: 1px solid rgba(4, 52, 44, 0.08);
    margin-top: 64px; padding: 28px 0;
    font-size: 14px; color: var(--encre-douce);
  }
  .footer-ligne { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
  .footer-ligne a:hover { color: var(--vert); }

  @media (max-width: 640px) {
    .nav-liens a:not(.btn) { display: none; }
    .heros { padding: 52px 0 36px; }
    section { padding: 48px 0; }
    .fleche-swap { transform: rotate(90deg); }
    @keyframes respiration {
      0%, 100% { transform: rotate(90deg) scale(1); }
      50% { transform: rotate(90deg) scale(1.18); }
    }
  }

  /* ---------- Pages simples : about, contact, 404 ---------- */
  .page-simple { max-width: 720px; margin: 0 auto; padding: 56px 0 32px; }
  .page-simple h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 16px; }
  .page-simple h2 { font-size: 24px; margin: 34px 0 10px; }
  .page-simple p { margin-bottom: 14px; color: var(--encre); }
  .page-simple p.chapeau { font-size: 19px; color: var(--encre-douce); margin-bottom: 26px; }
  .page-simple ul { margin: 0 0 16px 22px; color: var(--encre); }
  .page-simple li { margin-bottom: 8px; }
  .page-simple a:not(.btn) { color: var(--vert); text-decoration: underline; }

  .bloc-contact {
    background: #fff; border: 1px solid rgba(4, 52, 44, 0.1);
    border-radius: var(--radius); padding: 22px 24px; margin-bottom: 14px;
  }
  .bloc-contact h3 { font-size: 19px; margin-bottom: 6px; }
  .bloc-contact p { font-size: 15px; color: var(--encre-douce); margin-bottom: 8px; }
  .bloc-contact .adresse { font-weight: 700; color: var(--vert); font-size: 16px; }

  .page-404 { text-align: center; padding: 88px 0 64px; }
  .page-404 .code {
    font-family: 'Fraunces', serif; font-size: clamp(64px, 14vw, 120px);
    color: var(--vert-pale); line-height: 1; margin-bottom: 8px;
  }
  .page-404 h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 12px; }
  .page-404 p { color: var(--encre-douce); max-width: 46ch; margin: 0 auto 28px; }
  .page-404 .liens-404 { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }


/* ---------- Section guide à télécharger ---------- */
.bloc-guide {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  background: var(--vert-pale); border-radius: 24px;
  padding: 40px; margin-bottom: 32px;
}
.bloc-guide-texte { flex: 1; min-width: 280px; }
.bloc-guide-texte h2 { font-size: clamp(24px, 3.5vw, 32px); color: var(--vert-foret); margin-bottom: 12px; }
.bloc-guide-texte p { color: var(--vert); margin-bottom: 22px; max-width: 52ch; }
.bloc-guide-visuel {
  flex-shrink: 0; width: 200px; height: 200px; border-radius: 20px;
  background: #fff; border: 1px solid rgba(4,52,44,0.12);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.guide-emoji { font-size: 64px; line-height: 1; }
.guide-egalite {
  font-family: 'Fraunces', serif; font-style: italic; font-size: 15px;
  color: var(--vert-foret); text-align: center; padding: 0 16px;
}
@media (max-width: 640px) {
  .bloc-guide { padding: 28px; }
  .bloc-guide-visuel { width: 100%; height: 160px; }
}

/* ---------- Compte à rebours ---------- */
.compte-rebours {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin: 4px 0 6px;
}
.cr-bloc {
  background: var(--vert-foret); color: var(--creme);
  border-radius: 14px; padding: 14px 8px; min-width: 78px;
  display: flex; flex-direction: column; align-items: center;
}
.cr-nombre {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 40px; line-height: 1; color: var(--vert-pale);
  font-variant-numeric: tabular-nums;
}
.cr-label {
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: #9FE1CB; margin-top: 6px;
}
.cr-legende {
  text-align: center; font-size: 14px; color: var(--encre-douce);
  margin-bottom: 30px;
}
@media (max-width: 480px) {
  .compte-rebours { gap: 8px; }
  .cr-bloc { min-width: 64px; padding: 12px 6px; }
  .cr-nombre { font-size: 32px; }
}

/* ---------- Bouton de langue FR/EN ---------- */
.btn-langue {
  border: 1.5px solid var(--vert); background: transparent;
  color: var(--vert); font-family: 'Karla', sans-serif; font-weight: 700;
  font-size: 13px; padding: 7px 14px; border-radius: 100px; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  min-width: 46px;
}
.btn-langue:hover { background: var(--vert); color: var(--vert-pale); }
.btn-langue:focus-visible { outline: 3px solid var(--vert-vif); outline-offset: 2px; }

/* ---------- Calendrier de la saison (chrono) ---------- */
.chrono { max-width: 720px; margin: 0 auto; position: relative; }
.chrono::before {
  content: ""; position: absolute; left: 31px; top: 10px; bottom: 10px;
  width: 2px; background: rgba(15, 110, 86, 0.25);
}
.jalon { position: relative; display: flex; gap: 22px; padding: 0 0 28px 0; }
.jalon:last-child { padding-bottom: 0; }
.jalon-semaine {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--vert-pale); color: var(--vert-foret);
  border: 2px solid var(--vert-vif);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 16px;
}
.jalon.fort .jalon-semaine { background: var(--vert); color: var(--vert-pale); }
.jalon-corps { padding-top: 6px; }
.jalon-corps h3 { font-size: 19px; margin-bottom: 4px; }
.jalon-corps h3 .etiquette-option {
  font-family: 'Karla', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  background: var(--corail-pale); color: var(--corail);
  border-radius: 100px; padding: 3px 10px; vertical-align: 3px; margin-left: 8px;
}
.jalon-corps p { font-size: 15px; color: var(--encre-douce); max-width: 56ch; }
@media (max-width: 520px) {
  .chrono::before { left: 25px; }
  .jalon { gap: 16px; }
  .jalon-semaine { width: 52px; height: 52px; font-size: 14px; }
}

/* ---------- Parcours alternatif (clarté des CTA) ---------- */
.parcours-alt {
  text-align: center; font-size: 14.5px; color: var(--encre-douce);
  margin-top: 18px;
}
.parcours-alt a { color: var(--vert); font-weight: 700; text-decoration: underline; }
.parcours-alt a:hover { color: var(--vert-foret); }

/* ---------- CTA flottant (mobile) ---------- */
.cta-flottant {
  display: none; position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 40; text-align: center;
  background: var(--vert); color: var(--vert-pale);
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: 16px;
  padding: 15px; border-radius: 100px;
  box-shadow: 0 8px 24px rgba(4, 52, 44, 0.25);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.cta-flottant.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (max-width: 640px) { .cta-flottant { display: block; } }

/* ---------- Bouton retour en haut ---------- */
.retour-haut {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--vert-foret); color: var(--vert-pale);
  font-size: 20px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(4, 52, 44, 0.3);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
}
.retour-haut.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.retour-haut:hover { background: var(--vert); }
.retour-haut:focus-visible { outline: 3px solid var(--vert-vif); outline-offset: 2px; }
@media (max-width: 640px) { .retour-haut { bottom: 84px; } }
