/* ========== Reset / Base ========== */
*{ box-sizing: border-box; margin:0; padding:0; }
:root{
  --card-bg: rgba(255, 255, 255, 0.207);
  --accent: #ffffff;
  --muted: #444;
  --glass-blur: 8px;
  --radius-lg: 22px;
  --shadow-strong: 0 6px 20px rgba(0, 0, 0, 0.695);
  --max-width: 440px;
  --gutter: 20px;
}
html,body{ height:100%; font-family:"copperplate",sans-serif; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; color:#000000; }

/* ========== Background wrapper ========== */
.ecran{
  width:100%;
  min-height:100dvh;         /* dynamic vh for mobiles */
  height:auto;
  background-image: url("Media/IMG_5422.jpeg");
  background-position: center;
  background-size: cover;
  display:flex;
  justify-content:center;
  align-items:flex-start;    /* avoids cut on top on iPhone */
  padding: 40px 16px 24px;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}

/* ========== Main card ========== */
.carte{
  width: 92%;
  max-width: var(--max-width);
  background: var(--card-bg);
  border-radius: 16px;
  padding: 34px 22px;
  box-shadow: var(--shadow-strong);
  text-align:center;
  color: #111;
  backdrop-filter: blur(var(--glass-blur));
}

/* Logo */
.logo{
    width: 260px;
    max-width: 90%;
    object-fit: contain;
    display:block;
    margin: 0 auto 14px auto;
  }

/* Title & intro */
h1{
  font-size: 34px;
  line-height:1.05;
  margin-bottom: 10px;
  color:#000000;
}
.intro{
  font-size: 16px;
  color:var(--muted);
  margin-bottom: 12px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* Social icon row */
.reseau{
  display:flex;
  justify-content:center;
  gap: 12px;
  margin: 12px 0 18px;
}
.reseau img{
  width:44px;
  height:44px;
  border-radius:50%;
  object-fit:cover;
  display:inline-block;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.reseau a:focus img, .reseau img:hover{
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

/* Buttons */
.actions{
  display:flex;
  gap: 12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-bottom: 18px;
}
.bouton{
  display:inline-block;
  text-decoration:none;
  padding: 10px 22px;
  font-weight:700;
  border-radius: 28px;
  background: #b8b8b891;
  color: var(--accent);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.bouton.outline{
  background: #b8b8b891;
  border: 2px solid rgba(0,0,0,0.06);
  color: #ffffff;
}

/* ========== Social cards (TikTok / Instagram) ========== */
.social-grid{
  display:flex;
  flex-direction:column;
  gap: 16px;
  margin-top: 20px;
}
.social-card{
  background: rgba(255, 255, 255, 0.325);
  padding:14px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 26px rgba(0,0,0,0.08);
  text-align:center;
}
.social-miniatures{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-bottom: 10px;
}
.social-miniatures img{
  width: 86px;
  height:120px;
  border-radius: 14px;
  object-fit:cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transform: rotate(-8deg);
}
.social-miniatures img:nth-child(2){ transform: rotate(0deg) scale(1.02); }
.social-miniatures img:nth-child(3){ transform: rotate(8deg); }

.social-title{ font-size:16px; margin-bottom:6px; color:#000; font-weight:700; }
.social-info{ color:var(--muted); font-size:14px; margin-bottom:10px; display:flex; align-items:center; justify-content:center; gap:8px; }
.social-info .icon{ width:18px; height:18px; display:inline-block; }

.follow-btn{
  display:inline-block;
  padding: 10px 22px;
  border-radius: 18px;
  text-decoration:none;
  background:#b8b8b891;
  color:#ffffff;
  font-weight:700;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.bloc-reseau {
    margin-bottom: 20px;
}

/* Footer */
.footer{ font-size:12px; color:#000000; margin-top:18px; }

/* ========== Responsive tweaks ========== */
@media (max-width:420px){
  h1{ font-size:28px; }
  .intro{ font-size:15px; max-width: 300px; }
  .miniature-card{ width:84px; height:126px; }
  .social-miniatures img{ width:70px; height:100px; }
  /* Mise en colonne sur mobile */
  .social-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
}

/* -------------------------
   Popup d'âge — affichage responsive
   ------------------------- */
   .age-popup {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    padding: 20px; /* espace quand l'écran est petit */
  }
  
  .age-popup.open { display: flex !important; }
  
  .age-popup-content {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  }
  
  /* Titre */
  .age-popup-content h2 {
    font-size: 22px;
    margin: 0 0 8px;
    letter-spacing: 1px;
  }
  
  /* Style des paragraphes normaux dans le popup */
.age-popup-content p:not(.age-error) {
  font-size: 16px;
  margin-bottom: 15px;
  color: #333;
}
  
  /* --- Inputs (selects) --- */
  .age-inputs {
    display: flex;
    justify-content: space-between; /* fait tenir les selects dans le cadre */
    gap: 10px;
    margin-bottom: 16px;
    align-items: center;
  }
  
  /* On force les selects à s'adapter au conteneur */
  .age-inputs select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: calc((100% - 20px) / 3); /* 3 selects avec 10px gap -> calc pour tenir */
    min-width: 80px;
    padding: 10px 8px;
    font-size: 15px;
    border-radius: 10px;
    border: 1.8px solid rgba(0,0,0,0.12);
    background: #fff;
    color: #111;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  }
  
  /* si l'écran est trop étroit on empile (mobile très petit) */
  @media (max-width:360px) {
    .age-inputs {
      flex-direction: column;
      gap: 10px;
    }
    .age-inputs select {
      width: 100%;
    }
  }
  
  /* --- Boutons : côte à côte --- */
  .age-popup-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: nowrap;
  }
  
  /* style commun boutons */
  .age-popup-buttons button {
    flex: 1 1 50%; /* deux boutons qui partagent l'espace */
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }
  
  /* Valider = VERT + priorité visuelle */
  #age-submit {
    background: #28a745;
    color: #fff;
    font-weight: 700;
  }
  
  /* Annuler = ROUGE */
  #age-cancel {
    background: #e63946;
    color: #fff;
    font-weight: 700;
  }
  
  /* Small screens: garder boutons côte-à-côte si possible, sinon empiler proprement */
  @media (max-width:420px) {
    .age-popup-buttons { gap: 10px; }
    .age-popup-buttons button { font-size: 15px; padding: 10px; }
  }
  
  /* message d'erreur (bien visible) */
  .age-error {
    color: #d00000;
    font-size: 20px;
    margin-top: 10px;
    display: none; /* contrôlé en JS */
    font-weight: 700;
    text-align: center;
  }
