@import url('https://fonts.googleapis.com/css2?family=Baskervville:ital@0;1&family=Cedarville+Cursive&family=IM+Fell+English:ital@0;1&family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Baskervville:ital@0;1&family=Bebas+Neue&family=Cedarville+Cursive&family=IM+Fell+English:ital@0;1&family=Pacifico&display=swap');

:root{
    /* Palette Astrolune */
    --bg: #C5D6FB;      /* light blue */
    --ink: #21295C;     /* dark navy for text */
    --muted: #5e6a79;   /* keep muted for readability */
    --panel: #21295C;   /* dark background panels */
    --accent: #C4B0FF;  /* lavender accent */
    --white: #ffffff;
    --yellow: #FFE347;
    --maxw: 1100px;
}
    
*{box-sizing:border-box}
html,body{margin:0;padding:0;color:var(--ink);font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";overflow-x: hidden;width: 100%;max-width: 100vw;}
 
/* ===== FOND COSMIQUE GLOBAL ===== */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  isolation: isolate;
}

.cosmic-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1200px 600px at 80% 10%, rgba(196,176,255,.25), transparent 60%),
    radial-gradient(900px 500px at 15% 20%, rgba(111,86,255,.22), transparent 55%),
    linear-gradient(180deg, #1a1740 0%, #151233 40%, #0e0b24 100%);
}

/* Étoiles fixes qui bougent lentement */
.cosmic-bg .stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.9) 40%, transparent 41%),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 25%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 10% 70%, rgba(255,255,255,.85) 50%, transparent 51%);
  background-size: 400px 400px, 420px 420px, 360px 360px, 500px 500px, 380px 380px;
  animation: driftStars 46s linear infinite;
  opacity: .9;
}

/* Petites étoiles qui scintillent */
.cosmic-bg .twinkles {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-image:
    radial-gradient(2px 2px at 30% 40%, rgba(255,255,255,1) 40%, transparent 41%),
    radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,1) 40%, transparent 41%),
    radial-gradient(2px 2px at 80% 75%, rgba(255,255,255,1) 40%, transparent 41%);
  background-size: 520px 520px, 600px 600px, 480px 480px;
  animation: twinkle 2.6s ease-in-out infinite;
  opacity: .7;
  mix-blend-mode: screen;
}

/* Étoile filante */
.cosmic-bg .shooting {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cosmic-bg .shooting::before {
  content: "";
  position: absolute;
  top: 22%;
  left: -12%;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #fff 40%, rgba(255,255,255,0) 100%);
  border-radius: 2px;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.95));
  transform: rotate(11deg);
  animation: shooting 7s cubic-bezier(.2,.6,.2,1) infinite;
}

/* ===== Animations ===== */
@keyframes driftStars {
  0% { transform: translateY(0) }
  100% { transform: translateY(-40px) }
}

@keyframes twinkle {
  0%, 100% { opacity: .35; transform: scale(1) }
  50% { opacity: 1; transform: scale(1.07) }
}

@keyframes shooting {
  0%   { transform: translate3d(0,0,0) rotate(12deg); opacity:0 }
  8%   { opacity:1 }
  40%  { transform: translate3d(120vw, 22vh, 0) rotate(12deg); opacity:0 }
  100% { opacity:0 }
}

/* Désactive les animations si "réduire les mouvements" est activé */
@media (prefers-reduced-motion: reduce) {
  .cosmic-bg .stars,
  .cosmic-bg .twinkles,
  .cosmic-bg .shooting::before {
    animation: none !important;
  }
}

