*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Poppins', sans-serif;
  background:#fdf6f3;
  color:#111;
  line-height:1.6;
}

/* ===== HEADER ===== */
.header{
  backdrop-filter: blur(6px);
  position:sticky;
  top:0;
  z-index:1000;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 20px;
  background:linear-gradient(90deg, #ffffff, #fdf0f3);
  border-bottom:2px solid #f3a7b5;
}

.header-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.header-left img{
  width:50px;
  height:auto;
}

.header-right img{
  height:40px;
  width:auto;
}

.logo{
  font-size:16px;
  font-weight:600;
  line-height:1.2;
  color:#5a2a32;
  max-width:200px;
}

.header nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  gap: 8px 16px;
}

.header nav a{
  text-decoration:none;
  color:#5a2a32;
  font-weight:500;
  font-size:14px;
  position:relative;
  white-space:nowrap;
}

.header nav a::after{
  content:"";
  position:absolute;
  bottom:-5px;
  left:0;
  width:0;
  height:2px;
  background:#e88a9a;
  transition:0.3s;
}

.header nav a:hover::after{
  width:100%;
}

/* ===== HERO ===== */
.hero{
  padding:60px 20px 40px;
  background:linear-gradient(180deg,#fff,#fce4ea);
  text-align:center;
}

.hero h2{
  font-size:32px;
  font-weight:700;
  margin-bottom:15px;
  color:#5a2a32;
}

.hero p{
  max-width:100%;
  font-size:16px;
  color:#6b3b44;
  margin:0 auto;
}

/* ===== EQUIPE ===== */
#equipe{
  padding:60px 20px;
  background:#fff;
}

#equipe h2{
  font-size:28px;
  margin-bottom:40px;
  text-align:center;
  color:#5a2a32;
}

.team-container{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
  max-width:1200px;
  margin:0 auto;
}

