/* ===============================
   RESET ET STRUCTURE
   =============================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  font-family: "Merriweather", "Helvetica Neue", Arial, sans-serif;
}

/* ===============================
   BACKGROUND GLOBAL (neutre)
   =============================== */
body {
  min-height: 100vh;
  background: #0b1d2f; /* neutre sombre pour laisser les moitiés colorées ressortir */
}

/* ===============================
   UTILITAIRES
   =============================== */
.text-center { text-align: center; }

/* ===============================
   ABOUT BUTTONS (page a_propos)
   =============================== */
.about-buttons {
  height: 100vh;
  display: flex;
  flex-direction: row;
  /* IMPORTANT : on étire les enfants pour qu'ils prennent toute la hauteur
     (leur background couvrira 100% de la moitié) */
  align-items: stretch;
  justify-content: stretch;
  position: relative;
  z-index: 1;
}

/* Chaque moitié occupe 50%, centre son contenu et porte *son* fond */
.about-buttons .left-side,
.about-buttons .right-side {
  width: 50%;
  display: flex;
  align-items: center;     /* centre le bouton verticalement */
  justify-content: center; /* et horizontalement */
  min-width: 0;
  padding: 2rem 1rem;
  /* pour que le fond couvre bien toute la zone */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* FOND PERMANENT PAR MOITIÉ (suivent les boutons) */
.about-buttons .left-side {
  background-image: linear-gradient(
    to bottom,
    rgba(1, 20, 60, 0.95),
    rgba(1, 70, 160, 0.92),
    rgba(30, 160, 210, 0.86),
    rgba(80, 220, 240, 0.80)
  );
}

.about-buttons .right-side {
  background-image: linear-gradient(
    to bottom,
    rgba(150, 35, 0, 0.95),
    rgba(245, 90, 20, 0.92),
    rgba(255, 170, 60, 0.86),
    rgba(255, 225, 110, 0.80)
  );
}

/* ---------- Boutons (style commun) ---------- */
.about-buttons .btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  min-width: clamp(260px, 40vw, 420px);
  max-width: 90vw;
  padding: clamp(1.2rem, 2vw, 2.5rem) clamp(2.5rem, 4vw, 4rem);
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  line-height: 1.3;
  text-decoration: none;
  color: #fff;

  /* Effet glass au repos (léger) */
  background: rgba(255, 255, 255, 0.08);
  border: 6px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* Relief */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 0;

  /* Transitions */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    border 0.3s ease;
}

/* Forme asymétrique en miroir + teinte propre au bouton */
.about-buttons .left-side .btn  {
  border-radius: 50px 0 50px 0;
  background: linear-gradient(
    to bottom,
    rgb(0, 100, 220),
    rgb(0, 150, 255)
  );
}
.about-buttons .right-side .btn {
  border-radius: 0 50px 0 50px;
  background: linear-gradient(
    to bottom,
    rgb(230, 90, 20),
    rgb(255, 180, 50)
  );
}

/* ---------- Animation interne (remplissage vers le centre) ---------- */
.about-buttons .btn::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  transform: scaleX(0);
  transition: transform 0.5s ease;
  z-index: -1;
  border-radius: inherit;
}

/* Gauche : remplissage depuis la gauche → centre (bleu lumineux) */
.about-buttons .left-side .btn::before {
  transform-origin: left;
  background: linear-gradient(
    to right,
    rgb(0, 90, 200),
    rgb(50, 170, 255),
    rgb(220, 245, 255)
  );
}

/* Droite : remplissage depuis la droite → centre (jaune lumineux) */
.about-buttons .right-side .btn::before {
  transform-origin: right;
  background: linear-gradient(
    to left,
    rgb(230, 110, 10),
    rgb(255, 200, 60),
    rgb(255, 250, 200)
  );
}

/* Déclenchement de l’animation de remplissage */
.about-buttons .btn:hover::before {
  transform: scaleX(1);
}

/* Hover : couleurs pleines via ::before, halo lumineux */
.about-buttons .btn:hover {
  background: none; /* on laisse ::before faire le fond */
  border: 4px solid #fff;
  transform: translateY(-5px);
  box-shadow:
    0 0 30px rgba(255, 255, 255, 0.7),
    0 0 15px rgba(255, 255, 255, 0.4);
}

/* ===== Empiler les boutons en très petit écran / zoom fort ===== */
@media (max-width: 900px) {
  .about-buttons {
    flex-direction: column;    
    height: 100vh;             
    min-height: 100vh;
    gap: 0;
    padding: 0;
  }

  .about-buttons .left-side,
  .about-buttons .right-side {
    width: 100%;
    flex: 1; 
    min-height: 50vh;
    padding: 2rem 1rem;
    justify-content: center;
    background-size: cover;
    background-position: center;
  }

  .about-buttons .btn {
    /* rétrécit proprement sans casser l’animation ni le style */
    min-width: clamp(200px, 85vw, 520px);
    max-width: min(92vw, 560px);
  }
}

