/* Variables globales */
:root {
  --mauve: #6a0dad;
  --mauve-light: #b388eb;
  --white: #ffffff;
  --grey-dark: #333333;
  --grey: #555555;
  --background: #f8f6fc;
  --text-primary: var(--grey-dark);
  --text-secondary: var(--grey);
  --accent: var(--mauve);
  --mauve2: #7e3ff2;
  --blanc2: #f8f8fa;
}



/* Dark mode */
[data-theme="dark"] {
  --background: #121212;
  --text-primary: #eeeeee;
  --text-secondary: #bbbbbb;
  --white: #1e1e1e;
  --grey: #888888;
  --mauve: #6a1b9a;
  --mauve-light: #8e44ad;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  background-color: var(--background);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Annule les règles globales de section pour le hero */
section.hero {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* HERO – Pleine largeur & pleine hauteur */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(145deg, var(--mauve2) 20%, var(--blanc2) 90%);
  color: var(--clair);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
  box-sizing: border-box;
}

/* Effet lumineux arrière-plan */
.hero::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at top right, rgba(42,1,71,0.4), transparent 70%);
  top: -20%;
  right: -20%;
  transform: rotate(20deg);
  filter: blur(50px);
  z-index: 0;
}

/* Contenu texte */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 50%;
  padding: 2rem;
  color: var(--noir);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 20px var(--ombre);
}

/* Image décorative à droite */
.hero-decor {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  animation: slideInRight 1.2s ease-out forwards;
  z-index: 1;
  border-radius: 15px;
}
.hero-decor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-right: 15px;
  border-radius: 15px;
}

/* Animation */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}


/* Titre */
.hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.hero h1 span {
  display: inline-block;
  background: linear-gradient(90deg, #f3e5f5, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Paragraphe */
.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0.5rem 0;
  line-height: 1.7;
  opacity: 0.9;
}

/* Bouton */
.hero .btn {
  margin-top: 2rem;
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 40px;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.hero .btn:hover {
  background: #fff;
  color: var(--mauve);
  transform: scale(1.05);
}

/* =========================== */
/*        SECTION STYLING     */
/* =========================== */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: auto;
  position: relative;
}
section h2 {
  font-size: 2.5rem;
  text-align: center;
  color: var(--mauve);
  margin-bottom: 2.5rem;
  position: relative;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--mauve);
  margin: 12px auto 0;
  border-radius: 10px;
  opacity: 0.9;
}


/* Présentation */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  align-items: center;
}
.grid-2 img {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}
.features-list {
  list-style: none;
  padding-left: 1rem;
}
.features-list li {
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 2rem;
  font-size: 1rem;
  color: var(--text-secondary);
}
.features-list li::before {
  content: "✔";
  color: var(--mauve);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat {
  background: var(--white);
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 2rem 3rem;
  text-align: center;
  transition: transform 0.3s ease;
}
.stat:hover {
  transform: scale(1.05);
}
.stat h3 {
  color: var(--mauve);
  font-size: 2.5rem;
}
.stat p {
  color: var(--grey);
  font-size: 1rem;
}

/* Rôles */
.role-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  width: 300px;
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-10px);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card h3 {
  margin: 1rem;
  color: var(--mauve);
  font-size: 1.2rem;
}
.card p {
  margin: 0 1rem 1.5rem;
  color: var(--text-secondary);
}
/* Section Updates */
.updates {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: auto;
  position: relative;
}

.updates h2 {
  font-size: 2.5rem;
  text-align: center;
  color: var(--mauve);
  margin-bottom: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}
.updates h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--mauve);
  margin: 12px auto 0;
  border-radius: 10px;
  opacity: 0.9;
}

/* Conteneur général */
.updates-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Grid principale : cards à gauche, image à droite */
.grid-main {
  display: flex;
  gap: 3rem;
  align-items: center; /* Centrage vertical de l'image par rapport aux cards */
  flex-wrap: wrap;
}

/* Cards deux par deux à gauche */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  flex: 1.5;
}