.team-card{
  background:linear-gradient(180deg,#ffffff,#fff5f7);
  border:1px solid #f3c0ca;
  border-radius:16px;
  padding:20px;
  text-align:center;
  box-shadow:0 10px 30px rgba(0,0,0,0.05);
  transition:0.4s;
}

.team-card:hover{
  transform:translateY(-8px);
  box-shadow:0 15px 35px rgba(232,138,154,0.25);
}

.team-card img{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:12px;
  margin-bottom:15px;
}

.team-card h3{
  font-size:18px;
  margin-bottom:6px;
}

.team-role{
  font-size:13px;
  color:#c85c6f;
  font-weight:500;
  margin-bottom:10px;
}

.team-desc{
  font-size:14px;
  color:#555;
}

/* ===== SECTIONS GÉNÉRIQUES ===== */
.section{
  padding:60px 20px;
  background:#fff;
}

.section.grey{
  background:#fcebef;
}

.section h2{
  font-size:28px;
  margin-bottom:20px;
  text-align:center;
  color:#5a2a32;
}

.section-desc{
  max-width:700px;
  color:#555;
  margin:0 auto 40px;
  font-size:16px;
  text-align:center;
}

/* ===== VOITURE ===== */
.car-container{
  display:grid;
  grid-template-columns:1fr;
  gap:30px;
  align-items:center;
  max-width:1200px;
  margin:0 auto;
}

.car-text ul{
  list-style:none;
}

.car-text li{
  font-size:16px;
  margin-bottom:15px;
  color:#5a2a32;
}

.car-image img{
  width:100%;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

/* ===== TECH ===== */
.tech-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
  max-width:1200px;
  margin:0 auto;
}

.tech-card{
  background:linear-gradient(180deg,#ffffff,#fff5f7);
  border:1px solid #f3c0ca;
  padding:25px;
  border-radius:14px;
  text-align:center;
  font-weight:500;
  color:#5a2a32;
  box-shadow:0 10px 25px rgba(0,0,0,0.05);
  transition:0.3s;
}

.tech-card:hover{
  transform:translateY(-6px);
  box-shadow:0 15px 35px rgba(232,138,154,0.25);
}

/* ===== STAND ===== */
.stand-gallery{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
  max-width:1200px;
  margin:0 auto;
}

.stand-gallery img{
  width:100%;
  border-radius:16px;
  height:auto;
  min-height:200px;
  object-fit:cover;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

/* ===== AUTRES ÉQUIPES ===== */
.other-teams-container{
  display:grid;
  grid-template-columns:1fr;
  gap:25px;
  max-width:1200px;
  margin:0 auto;
}

.other-team-card{
  background:linear-gradient(180deg,#ffffff,#fff5f7);
  border:1px solid #f3c0ca;
  padding:25px;
  border-radius:18px;
  box-shadow:0 10px 25px rgba(0,0,0,0.05);
  transition:0.3s;
}

.other-team-card:hover{
  transform:translateY(-8px);
  box-shadow:0 15px 35px rgba(232,138,154,0.25);
}

.other-team-card h3{
  font-size:20px;
  margin-bottom:6px;
}

.other-team-projet{
  font-size:14px;
  color:#c85c6f;
  margin-bottom:12px;
  font-weight:500;
}

.other-team-desc{
  font-size:15px;
  color:#555;
  margin-bottom:20px;
}

.other-team-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.other-team-links a{
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  color:#5a2a32;
  border:1px solid #e88a9a;
  padding:8px 16px;
  border-radius:20px;
  transition:0.3s;
}

.other-team-links a:hover{
  background:#e88a9a;
  color:#fff;
  border-color:#e88a9a;
}

/* ===== CONTACT ===== */
.contact-container{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
  max-width:1200px;
  margin:0 auto;
}

.contact-card{
  background:linear-gradient(180deg,#ffffff,#fff5f7);
  border:1px solid #f3c0ca;
  padding:25px;
  border-radius:16px;
  text-align:center;
  box-shadow:0 10px 25px rgba(0,0,0,0.05);
}

.contact-card h3{
  margin-bottom:10px;
  color:#c85c6f;
}

.contact-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ===== SPONSORS ===== */
.sponsors{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:20px;
  margin-bottom:20px;
  flex-wrap:wrap;
  padding:0 20px;
}

.sponsors img{
  height:40px;
  width:auto;
  transition:0.3s;
  filter:grayscale(20%);
}

.sponsors a:hover img{
  filter:grayscale(0%);
  opacity:1;
  transform:scale(1.05);
}

/* ===== FOOTER ===== */
.footer{
  text-align:center;
  padding:30px 20px;
  background:linear-gradient(90deg,#5a2a32,#c85c6f);
  color:#fff;
  margin-top:60px;
}

.footer p{
  color:#fff;
  font-size:14px;
}

/* ================================================= */
/* ============ MEDIA QUERIES RESPONSIVE ========== */
/* ================================================= */

/* TABLETTES (600px et plus) */
@media(min-width:600px){
  .header{
    padding: 10px 30px;
  }
  
  .header-left img{
    width:60px;
  }
  
  .header-right img{
    height:45px;
  }
  
  .logo{
    font-size:18px;
    max-width:220px;
  }
  
  .header nav a{
    font-size:15px;
  }
  
  .hero{
    padding:80px 40px 50px;
  }
  
  .hero h2{
    font-size:40px;
  }
  
  .hero p{
    font-size:17px;
    max-width:700px;
  }
  
  #equipe,
  .section{
    padding:70px 40px;
  }
  
  #equipe h2,
  .section h2{
    font-size:32px;
  }
  
  .team-container{
    grid-template-columns:repeat(2,1fr);
    gap:25px;
  }
  
  .tech-grid{
    grid-template-columns:repeat(2,1fr);
    gap:25px;
  }
  
  .stand-gallery{
    grid-template-columns:repeat(2,1fr);
    gap:25px;
  }
  
  .other-teams-container{
    grid-template-columns:repeat(2,1fr);
    gap:30px;
  }
  
  .contact-container{
    grid-template-columns:repeat(2,1fr);
    gap:25px;
  }
  
  .sponsors img{
    height:45px;
  }
}

/* DESKTOP (900px et plus) */
@media(min-width:900px){
  .header{
    padding: 10px 40px;
    column-gap: 30px;
  }
  
  .header-left img{
    width:70px;
  }
  
  .header-right img{
    height:48px;
  }
  
  .logo{
    font-size:20px;
    max-width:240px;
  }
  
  .header nav{
    gap: 10px 22px;
  }
  
  .hero{
    padding:100px 60px 60px;
  }
  
  .hero h2{
    font-size:48px;
  }
  
  .hero p{
    font-size:18px;
    max-width:800px;
  }
  
  #equipe,
  .section{
    padding:80px 60px;
  }
  
  #equipe h2,
  .section h2{
    font-size:36px;
  }
  
  .team-container{
    grid-template-columns:repeat(3,1fr);
    gap:30px;
  }
  
  .tech-grid{
    grid-template-columns:repeat(3,1fr);
  }
  
  .stand-gallery{
    grid-template-columns:repeat(3,1fr);
  }
  
  .stand-gallery img{
    height:260px;
  }
  
  .other-teams-container{
    grid-template-columns:repeat(3,1fr);
  }
  
  .contact-container{
    grid-template-columns:repeat(3,1fr);
    gap:30px;
  }
  
  .car-container{
    grid-template-columns:1fr 1fr;
    gap:50px;
  }
  
  .car-text li{
    font-size:18px;
  }
  
  .sponsors{
    gap:40px;
  }
  
  .sponsors img{
    height:50px;
  }
}

/* GRAND DESKTOP (1200px et plus) */
@media(min-width:1200px){
  .team-container{
    grid-template-columns:repeat(5,1fr);
  }
  
  .team-card img{
    height:240px;
  }
}

/* TRÈS PETITS ÉCRANS (max 400px) */
@media(max-width:400px){
  .header{
    padding:10px 15px;
  }
  
  .header-left img{
    width:40px;
  }
  
  .header-right img{
    height:35px;
  }
  
  .logo{
    font-size:14px;
    max-width:150px;
  }
  
  .header nav a{
    font-size:12px;
  }
  
  .hero h2{
    font-size:26px;
  }
  
  .hero p{
    font-size:14px;
  }
  
  #equipe h2,
  .section h2{
    font-size:24px;
  }
  
  .section-desc{
    font-size:14px;
  }
  
  .team-card,
  .other-team-card,
  .contact-card,
  .tech-card{
    padding:15px;
  }
  
  .sponsors img{
    height:35px;
  }
  
  .footer{
    padding:25px 15px;
  }
}

/* ===== COURSE EN COURS ===== */
.course-section{
  padding:60px 20px;
  background:linear-gradient(180deg,#fff,#fce4ea);
}

.course-container{
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr;
  gap:30px;
  align-items:center;
}

.course-image img{
  width:100%;
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
  object-fit:cover;
}

.course-text h2{
  font-size:28px;
  color:#5a2a32;
  margin-bottom:15px;
}

.course-text p{
  font-size:16px;
  color:#6b3b44;
  line-height:1.7;
}

/* Responsive tablette+ */
@media(min-width:900px){
  .course-container{
    grid-template-columns:1fr 1.2fr; /* image gauche / texte droite */
    gap:50px;
  }

  .course-text h2{
    font-size:34px;
  }

  .course-text p{
    font-size:17px;
  }
}

/* ===== IMAGE CLICK ZOOM ===== */
img.zoomable{
  cursor: zoom-in;
}

/* Overlay */
#img-modal{
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.85);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:99999;
  animation: fadeIn 0.3s ease;
}

/* Image zoomée */
#img-modal-content{
  max-width:90%;
  max-height:90%;
  border-radius:12px;
  box-shadow:0 0 40px rgba(255,255,255,0.15);
  animation: zoomIn 0.3s ease;
}

/* Bouton fermer */
#img-close{
  position:absolute;
  top:20px;
  right:30px;
  font-size:40px;
  color:white;
  cursor:pointer;
  font-weight:300;
}

/* Animations */
@keyframes fadeIn{
  from{opacity:0;}
  to{opacity:1;}
}

@keyframes zoomIn{
  from{transform:scale(0.8);}
  to{transform:scale(1);}
}

img.zoomable {
  cursor: zoom-in;
}