:root {
  --color-green-50: #f0fdf4;
  --color-green-100: #dcfce7;
  --color-green-200: #bbf7d0;
  --color-green-300: #86efac;
  --color-green-400: #4ade80;
  --color-green-500: #22c55e;
  --color-green-600: #16a34a;
  --color-green-700: #15803d;
  --color-green-800: #166534;
  --color-green-900: #14532d;
  --transition-base: all 0.3s ease;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 
    Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  color: #1a1a1a;
  background-color: #f8f9fa;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: var(--transition-base);
  padding: 2rem 0;
}

.header.scrolled {
  background-color: var(--color-green-800);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
}

.logo-year {
  color: var(--color-green-200);
  font-size: 0.875rem;
}

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-base);
}

.nav-link:hover {
  color: var(--color-green-200);
}

.lang-button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
}

.lang-button:hover {
  color: var(--color-green-200);
}

.mobile-menu-button {
  display: block;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }
}

/* Hero section styles */
.hero {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: linear-gradient(to bottom right, var(--color-green-900), var(--color-green-800), var(--color-green-700));
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 8rem;
    padding-bottom: 6rem;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.2;
background-image: url('C:/Users/lenovo/Desktop/site/khames/image/green.jpg'); /* modifier l'image de l'en tête*/
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .hero-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.logos {
  display: flex;
  gap: 2rem;
}
.logo-container {
  background-color: white;
  padding: 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: scale(1);
  transition: var(--transition-base);
}

.logo-container:hover {
  transform: scale(1.05);
}

.institution-logo {
  width: 5rem;
  height: 5rem;
  background-color: var(--color-green-100);
  border-radius: 9999px;
  border: 2px solid green; /* ✅ contour du cercle */
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .institution-logo {
    width: 6rem;
    height: 6rem;
  }
}

.institution-logo span {
  color: var(--color-green-800);
  font-weight: 700;
  font-size: 1.25rem;
}

.hero-text {
  text-align: center;
  color: white;
  max-width: none;
}

@media (min-width: 1024px) {
  .hero-text {
    text-align: right;
  }
}

.hero-text h1 {
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 3rem;
  }
}

.event-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .event-info {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .event-info {
    justify-content: flex-end;
  }
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-item i {
  color: var(--color-green-200);
}

.register-button {
  background-color: white;
  color: var(--color-green-800);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: var(--transition-base);
}

.register-button:hover {
  background-color: var(--color-green-50);
  transform: scale(1.05);
}

/* Main content styles */
.main-content {
  padding: 3rem 0;
}

#gallery {
  scroll-margin-top: 300px;
}
#hero, #timeline, #ImportantDates {
  scroll-margin-top: 530px;
}
#committees {
  scroll-margin-top: 60px;
}
#topics {
  scroll-margin-top: 120px;
}



.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 1.125rem;
  color: #666;
}

.title-line {
  width: 5rem;
  height: 0.25rem;
  background-color: var(--color-green-600);
  border-radius: 9999px;
  margin: 1rem auto 0;
}

/* Committee styles */
.committees-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .committees-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .committees-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.committee-card {
  background-color: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: var(--transition-base);
}

.committee-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.committee-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  justify-content: center; /* <-- Ajoute cette ligne */
}

.committee-icon {
  background-color: var(--color-green-100);
  color: var(--color-green-600);
  padding: 0.5rem;
  border-radius: 9999px;
}

.committee-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-green-800);
}

.committee-members {
  list-style: none;
}

.committee-members li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.member-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--color-green-600);
  border-radius: 9999px;
  margin-top: 0.5rem;
  flex-shrink: 0;
  transition: var(--transition-base);
}

.committee-members li:hover .member-dot {
  background-color: var(--color-green-500);
}

.member-info {
  flex: 1;
}

.member-name {
  font-weight: 500;
}

.member-title {
  font-size: 0.875rem;
  color: #666;
}

/* Footer styles */
.footer {
  background-color: var(--color-green-900);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section p {
  color: var(--color-green-200);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: var(--color-green-200);
  transition: var(--transition-base);
}

.social-link:hover {
  color: white;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--color-green-200);
  text-decoration: none;
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: white;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.contact-item i {
  color: var(--color-green-300);
  flex-shrink: 0;
}

.contact-item a {
  color: var(--color-green-200);
  text-decoration: none;
  transition: var(--transition-base);
}

.contact-item a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-green-800);
  text-align: center;
}

