@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* ===== Variables ===== */
:root{
  --ink: #ffffff;        /* texte principal en blanc */
  --muted: #D7DBFF;      /* blanc adouci */
  --accent: #FFE347;     /* bouton */
  --maxw: 1100px;

  /* Footer legacy */
  --panel: #21295C;
}

/* ===== Reset / Base ===== */
*{box-sizing:border-box}
html,body{
  margin:0; padding:0;
  background: transparent;           /* pour voir le ciel */
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
img{max-width:100%; height:auto; display:block}

/* ===== 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%);
}

.cosmic-bg .stars, .cosmic-bg .twinkles{
  position:absolute; inset:0; background-repeat: repeat; transform: translateZ(0);
}
.cosmic-bg .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 46s linear infinite;
  opacity:.9;
}
.cosmic-bg .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 */
.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;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(197, 214, 251, 0.85); /* ta couleur bleue avec transparence */
  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}
nav ul{list-style:none;margin:0;padding:0;display:flex;gap:32px}
nav a{color:#20304F;text-decoration:none;font-weight:600;font-size:18px}
nav a:hover{opacity:.9;text-decoration:underline}
@media (max-width: 980px){
  nav a{font-size:16px}
}

/* ===== Sections ===== */
.section{
  position:relative; overflow:hidden;
  background: transparent !important;  /* >>> montre le ciel */
}
.section + .section{margin-top:0}
.section-inner{
  width:100%; padding:0;
  display:grid; grid-template-columns:1.1fr 1fr; gap:0; align-items:stretch;
  min-height:480px;
}

/* ===== Panneaux (aucun fond sur la description) ===== */
.panel{
  color:#fff;                           /* texte par défaut en blanc */
  padding:28px;
  display:flex; flex-direction:column; justify-content:center;
  gap: 6px;
  background: transparent;              /* PAS de fond */
  border: 0; box-shadow: none;          /* pas de cadre */
  backdrop-filter: none;                 /* pas de blur */
}

/* Titres + descriptions */
.title{
  font-weight:800; font-size:28px; line-height:1.15;
  margin:0 0 8px;
  color:#fff;                           /* blanc */
}
.desc{
  margin:0;
  line-height:1.65;
  font-size:18px;
  color:#fff;                           /* blanc forcé */
  background: transparent;              /* PAS de fond */
}
.section .panel p{                      /* renforce pour tous <p> */
  color:#fff;
  background: transparent;
}

/* Boutons */
.btn{
  display:inline-block;margin-top:14px;padding:10px 16px;border-radius:12px;
  background:var(--accent);color:#21295C;font-weight:800;text-decoration:none;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease
}
.btn:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(0,0,0,.28)}
.btn[aria-expanded="true"]{background:#FFD91F}

/* Horoscope bloc */
.astro-bloc{
  margin-top:12px;padding:12px 14px;border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.18);
  border-left:4px solid var(--accent); color:#FCF0CA;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
  opacity:0;max-height:0;overflow:hidden;transform:translateY(6px);
  transition:opacity .25s ease, max-height .25s ease, transform .25s ease
}
.astro-bloc.is-open{opacity:1;max-height:220px;transform:translateY(0)}

/* ===== Visuels de sections (trapezes & portraits) ===== */
.photo{position:relative;min-height:480px}
.photo::before{
  content:"";position:absolute;inset:-6%;
  background:radial-gradient(circle at 30% 20%, rgba(196,176,255,.9), rgba(111,86,255,.55) 35%, rgba(71,55,140,.6) 62%, rgba(20,14,40,.8) 100%);
  filter:saturate(120%);
}
.img-right .photo::before{clip-path:polygon(30% 0, 100% 0, 100% 100%, 0 100%);}
.img-left  .photo::before{clip-path:polygon(0 0, 100% 0, 70% 100%, 0 100%);}

/* Images par section */
/* Section 1: Sophie (img-right) */
.section:nth-of-type(1) .photo::before{background:url('img/sophie.png') 95% center/60% auto no-repeat;filter:none}
.section:nth-of-type(1) .photo::before{clip-path:polygon(30% 0, 100% 0, 100% 100%, 55% 100%)}

/* Section 2: Matis (img-left) */
.section:nth-of-type(2) .photo::before{background:url('img/matis.png') 5% center/65% auto no-repeat;filter:none}
.section:nth-of-type(2) .photo::before{clip-path:polygon(0 0, 70% 0, 55% 100%, 0 100%)}

