/* ===============================
   STRUCTURE GÉNÉRALE
   =============================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

/* ===============================
   TYPOGRAPHIE
   =============================== */
.section-heading,
.text-faded {
  font-family: "Merriweather", "Helvetica Neue", Arial, sans-serif;
  color: #fff;
}

.section-heading {
  margin-bottom: 1rem;
  font-weight: 700;
}

h1.section-heading {
  font-size: 4rem;
}

h2.section-heading {
  font-size: 2.75rem;
}

h3.section-heading {
  font-size: 1.75rem;
}

.text-faded {
  color: rgba(255, 255, 255, .85);
  font-size: 1.3rem;
  line-height: 1.6;
}

.text-white {
  line-height: 1.4;
}

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

.my-4 {
  margin: 1.5rem 0;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}


i {
  font-style: italic;
}

/* ===============================
   GRILLE
   =============================== */
section .container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

section .container + .container {
  margin-top: 80px;
}

section .row.flex {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

section .col-lg-8 {
  width: 100%;
  max-width: 100%;
}


/* ===============================
   SÉPARATEUR
   =============================== */
hr.light {
  border: none;
  border-top: 2px solid rgba(255, 255, 255, .3);
  width: 60px;
  margin: 1rem auto;
}

/* ===============================
   GALLERY
   =============================== */
.gallery-wrapper {
  width: 100%;
}

.gallery {
  display: grid;
  /* ↓ garde 400px en grand, mais ne dépasse jamais la largeur dispo */
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 26px;

  /* ↓ même esprit que avant, mais sans dépassement */
  width: min(100%, 1200px);
  margin-inline: auto;

  /* ↓ padding “comme avant”, mais inclus dans la boîte */
  padding: 40px 5vw;
  box-sizing: border-box;

  /* ↓ évite les scrollbars horizontales résiduelles */
  overflow-x: clip;
}



.gallery img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  break-inside: avoid;
  transition: transform .3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* ===============================
   Galerie spécifique pour « Ma vie étudiante »
   =============================== */
.gallery--etudiant { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.gallery--champi   { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.gallery--chess { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }


/* ===============================
   AOS
   =============================== */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: all .6s ease-in-out;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

/* ===============================
   ABOUT HEADER (inchangé)
   =============================== */
.about-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  min-height: 650px;
  padding: 0 1rem;
  background: linear-gradient(
    135deg,             /* haut gauche ➝ bas droit */
    #3e1804 0%,         /* encore plus foncé, brun intense */
    #88380a 40%,        /* ton de base */
    #d8610f 100%        /* bien plus clair, orangé lumineux */
  );
  overflow: hidden;
  pointer-events: none;
}

.about-header-content {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, .3);
  padding: 2rem 3rem;
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.about-header h1 {
  font-family: "Merriweather", "Helvetica Neue", Arial, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
}

.about-header .intro-text {
  color: rgba(255, 255, 255, .85);
  font-size: 1.5rem;
  max-width: 700px;
  margin: 1rem auto 0;
}

.about-header hr.light {
  border: none;
  border-top: 2px solid rgba(255, 255, 255, .3);
  width: 60px;
  margin: 1rem auto;
}

#typed-title,
#typed-intro {
  padding-right: 5px;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.particles-js-canvas-el {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
}


/* ===============================
   SECTION DÉCOUVRIR
   =============================== */
section.decouvrir {
  background: linear-gradient(
  135deg,
  #e2b029 0%,
  #e1531a 20%,
  #a83f1a 50%,
  #5a2d0c 100%
);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 100px 0;
}

/* ===============================
   SECTION VALEURS
   =============================== */
section.valeurs {
  background: linear-gradient(
  180deg,
  #ffd76a 0%,    /* Jaune doux */
  #faab50 20%,   /* Orange moyen */
  #d67a1e 50%,   /* Orange brûlé */
  #b3471c 100%   /* Brique / rouille clair au lieu de marron sombre */
);
  padding: 100px 0;
}

/* ===============================
   SECTION ETUDIANT
   =============================== */
section.etudiant {
  background: linear-gradient(
    135deg,
    #f6a623 0%,    /* Safran éclatant */
    #e65100 40%,   /* Orange brûlé */
    #b71c1c 80%,   /* Brique sombre */
    #4e342e 100%   /* Brun cannelle */
  );
  padding: 100px 0;
}

/* ===============================
   SECTION INTERETS
   =============================== */
section.interets {
  background: linear-gradient(
    135deg,
    #f7c04a 0%,   /* Jaune doré clair */
    #ee8c2c 30%,  /* Orange doux */
    #d95b1a 60%,  /* Orange foncé / brique */
    #873e1a 100%  /* Marron rustique */
  );
  padding: 100px 0;
}

.section-heading,
.text-faded {
  color: #fff; /* ou #f5f5f5 pour un blanc cassé */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Anti-overflow global */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