header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(197, 214, 251, 0.85);   /* même rendu que les autres pages */
  backdrop-filter: saturate(120%) blur(6px);/* effet verre */
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.container{max-width:var(--maxw);margin-inline:auto;padding:14px 20px;}
header .container{padding:24px 20px;}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:14px;}
.brand img{height:80px;width:auto;display:block}
.brand span{font-weight:700;letter-spacing:.4px}
nav ul{list-style:none;margin:0;padding:0;display:flex;gap:32px}
nav a{color:#203041;text-decoration:none;font-weight:600;font-size:18px}
nav a:hover{opacity:.8;text-decoration:underline}
@media (max-width: 980px){
  nav a{font-size:16px}
}
body {
  background: #21295C;
}

/* Masquer la croix par défaut (desktop) */
.menu-close { display: none; }

/* ===== PAGE ===== */
.page-title {
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  margin: 40px 0 60px;
  color: #FDF0CA;
}
 
/* ===== GRID DES CARTES ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* nouveau */
  gap: 36px; /* nouveau */
  max-width: 1800px; /* nouveau */
  margin: 0 auto 80px; /* nouveau */
  padding: 0 20px; /* nouveau */
}

.card {
  background: #fff;
  border-radius: 18px; /* nouveau */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative; /* nécessaire pour l'effet lampe */
}
.card:hover { transform: translateY(-6px); }

.card img {
  width: 100%;
  height: 280px; /* nouveau */
  object-fit: cover;
  border-top-left-radius: 18px; /* nouveau */
  border-top-right-radius: 18px; /* nouveau */
}

.card-caption {
  background: #FFE347;
  color: #000;
  text-align: center;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 28px; /* nouveau */
  padding: 14px 10px; /* nouveau */
  border-bottom-left-radius: 18px; /* nouveau */
  border-bottom-right-radius: 18px; /* nouveau */
}
 
/* ===== Responsive ===== */
/* plus besoin de media queries complexes, auto-fit s’adapte tout seul */ /* nouveau */

/* ===== Effet "lampe torche" sur les cartes ===== */
.lamp-hover {
  --x: 50%;
  --y: 50%;
}
.lamp-hover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* halo qui suit la souris, zone claire au centre et assombrissement autour */
  background:
    radial-gradient(160px 160px at var(--x) var(--y),
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0) 60%,
      rgba(0,0,0,0.25) 78%,
      rgba(0,0,0,0.45) 100%);
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 2;
}
.lamp-hover:hover::after {
  opacity: .6;
}