.footer-bottom p {
  color: var(--color-green-300);
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeDown {
  animation: fadeDown 0.3s ease-out forwards;
}

/* Gallery styles */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: var(--transition-base);
}

.gallery-item:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.25rem);
}

.gallery-image {
  position: relative;
  height: 16rem;
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover .gallery-image img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  transform: translateY(0.25rem);
  transition: var(--transition-base);
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

.gallery-info h3 {
  font-weight: 600;
}

.gallery-info p {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
}

.lightbox-image {
  max-height: 80vh;
  max-width: 90vw;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-base);
}

.lightbox-close:hover {
  color: var(--color-green-300);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 0.5rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-base);
}

.lightbox-nav:hover {
  background-color: var(--color-green-700);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
}

.lightbox-caption h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.lightbox-caption p {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Add these styles to your existing CSS file */
.countdown-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.countdown-item {
  background-color: var(--color-green-700);
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  color: white;
}

.countdown-value {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
}

.countdown-label {
  display: block;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}

/* 2 cartes côte à côte sur desktop */
.committees-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

/* Sur mobile : repasse en colonne */
@media (max-width: 900px) {
  .committees-row {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
}

/* Pour la liste à deux colonnes internes Scientific Committee */
.committee-list-two-cols {
  display: flex;
  gap: 2rem;
  justify-content: center;
}
.committee-list-two-cols ul {
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 900px) {
  .committee-list-two-cols {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.committee-card {
  margin-bottom: 1.5rem;
  /* conserve tes autres styles déjà en place */
}

/* Pour corriger la hauteur des cartes */
.committee-card {
  align-self: flex-start;
}

/* Pour que les colonnes n'aient pas toutes la même hauteur */
.committee-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem; /* facultatif : espace entre les colonnes */
}

/* Style optionnel pour améliorer la présentation */
.committee-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1rem;
}
.logo {
  height: 60px; /* Ajustez selon votre logo */
}

.logo-img {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0));
}

.usthb-logo {
  width: 80px;
  height: auto;

}

.logos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px; /* Augmentation de l'espacement */
  flex-wrap: nowrap;
  padding: 15px 0;
}

.logo-item {
  padding: 8px; /* Espacement interne légèrement augmenté */
  height: 80px;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 8px; /* Ajout de coins arrondis */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Ombre subtile */
}

/* Version mobile */
@media (max-width: 768px) {
  .logos-container {
    gap: 10px; /* Espacement mobile légèrement réduit */
    padding: 10px;
  }
  
  .logo-item {
    padding: 5px;
    height: 70px;
  }
}
.logos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px; /* Augmentation de l'espacement */
  flex-wrap: nowrap;
  padding: 15px 0;
}

.logo-item {
  padding: 8px; /* Espacement interne légèrement augmenté */
  height: 80px;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 8px; /* Ajout de coins arrondis */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Ombre subtile */
}

/* Version mobile */
@media (max-width: 768px) {
  .logos-container {
    gap: 10px; /* Espacement mobile légèrement réduit */
    padding: 10px;
 background: white;
  }
  
  .logo-item {
    padding: 5px;
    height: 70px;
  }
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.institutional-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.4;
  text-align: center;
}

.separator {
  color: #94a3b8;
  padding: 0 0.5rem;
  user-select: none;
}

.institution-item {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .institutional-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .separator {
    display: none;
  }
  
  .institution-item {
    white-space: normal;
    text-align: center;
    line-height: 1.5;
  }
}
/* Si vous n’avez pas déjà un fichier dédié, ajoutez ceci dans styles.css */

.illustration-card{
  background:#f8fafc;          /* même fond que les autres cartes */
  border-left:6px solid green; /* rappel du trait vert */
  padding:0;                   /* on laisse l’image toucher les bords */
  display:flex;                /* centre l’image */
  justify-content:center;
  align-items:center;
  min-width:300px;             /* même logique que les autres cartes */
  max-width:700px;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
  border-radius:12px;
}

