/* 
 Fichier : home.css
 Auteur : ElsaFlore
 Description : à propos responsive optimisé
*/
@charset "UTF-8";

/* --- RESET GLOBAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- BODY & FOND --- */
body {
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(20px, 5vw, 50px);
  position: relative;
  overflow: auto; 
  background: linear-gradient(135deg, rgb(12,36,50) 0%, rgb(8,33,140) 31%, rgb(44,146,209) 74%, rgb(155,81,224) 100%);
  line-height: 1.7; /* Aération du texte */
}

canvas { 
  position: fixed; 
  top:0; 
  left:0; 
  width:100%; 
  height:100%; 
  z-index: -1; 
  pointer-events: none; /* laisse passer les clics */
}
body > *:not(canvas) {
  position: relative;
  z-index: 1;
}

/* --- LIENS --- */
body a {
  color: #a0e7ff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

body a:hover {
  color: #fff;
}

h1 {
  font-weight:700;
  background: linear-gradient(135deg, rgb(255,160,0), rgb(255,0,230));
  -webkit-background-clip: text;
  margin-top: 1.25rem;
  margin-bottom: clamp(2rem, 6vw, 3rem);
  text-align: center;
  z-index:1;
}

subtitle {
  text-align: center;
  margin: 0 auto clamp(1rem, 4vw, 2rem);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  max-width: 1200px;
  color: #fff;
}

h2 {
  text-align: left;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  margin: 0 auto;
	margin-bottom: 30px;
  max-width: 1200px;
  font-family: "Circe", sans-serif;
}

h3 {
  text-align: left;
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  margin: 0 auto;
  max-width: 1200px;
  font-family: "Circe", sans-serif;
}

p {
  text-align: left;
  margin-bottom: 20px;
  width: 100%;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* --- NAV BUTTONS --- */
.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: clamp 1rem;
  margin-bottom: clamp 1rem;
}

.nav-buttons a {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.9rem 4rem;
  flex: 1 1 auto;
  min-width: 8rem;
  border-radius: 3rem;
  text-align: center;
  color: white;
  text-decoration: none;
  background: transparent;
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.nav-buttons a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4rem;
  padding: 0.2rem;
  background: linear-gradient(135deg, rgb(255,160,0), rgb(255,0,230));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
          mask-composite: exclude;
  z-index: -1;
  pointer-events: none;
  box-sizing: border-box;	
}

.nav-buttons a span {
  font-weight: 600;
  position: relative;
  background: linear-gradient(135deg, rgb(255,160,0), rgb(255,0,230));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 0;
}

.nav-buttons a:hover::before {
  filter: brightness(1.2);
}

footer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  margin-top: clamp(40px, 7vw, 70px);
  padding-top: 25px;
  color: white;
  font-size: 0.95rem;
  margin: 0 6px;
  position: relative;
  z-index: 1;
}
footer a {
  color: white;
  text-decoration: underline;
  margin: 0 6px;
  position: relative;
  z-index: 1;
}

.about {
  display: grid;
  grid-template-columns: 40% 60%;  /* répartition des colonnes */
  gap: 40px;                        /* espace entre image et texte */
  margin-bottom : 0px;
  align-items: center;
  padding: 20px 10%;
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-text {
  padding: 20px;
}

/* --- MEDIA QUERIES --- */

/* Tablette large */
@media (max-width: 1280px) {
  h1 { font-size: clamp(2.8rem, 5vw, 4rem); }
  h2 { font-size: clamp(1.4rem, 3vw, 1.6rem); }
  h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
  p  { font-size: clamp(0.9rem, 2vw, 1rem); }

  .nav-buttons {
    flex-wrap: wrap;        /* passe sur 2 lignes si besoin */
    gap: 2rem;
  }
  .nav-buttons a {
    flex: 1 1 45%;          /* 2 colonnes maximum */
    min-width: 120px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    padding: clamp(0.6rem, 1.5vw, 1rem) clamp(2rem, 2vw, 3rem);
  }
}

/* Petit écran / Laptop */
@media (max-width: 1024px) {
  h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); }
  h2 { font-size: clamp(1.4rem, 3vw, 1.6rem); }
  h3 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); }
  p  { font-size: clamp(0.9rem, 2vw, 1rem); }

  .nav-buttons {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .nav-buttons a {
    flex: 1 1 45%;          /* 2 colonnes sur mobile */
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    padding: clamp(0.5rem, 1.5vw, 0.9rem) clamp(1.5rem, 2vw, 2.5rem);
  }
}

/* Mobile moyen */
@media (max-width: 768px) {
  h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
  h2 { font-size: clamp(1.3rem, 4vw, 1.8rem); }
  h3 { font-size: clamp(1rem, 3vw, 1.2rem); }
  p  { font-size: clamp(0.85rem, 3vw, 0.95rem); }
	
	.about {
    grid-template-columns: 1fr;  /* une seule colonne */
    text-align: center;
	padding: 5px 2%;
  }
	
	.about-image {
    padding: 5px 2%;
  }

  .about-text {
    padding: 5px 2%;
  }
	
  .nav-buttons {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .nav-buttons a {
    flex: 1 1 48%;          /* 2 colonnes sur mobile */
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    padding: clamp(0.4rem, 1.5vw, 0.8rem) clamp(1rem, 3vw, 2rem);
    margin-bottom: clamp(0.8rem, 2vw, 1.5rem); /* écart vertical entre les lignes */
  }
	.nav-buttons a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 4rem;
    padding: 0.1rem; /* bordure plus fine */
    background: linear-gradient(135deg, rgb(255,160,0), rgb(255,0,230));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
            mask-composite: exclude;
    z-index: -1;
    pointer-events: none;
    box-sizing: border-box;  
  }
	
 .about-section {
    flex-direction: column;
}
  
  .about-section img {
    max-width: 100%;
  }
}
	
/* Petit mobile */
@media (max-width: 480px) {
  h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  h2 { font-size: clamp(1rem, 5vw, 1.2rem); }
  h3 { font-size: clamp(0.95rem, 4vw, 1.1rem); }
  p  { font-size: clamp(0.8rem, 4vw, 0.9rem); }
.nav-buttons {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .nav-buttons a {
    flex: 1 1 45%;          /* 2 colonnes sur mobile */
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    padding: clamp(0.4rem, 1.5vw, 0.8rem) clamp(1rem, 3vw, 2rem);
    margin-bottom: clamp(0.8rem, 2vw, 1.5rem); /* écart vertical entre les lignes */
  }
	.nav-buttons a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 4rem;
    padding: 0.1rem; /* bordure plus fine */
    background: linear-gradient(135deg, rgb(255,160,0), rgb(255,0,230));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
            mask-composite: exclude;
    z-index: -1;
    pointer-events: none;
    box-sizing: border-box;  
  }
}