/* Section 3: Marion (img-right) */
.section:nth-of-type(3) .photo::before{background:url('img/marion.png') 95% center/65% auto no-repeat;filter:none}
.section:nth-of-type(3) .photo::before{clip-path:polygon(30% 0, 100% 0, 100% 100%, 55% 100%)}

/* Section 4: Driton (img-left) */
.section:nth-of-type(4) .photo::before{background:url('img/driton.png') 5% center/65% auto no-repeat;filter:none}
.section:nth-of-type(4) .photo::before{clip-path:polygon(0 0, 70% 0, 55% 100%, 0 100%)}

/* Section 5: Stan (img-right) */
.section:nth-of-type(5) .photo::before{background:url('img/stan_f.png') 95% center/65% auto no-repeat;filter:none}
.section:nth-of-type(5) .photo::before{clip-path:polygon(30% 0, 100% 0, 100% 100%, 55% 100%)}

/* Masque les <img> internes (on utilise les fonds ci-dessus) */
.section:nth-of-type(1) .portrait,
.section:nth-of-type(2) .portrait,
.section:nth-of-type(3) .portrait,
.section:nth-of-type(4) .portrait,
.section:nth-of-type(5) .portrait{display:none}

.portrait{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px}
.portrait img{max-height:92%;max-width:92%;object-fit:contain;filter:drop-shadow(0 10px 24px rgba(0,0,0,.25));}

.img-right .section-inner{grid-template-columns:1fr 1.1fr}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .section-inner{grid-template-columns:1fr;min-height:unset}
  .photo{height:420px;border-radius:16px;overflow:hidden}
  .img-right .section-inner, .img-left .section-inner{grid-template-columns:1fr}
  .title{font-size:24px}
  .desc{font-size:16px}
  header .container{padding:18px 20px}
}
@media (max-width: 780px){
  nav ul{gap:18px}
}

/* ===== 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 */
}
.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;
}  
.footer--cosmic::before,
.footer--cosmic::after {
  content:"";
  position: absolute; inset: 0;
  z-index: -2;
}
.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%);
}
.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;
}
.sky { position: absolute; inset: 0; z-index: -1; }
.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;
}
.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;
}
.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-section ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.menu-nav { margin-left: 40px; }
.footer a { color: #EAE8FF; opacity: .95; text-decoration: none; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.contact-list li { display: flex; align-items: center; gap: 5px; }
.contact-list li span i { color: #EAE8FF; }
.footer-brand img {
  height: 160px; width: auto; display: block;
  filter: drop-shadow(0 10px 28px rgba(196,176,255,.35));
}
.footer--cosmic .footer-brand { margin-left: 0; }
.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; }




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

@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);
  }
  
  /* Sections responsive */
  .section { margin-bottom: 20px; }
  .section-inner { 
    grid-template-columns: 1fr; 
    min-height: auto;
    gap: 0;
  }
  
  /* Ajustement spécifique pour Marion et Driton (descriptions plus longues) */
  .section:nth-of-type(3) .panel,
  .section:nth-of-type(4) .panel {
    padding: 16px 16px;
    gap: 4px; /* Réduit l'espace entre les éléments */
  }
  
  .section:nth-of-type(3) .title,
  .section:nth-of-type(4) .title {
    margin-bottom: 8px; /* Réduit l'espace sous le titre */
  }
  
  .section:nth-of-type(3) .desc,
  .section:nth-of-type(4) .desc {
    margin-bottom: 12px; /* Réduit l'espace sous la description */
  }
  
  /* Panels responsive */
  .panel { 
    order: 2;
  }
  .title { 
    font-size: 20px; 
    margin-bottom: 12px;
  }
  .desc { 
    font-size: 14px; 
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .btn { 
    font-size: 14px; 
    padding: 10px 16px;
  }
  
  /* Photos responsive - Images carrées élégantes */
  .photo { 
    min-height: 200px; 
    order: 1;
    margin-bottom: 0px;
    border-radius: 16px;
    overflow: hidden;
  }
  
  /* Supprime complètement l'image de fond sur mobile */
  .photo::before {
    display: none !important;
  }
  
  /* Affiche les vraies images sur mobile */
  .portrait {
    display: flex !important;
    z-index: 2;
    position: relative;
  }
  .portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    opacity: 0.9;
  }
  
  /* Horoscope bloc responsive */
  .astro-bloc {
    font-size: 13px;
    padding: 10px 12px;
  }
  
  /* 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; }
}