.illustration-card img{
  width:100%;
  height:auto;
  border-radius:12px;          /* bords arrondis identiques */
}
.event-title{
  /* 1.5 rem mini – entre 3 vw et +1 rem en fonction de la largeur –
     2.5 rem maxi : ajustez les valeurs selon vos goûts */
  font-size: clamp(1.5rem, 3vw + 1rem, 2.5rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  margin: 0 0 1rem;
  color: #fff;
}
/* Titres dans la bannière héro */
.site-title{
  font-family: 'Inter', sans-serif;
  font-size: 1.75rem;       /* ~28 px */
  font-weight: 600;
  text-align: center;
  margin: 0 0 .25rem;
  color: #ffffff;           /* blanc sur l’overlay sombre */
}

.site-subtitle{
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;       /* ~20 px */
  font-weight: 500;
  text-align: center;
  margin: 0 0 .75rem;
  color: #ffffff;
  letter-spacing: .5px;
}

.event-title{
  font-family: 'Inter', sans-serif;
  font-size: 1rem;          /* ~32 px – adaptez si besoin */
  font-weight: 700;
  text-align: center;
  margin: 0 0 1rem;
  color: #ffffff;
  line-height: 1.25;
}

/* Ajustement sur mobile */
@media (max-width: 768px){
  .site-title{ font-size: 1.35rem; }
  .site-subtitle{ font-size: 1.1rem; }
  .event-title{ font-size: 1.5rem; }
}
.nav-links .nav-link {
  font-size: 1.2rem; /* ou 18px, ou tout autre valeur selon ton besoin */
  font-weight: 500; /* optionnel, pour un peu plus de lisibilité */
}
.lang-button span {
  font-size: 1.1rem;
}
.institution-logo-link {
  text-decoration: none;
}

.institution-logo:hover {
  cursor: pointer;
  box-shadow: 0 0 0 3px #10b981; /* ou laisse sans box-shadow si tu veux rien */
}
.event-dates {
  font-size: 2.25rem;
  font-weight: 500;
  color: white;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
  width: 100%;
}
.scrolling-banner {
  width: 100%;
  overflow: hidden;
  background-color: var(--color-green-900); /* ou la couleur de ton choix */
  padding: 1rem 0;
}

.scrolling-text {
  display: inline-block;
  white-space: nowrap;
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
  animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
/* ---- Grille deux colonnes ---- */
.info-grid{
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;        /* mobile : une seule colonne */
}

@media (min-width: 1024px){
  .info-grid{
    grid-template-columns: 1fr 1fr;  /* desktop : deux colonnes égales */
  }
}

/* Cartes homogènes (mêmes marges / ombres que tes committee-card) */
.info-card{
  background: #fff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Centrage du bouton */
.submit-box{
  text-align: center;
  margin: 1.5rem 0;
}

/* Facultatif : largeur max du paragraphe pour la lisibilité */
.abstract-instructions{
  max-width: 60rem;
  margin: 0 auto;
text-align: justify;
  text-justify: inter-word;   /* option Edge/IE */
  hyphens: auto;              /* césure propre */
}
/* — élargit ce container particulier — */
.container-wide{
  max-width: 1900px;   /* ou 90vw, 1440px… à toi de choisir */
  margin-inline: auto; /* reste centré */
}

/* — paragraphe plein large + justification — */
.abstract-instructions{
  /* max-width: none;      ← enlève ou mets 60rem si tu veux une limite douce */
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.no-wrap{
  white-space: nowrap;   /* empêche toute coupure dans la séquence */
}
.justified-text {
  text-align: justify;
  text-justify: inter-word; /* Meilleure compatibilité */
  hyphens: auto;            /* Coupures propres des mots */
}
.gallery-container {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 10px 0;
}

.gallery-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.gallery {
  display: flex;
  gap: 20px;
  animation: scrollGallery 20s linear infinite;
}

.gallery img {
  width: 240px;
  height: auto;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
}

@keyframes scrollGallery {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.slogan-vertical {
  position: fixed;
  top: 30%;
  left: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #eafbe7 60%, #daf5d9 100%);
  border-radius: 0 18px 18px 0;
  box-shadow: 2px 4px 14px rgba(34,139,34,0.10);
  padding: 24px 18px 24px 8px;
  display: flex;
  align-items: center;
  transition: transform 0.28s cubic-bezier(.36,1.04,.68,.98), box-shadow 0.3s;
  /* Taille initiale */
  font-size: 1.35rem;
  cursor: pointer;
}

.slogan-vertical span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 1em;
  font-weight: 700;
  color: #217346;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
}

.slogan-vertical i {
  color: #228B22;
  margin-bottom: 16px;
  font-size: 1.6em;
}

.slogan-vertical strong {
  color: #0e7030;
}

/* Animation au survol */
.slogan-vertical:hover {
  transform: scale(1.20);
  box-shadow: 0 8px 22px rgba(34,139,34,0.16), 0 2px 12px rgba(0,0,0,0.07);
  background: linear-gradient(120deg, #d2fad7 70%, #c0ebc7 100%);
}

@media (max-width: 900px) {
  .slogan-vertical {
    top: unset;
    bottom: 30%;
    padding: 10px 5px 10px 2px;
    font-size: 1.05rem;
  }
  .slogan-vertical span {
    font-size: 0.98em;
  }
}
/* Centrage des cartes */
.committee-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Container pour 2 colonnes internes dans la carte scientifique */
.committee-list-two-cols {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.committee-list-two-cols ul {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 900px) {
  .committee-list-two-cols {
    flex-direction: column;
    gap: 0.5rem;
  }
}
.committee-card {
  margin-bottom: 1.5rem;
  /* le reste inchangé */
}
.honorary-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 2rem;
}
.honorary-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 1.1rem 1.2rem;
  min-width: 0;           /* pour éviter que ce soit trop large */
  max-width: 300px;       /* réduit par rapport à 500px */
  width: 100%;            /* occupe la largeur dispo, mais ne dépasse pas max-width */
  margin: 0 auto;
}

@media (max-width: 950px) {
  .honorary-row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .honorary-card {
    max-width: 95vw;
    min-width: 0;
  }
}

.honorary-stack {
  display: flex;
  flex-direction: column;
  align-items: center;   /* Centre horizontalement */
  gap: 2rem;             /* Espace entre les deux cartes */
  margin-bottom: 2rem;
}

.honorary-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2rem;
  min-width: 320px;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}
.topics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .topics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.topic-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
  padding: 1.7rem 1.2rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 210px;
  transition: box-shadow 0.2s;
}

.topic-card:hover {
  box-shadow: 0 8px 32px rgba(34,139,34,0.10);
  transform: translateY(-4px) scale(1.03);
}

.topic-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.topic-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  text-align: center;
  color: #15803d; /* vert foncé */
  margin-bottom: 0.7rem;
}

.topic-card p {
  font-size: 1rem;
  color: #444;
  text-align: center;
}
#gallery.section {
  margin-top: 3.5rem;
}
.topic-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.23s cubic-bezier(.45,1.2,.46,1), box-shadow 0.18s;
  box-shadow: 0 2px 6px rgba(34,139,34,0.09);
  background: #f6faf8;
}
.topic-card:hover .topic-img {
  transform: scale(1.18) rotate(-7deg);
  box-shadow: 0 8px 28px rgba(34,139,34,0.16);
}
.topic-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  min-height: 64px;
}
.section-space-bottom {
  margin-bottom: 3rem;   /* ou plus/moins selon le rendu désiré */
}