/* Individual card */
.card {
  background: var(--blanc);
  border-radius: calc(var(--radius) * 1.2);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card h3 {
  font-size: 1.3rem;
  color: var(--mauve);
  margin: 1rem;
  font-weight: 700;
}

.card p {
  font-size: 1rem;
  margin: 0 1rem 1.2rem;
  color: var(--noir);
  line-height: 1.5;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.card:hover img {
  transform: scale(1.05);
}

/* Image principale à droite et centrée verticalement */
.image_prince {
  flex: 1;
  display: flex;
  align-items: center; /* Centré verticalement */
  justify-content: center;
}

.image_prince img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px var(--ombre);
}

/* Texte au-dessus de l'image */
.updates-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--noir);
}

/* Section Partenaires */
.partenaires {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: auto;
  position: relative;
}

.partenaires h2 {
  font-size: 2.5rem;
  text-align: center;
  color: var(--mauve);
  margin-bottom: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.partenaires h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--mauve);
  margin: 12px auto 0;
  border-radius: 10px;
  opacity: 0.9;
}

/* Texte introductif */
.partenaires-text {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--noir);
  max-width: 900px;
  margin: 0 auto 3rem;
}

/* Cards partenaires */
.partenaires-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.partenaire-card {
  background: var(--blanc);
  border-radius: 20px; /* coins arrondis */
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Image prend toute la largeur */
.partenaire-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.partenaire-card h3 {
  font-size: 1.2rem;
  color: var(--mauve);
  font-weight: 700;
  padding: 1rem;
}

/* Hover */
.partenaire-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.partenaire-card:hover img {
  transform: scale(1.05);
}

/* Témoignages */
.testimonial-cards {
  display: grid;
  gap: 2rem;
}
.testimonial {
  background: var(--white);
  border-left: 5px solid var(--mauve);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
}
.testimonial p {
  font-style: italic;
  color: var(--grey);
}
.testimonial h4 {
  text-align: right;
  margin-top: 1rem;
  color: var(--mauve);
}

/* Suggestions */
.suggestion-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: auto;
}
.suggestion-form input,
.suggestion-form textarea {
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.suggestion-form button {
  background-color: var(--mauve);
  color: var(--white);
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
.suggestion-form button:hover {
  background-color: var(--mauve-light);
}

/* FAQ */
.faq-items {
  display: grid;
  gap: 1.5rem;
}
.faq-item {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
}
.faq-item h4 {
  color: var(--mauve);
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: var(--mauve);
  color: var(--white);
  padding: 2rem 1rem;
  text-align: center;
}
footer nav a {
  color: var(--white);
  margin: 0 1rem;
  text-decoration: none;
  font-size: 0.9rem;
}
footer nav a:hover {
  text-decoration: underline;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}
.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 {
  transition-delay: 0.4s;
}
.delay-2 {
  transition-delay: 0.8s;
}
@keyframes slideFade {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===========================
   Responsive amélioré
===========================*/

/* Mobile & Tablette (max-width: 768px) */
@media screen and (max-width: 768px) {
  /* HERO */
  .hero {
    padding: 6rem 1.5rem 5rem;
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    margin-top: 80px;
    max-width: 100%;
    padding: 1rem;
  }
  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  .hero h1 span {
    font-size: inherit;
  }
  .hero p {
    font-size: 1rem;
    max-width: 100%;
    margin: 0.5rem auto;
  }
  .hero .btn {
    width: 100%;
    max-width: 300px;
    padding: 1rem 0;
    font-size: 1.1rem;
    margin: 2rem auto 0;
  }
  .hero-decor img{
    width: 80%;

  }

  /* Sections */
  section {
    padding: 4rem 1rem;
    max-width: 100%;
  }
  section h2 {
    font-size: 2rem;
  }

  /* Grid 2 → stack vertical */
  .grid-2 {
    display: block;
  }
  .grid-2 > * {
    margin-bottom: 2rem;
    width: 100%;
  }

  /* Images */
  .grid-2 img {
    width: 100%;
    height: auto;
  }

  /* Features list */
  .features-list li {
    font-size: 0.95rem;
    padding-left: 1.5rem;
  }

  /* Stats */
  .stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .stat {
    width: 100%;
    max-width: 350px;
    padding: 1.5rem 2rem;
  }
  .stat h3 {
    font-size: 2rem;
  }
  .stat p {
    font-size: 0.9rem;
  }

  /* Role cards */
  .role-cards {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .card {
    width: 100%;
    max-width: 350px;
  }
  .card img {
    height: auto;
  }

  /* Testimonials */
  .testimonial-cards {
    display: block;
  }
  .testimonial {
    margin-bottom: 1.5rem;
  }

  /* Suggestions form */
  .suggestion-form {
    max-width: 100%;
    padding: 0 1rem;
  }
  .suggestion-form input,
  .suggestion-form textarea {
    font-size: 1rem;
  }
  .suggestion-form button {
    font-size: 1.1rem;
    padding: 1rem 2rem;
  }

  /* FAQ */
  .faq-items {
    display: block;
  }
  .faq-item {
    margin-bottom: 1.5rem;
  }

  /* Footer */
  footer {
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
  }
  footer nav a {
    display: inline-block;
    margin: 0 0.5rem;
    font-size: 0.9rem;
  }
}

/* Plus petit écran - Mobile très petit (max-width: 400px) */
@media screen and (max-width: 400px) {
  /* HERO */
  .hero {
    padding: 6rem 1.5rem 5rem;
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    margin-top: 80px;
    max-width: 100%;
    padding: 1rem;
  }
  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  .hero h1 span {
    font-size: inherit;
  }
  .hero p {
    font-size: 1rem;
    max-width: 100%;
    margin: 0.5rem auto;
  }
  .hero .btn {
    width: 100%;
    max-width: 150px;
    padding: 1rem 0;
    font-size: 1.1rem;
    margin: 2rem auto 0;
  }
  .hero-decor img{
    width: 80%;

  }
  section h2 {
    font-size: 1.7rem;
  }
  .features-list li {
    font-size: 0.9rem;
  }
  .stat h3 {
    font-size: 1.8rem;
  }
  .suggestion-form button {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
}

/* Tablette paysage et petits desktops (min-width: 769px et max-width: 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  section {
    padding: 5rem 2rem;
  }
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .role-cards {
    flex-wrap: wrap;
    justify-content: space-around;
  }
  .card {
    width: 45%;
    max-width: none;
  }
  .testimonial-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Responsive */
@media (max-width: 900px) {
  .grid-main {
    flex-direction: column;
    align-items: center; /* Centrage sur mobile */
  }

  .cards {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .image_prince img {
    max-height: 400px;
  }
}
/* ===========================
   Responsive pour .updates
===========================*/
/* ===========================
   Responsive .updates ≤1080px
===========================*/
@media screen and (max-width: 1080px) {
  .updates {
    padding: 5rem 2rem;
  }

  .updates h2 {
    font-size: 2.3rem;
    margin-bottom: 2rem;
  }

  .updates-text {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* Grid principale : empile image en bas */
  .grid-main {
    flex-direction: column; /* empile verticalement */
    gap: 2.5rem;
  }

  /* Cards restent deux par deux */
  .cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    width: 100%;
  }

  .card img {
    height: 150px;
  }

  .card h3 {
    font-size: 1.2rem;
  }

  .card p {
    font-size: 0.95rem;
  }

  /* Image principale en bas, centrée */
  .image_prince {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .image_prince img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
  }
}


/* ---- Mobile très petit (max 400px) ---- */
@media screen and (max-width: 400px) {
  .updates {
    padding: 4rem 1rem;
  }

  .updates h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .updates-text {
    font-size: 0.95rem;
    text-align: center;
  }

  .grid-main {
    flex-direction: column;
    gap: 2rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card img {
    height: 140px;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  .image_prince img {
    max-height: 280px;
  }
}

/* ---- Écrans larges (min 1200px) ---- */
@media screen and (min-width: 1200px) {
  .updates {
    padding: 8rem 2rem;
    max-width: 1400px; /* On donne plus de largeur à la section */
  }

  .updates h2 {
    font-size: 3rem;
  }

  .updates-text {
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
  }

  .grid-main {
    gap: 4rem;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 2.5rem;
  }

  .card img {
    height: 200px;
  }

  .card h3 {
    font-size: 1.4rem;
  }

  .card p {
    font-size: 1.05rem;
  }

  .image_prince img {
    max-height: 600px;
  }
}