/* ===== Footer ===== */
.footer{background:var(--bg);color:var(--ink);margin-top:0;border-top:1px solid rgba(0,0,0,.06)}
.footer-content{max-width:var(--maxw);margin-inline:auto;padding:32px 20px;display:flex;align-items:flex-start;justify-content:space-between;gap:32px}
.footer-brand{margin-left:calc((100vw - var(--maxw)) / 2 * -1)}
.footer-brand img{height:150px;width:auto;display:block;filter:drop-shadow(0 6px 18px rgba(0,0,0,.35));}
.footer-section h2{margin:0 0 14px;font-size:16px;letter-spacing:.6px;text-transform:uppercase;color:#203041}
.footer-section ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
/* Décaler les colonnes Menu + Réseaux vers la droite */
.menu-nav{margin-left:40px}
.footer a{color:var(--ink);text-decoration:none;opacity:.9;transition:opacity .2s ease, transform .2s ease}
.footer a:hover{opacity:1;text-decoration:underline}
.menu-nav ul li a{font-weight:600}
.contact-list li{display:flex;align-items:center;gap:5px}
.contact-list li span{font-size:18px;display:inline-block;width:22px;text-align:center}
.contact-list li span i { color: #EAE8FF; }
.footer-bottom{max-width:var(--maxw);margin:0 auto;padding:14px 20px;border-top:1px solid rgba(255,255,255,.08);color:rgba(255,255,255,.7);font-size:13px}
.footer-bottom p{margin:0;color:#1b2036}
@media (max-width: 980px){
  .footer-brand{margin-left:0}
  .menu-nav{margin-left:0}
}
@media (max-width: 780px){
  .footer-content{flex-direction:column;gap:20px}
  .footer-brand img{height:72px}
}
/* ===== FOOTER — COSMIC (full-bleed) ===== */
 
.footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: 0;
    border-top: none;
    background: transparent; /* on gère le fond via couches */
  }
  
  /* vague de séparation */
  .footer-wave {
    position: absolute;
    top: -1px; left: 0; width: 100%; height: 72px;
    display: block; z-index: 0;
  }
  .footer-wave path {
    fill: rgba(197, 214, 251, 0.85);
    opacity: 1;
  }  
  
  /* Ciel animé en arrière-plan (full viewport width) */
  .footer--cosmic::before,
  .footer--cosmic::after {
    content:"";
    position: absolute; inset: 0;
    z-index: -2;
  }
  
  /* Dégradé spatial + halo */
  .footer--cosmic::before{
    background:
      radial-gradient(1200px 600px at 80% 10%, rgba(196,176,255,.30), transparent 60%),
      radial-gradient(900px 500px at 15% 20%, rgba(111,86,255,.25), transparent 55%),
      linear-gradient(180deg, #1a1740 0%, #151233 40%, #0e0b24 100%);
  }
  
  /* Liseré aurora (lavande) en haut */
  .footer--cosmic::after{
    pointer-events:none;
    background: radial-gradient(60% 80% at 50% -10%, rgba(196,176,255,.35), transparent 60%);
    mix-blend-mode: screen;
    opacity:.8;
  }
  
  /* Calque ciel (étoiles + scintillement + étoile filante) */
  .sky{
    position:absolute; inset:0; z-index:-1;
  }
  
  /* Étoiles : un simple pattern radial + repeat + parallax léger */
  .footer .sky .stars, .footer .sky .twinkles {
    position:absolute; inset:0;
    background-repeat: repeat;
    transform: translateZ(0);
  }
  .footer .sky .stars{
    background-image:
      radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.9) 40%, transparent 41%),
      radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,.8) 50%, transparent 51%),
      radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,.85) 50%, transparent 51%),
      radial-gradient(1px 1px at 85% 25%, rgba(255,255,255,.8) 50%, transparent 51%),
      radial-gradient(1.5px 1.5px at 10% 70%, rgba(255,255,255,.85) 50%, transparent 51%);
    background-size: 400px 400px, 420px 420px, 360px 360px, 500px 500px, 380px 380px;
    animation: driftStars 45s linear infinite;
    opacity:.9;
  }
  .footer .sky .twinkles{
    background-image:
      radial-gradient(2px 2px at 30% 40%, rgba(255,255,255,1) 40%, transparent 41%),
      radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,1) 40%, transparent 41%),
      radial-gradient(2px 2px at 80% 75%, rgba(255,255,255,1) 40%, transparent 41%);
    background-size: 520px 520px, 600px 600px, 480px 480px;
    animation: twinkle 2.6s ease-in-out infinite;
    opacity:.7;
    mix-blend-mode: screen;
  }
  
  /* Étoile filante */
  .footer .sky .shooting{
    position:absolute; inset:0; overflow:visible; pointer-events:none;
  }
  .footer .sky .shooting::before{
    content:"";
    position:absolute;
    top: 20%; left: -10%;
    width: 140px; height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #fff 40%, rgba(255,255,255,0) 100%);
    border-radius: 2px;
    filter: drop-shadow(0 0 6px rgba(255,255,255,.9));
    transform: rotate(12deg);
    animation: shooting 6.5s cubic-bezier(.2,.6,.2,1) infinite;
  }
  
  /* Contenu du footer : on garde ta grille mais on lui donne de l’air et full-bleed */
  .footer-content{
    position: relative;
    z-index: 1;
    max-width: var(--maxw);
    margin-inline: auto;
    padding: 72px 20px 36px;
    display:flex; align-items:flex-start; justify-content:space-between; gap: 40px;
    color: var(--white);
  }
  .footer .footer-section h2{ color: #C4B0FF; letter-spacing:.6px }
  .footer a{ color: #EAE8FF; opacity:.95; text-decoration:none }
  .footer a:hover{ opacity:1; text-decoration:underline }
  .footer-brand img{
    height: 160px; width: auto; display:block;
    filter: drop-shadow(0 10px 28px rgba(196,176,255,.35));
  }
  /* align footer logo with header container */
  .footer--cosmic .footer-brand{ margin-left: 0 }
  
  /* Barre basse */
  .footer-bottom{
    position: relative; z-index:1;
    max-width: var(--maxw); margin: 0 auto; padding: 16px 20px 28px;
    border-top: 1px solid rgba(255,255,255,.15);
  }
  .footer-bottom p{ margin:0; color: #E0DEFF }
  
  /* Réactivité */
@media (max-width: 980px) {
  .footer-content { flex-direction: column; gap: 24px; padding: 64px 20px 28px; }
  .footer-brand img { height: 96px; }
  .menu-nav { margin-left: 0; }
}
  
  /* Animations */

  @keyframes driftStars {
    0% { transform: translateY(0) }
    100% { transform: translateY(-40px) }
  }
  @keyframes twinkle {
    0%, 100% { opacity:.35; transform: scale(1) }
    50% { opacity:1; transform: scale(1.08) }
  }
  @keyframes shooting {
    0%   { transform: translate3d(0,0,0) rotate(12deg); opacity:0 }
    8%   { opacity:1 }
    40%  { transform: translate3d(120vw, 22vh, 0) rotate(12deg); opacity:0 }
    100% { opacity:0 }
  }
  
  /* Accessibilité motion */
  @media (prefers-reduced-motion: reduce){
    .footer .sky .stars, .footer .sky .twinkles, .footer .sky .shooting::before { animation: none !important }
  }

/* ===== MENU BURGER ===== */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger-menu span {
  width: 100%;
  height: 3px;
  background: #20304F;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger-menu[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger-menu[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== RESPONSIVE TOUS IPHONES ===== */
@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    position: relative;
  }
  
  /* Header responsive */
  .container { padding: 12px 16px; max-width: 100vw; overflow-x: hidden; }
  header .container { padding: 16px 16px; max-width: 100vw; overflow-x: hidden; }
  .brand img { height: 60px; }
  
  /* Menu burger responsive */
  .burger-menu {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(26, 23, 64, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  /* Bouton de fermeture (croix) */
  .menu-close {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(234, 232, 255, 0.28);
    background: rgba(234, 232, 255, 0.08);
    color: #EAE8FF;
    font-size: 26px;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    backdrop-filter: blur(6px);
  }
  .nav-menu.active + .menu-close {
    display: flex;
  }
  .menu-close:active { transform: scale(0.98); }
  
  .nav-menu li a {
    color: #EAE8FF;
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 10px 20px;
    border-radius: 8px;
  }
  
  .nav-menu li a:hover,
  .nav-menu li a.active {
    color: #C4B0FF;
    background: rgba(196, 176, 255, 0.1);
  }
  
  /* Page title responsive */
  .page-title { 
    font-size: 32px; 
    margin: 30px 0 40px;
  }
  
  /* Cards grid responsive */
  .cards-grid { 
    grid-template-columns: 1fr; 
    gap: 20px; 
    padding: 0 16px; 
    margin-bottom: 40px;
  }
  
  .card img { 
    height: 200px; 
  }
  
  .card-caption { 
    font-size: 20px; 
    padding: 12px 8px;
  }
  
  /* Footer responsive */
  .footer-content { 
    flex-direction: column; 
    gap: 20px; 
    padding: 40px 16px 24px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .footer-section ul { align-items: center; }
  .menu-nav { margin-left: 0; }
  .footer-bottom { text-align: center; }
  .footer-brand { display: flex; justify-content: center; }
  .footer-brand img { height: 80px; }
  .footer-section h2 { font-size: 14px; }
  .footer-section ul { gap: 8px; }
  .footer a { font-size: 14px; }
  .contact-list li span { font-size: 16px; }
  .footer-bottom { padding: 12px 16px 20px; }
  .footer-bottom p { font-size: 12px; }
}
