
@font-face {
    font-family: 'Aptos';
    src: url('fonts/Aptos-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Aptos';
    src: url('fonts/Aptos-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Aptos';
    src: url('fonts/Aptos-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
}
body {
    font-family: 'Aptos', 'Segoe UI', Arial, sans-serif;
}

/* ===== Polices ===== */
@font-face {
  font-family: "Aptos";
  src: url("fonts/aptos-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aptos";
  src: url("fonts/aptos-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ===== Variables de thème ===== */
:root {
  --brand: #00315a;
  --bg: #ffffff;
  --fg: #1a1a1a;
  --card: #ffffff;
  --border: #e6e6e6;
  --muted: #6b7280;
}
html.dark {
  --bg: #0f1720;
  --fg: #e5e7eb;
  --card: #111827;
  --border: #1f2937;
  --muted: #9ca3af;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Aptos, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  line-height: 1.55;
}
a { color: var(--brand); }

/* ===== Barre du haut ===== */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; background: var(--brand); color: #fff;
}
.topbar .actions { display: flex; gap: 10px; align-items: center; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.phone { font-weight: 700; }

/* Bouton thème */
.theme-toggle {
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}
.theme-toggle:hover { background: rgba(255,255,255,0.12); }

/* ===== En-tête ===== */
header { text-align: center; padding: 24px 16px; }
header img.logo { max-width: 200px; height: auto; }
h1 { margin: 12px 0 6px; font-size: 1.6rem; color: var(--brand); text-align: center; }
@media (min-width: 640px) { h1 { font-size: 1.9rem; } }
p.lead { margin: 0 auto; max-width: 900px; color: var(--fg); }

/* ===== Grille d'activités ===== */
.activities { max-width: 1200px; margin: 18px auto 36px; padding: 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.activity {
  display: block; padding: 16px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); text-decoration: none; color: inherit; text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06); transition: transform .15s ease, box-shadow .15s ease;
}
.activity:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.activity img { max-width: 80px; height: auto; margin-bottom: 8px; display: inline-block; }
.activity h3 { color: var(--brand); margin: 6px 0 4px; font-size: 1.05rem; }

/* ===== Contenu ===== */
main { max-width: 900px; margin: 0 auto; padding: 16px; text-align: center; }
img.illustration { max-width: 150px; height: auto; margin: 0 auto 12px; display: block; }
@media (max-width: 420px) { img.illustration { max-width: 120px; } }

/* ===== Formulaire contact ===== */
.contact-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; min-height: 60vh; }
.contact-col { flex: 1; min-width: 300px; }
form.contact { text-align: left; margin: 14px auto; border: 1px solid var(--border); border-radius: 12px; padding: 14px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); max-width: 640px; background: var(--card); }
form.contact label { display: block; margin: 8px 0 4px; font-weight: 600; }
form.contact input, form.contact textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: transparent; color: var(--fg); }
form.contact button { margin-top: 10px; padding: 10px 14px; border: none; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 700; cursor: pointer; }
form.contact button:hover { opacity: .92; }

/* ===== Pied de page ===== */
footer.simple { text-align: center; margin: 24px 0; color: var(--brand); font-weight: 600; }
footer.simple a { color: var(--brand); text-decoration: none; }
footer.simple a:hover { text-decoration: underline; }

/* ===== Easter Egg : Logo spin ===== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.logo.spin {
  animation: spin 1s linear;
}

/* ===== Confettis ===== */
.confetti {
  position: fixed;
  top: -10px;
  width: 8px;
  height: 8px;
  opacity: 0.9;
  border-radius: 50%;
  animation-name: fall;
  animation-timing-function: linear;
}
@keyframes fall {
  to { transform: translateY(100vh) rotate(360deg); }
}


/* ===== Confettis Zigzag Effect ===== */
@keyframes fall-zigzag {
  0%   { transform: translateX(0) translateY(0) rotate(0deg); }
  25%  { transform: translateX(-20px) translateY(25vh) rotate(90deg); }
  50%  { transform: translateX(20px) translateY(50vh) rotate(180deg); }
  75%  { transform: translateX(-20px) translateY(75vh) rotate(270deg); }
  100% { transform: translateX(0) translateY(100vh) rotate(360deg); }
}


/* ===== Easter Egg Banner ===== */
#easter-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #00315a;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1.2rem;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.5s ease-in-out;
}
#easter-message.show {
  opacity: 1;
}


/* ===== Contact Page Layout ===== */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.contact-container form {
  flex: 1 1 350px;
  max-width: 500px;
}
.contact-container .map {
  flex: 1 1 350px;
  max-width: 500px;
}
.contact-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 8px;
}


/* ===== Mode sombre : corriger les textes bleus ===== */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode p,
body.dark-mode .titre-bleu {
  color: #ffffff !important;
}


/* ===== Contact Page Grid Layout Fix ===== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.contact-container form,
.contact-container .map {
  width: 100%;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}


/* ===== Contact Page Flexbox Alignment Fix ===== */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: center; /* align top */
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.contact-container form,
.contact-container .map {
  flex: 1 1 45%;
  max-width: 500px;
}

.contact-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px; /* stable height */
  border: 0;
  border-radius: 8px;
}


/* ===== Contact Layout — Final Override (v29) ===== */
.contact-container {
  display: grid !important;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  align-items: start;
  gap: 32px;
  margin-top: 32px;
}

.contact-container > .contact-form,
.contact-container > .map {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.contact-container iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 12px;
}

.contact-container h1,
.contact-container h2,
.contact-container h3,
.contact-container p {
  margin-top: 0;
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}


/* ===== Encadrés autour des blocs Contact (v30) ===== */
.contact-container > .contact-form,
.contact-container > .map {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}


/* ===== Effet de survol sur les encadrés Contact (v31) ===== */
.contact-container > .contact-form,
.contact-container > .map {
  transition: all 0.3s ease;
}

.contact-container > .contact-form:hover,
.contact-container > .map:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.activity-image img { max-width: 100%; height: auto; object-fit: contain; }

.activity-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.activity-text { flex: 1; text-align: center; }

.activity-image {
    flex: 1;
    text-align: center;
}

.activity-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.activity-text h2 { text-align: center; }

.activity-text p { text-align: center; }
.activity-text ul { text-align: center; list-style-position: inside; }

/* Espacement harmonisé dans les sections activités */
.activity-text h2 {
    margin-bottom: 20px;
}
.activity-text p {
    margin-bottom: 15px;
}
.activity-text ul {
    margin: 15px 0;
    padding: 0;
}
.activity-text ul li {
    margin-bottom: 10px;
}

/* Mise en page en colonnes avec largeur max */
.activity-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.activity-text,
.activity-image {
    flex: 1;
    max-width: 500px;
    text-align: center;
}

/* Responsive : pile verticale sur mobile */
@media (max-width: 768px) {
    .activity-container {
        flex-direction: column;
        align-items: center;
    }

    .activity-text,
    .activity-image {
        max-width: 100%;
    }
}