@media (max-width: 600px) {
  .section-space-bottom {
    margin-bottom: 2rem;
  }
}
.topic-img-big {
  width: 8cm;
  height: 4cm;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.3s ease, box-shadow 0.5s ease; /* ✅ ajout important */
}
.topic-card:hover .topic-img-big {
  transform: scale(1.16); /* ✅ effet d’agrandissement */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* ✅ ombre renforcée */
  z-index: 10;
  position: relative;
}

.topic-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;  /* laisse un tout petit espace avec le texte dessous */
  font-size: 1.18rem;
  font-weight: 700;
  text-align: center;
  color: #15803d; /* vert foncé */
}

#mainObjectives {
  width: 100%;
}

#mainObjectives li {
  background: #f0f0f0;
  margin: 14px 0;
  padding: 22px 32px;
  border-radius: 14px;
  font-size: 1.35rem;
  cursor: pointer;
  transition:
    font-size 0.28s cubic-bezier(.25,.8,.25,1),
    background 0.3s cubic-bezier(.25,.8,.25,1),
    box-shadow 0.28s cubic-bezier(.25,.8,.25,1),
    transform 0.26s cubic-bezier(.25,.8,.25,1);
  border-left: 7px solid #0e7030;
  font-weight: 500;
  user-select: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  width: 100%;
  box-sizing: border-box;
  display: block;
  transform: translateX(0) scale(1);
}
#mainObjectives li:hover {
  font-size: 2rem;
  background: linear-gradient(90deg, #d6ffd6 60%, #b8f3ba 100%);
  box-shadow: 0 8px 32px #b2ffb2;
  transform: translateX(25px) scale(1.04);
  z-index: 2;
  position: relative;
}
