/* Palette : rouge corail #EE5C5C | bleu-vert #218491 | gris clair #F5F5F5 */
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.logo {
  height: 80px;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #218491;
  font-weight: bold;
}

nav a:hover {
  color: #EE5C5C;
}

/* Hero */
.hero {
  position: relative;
  background: url('images/photo_colistiers1.jpeg') center top / cover no-repeat;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  clip-path: inset(0 0 15% 0); /* Coupe ~15% en bas (à ajuster) */
}

/* Calque de contraste */
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Contenu par-dessus l’overlay */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: 180px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.2em;
  margin-bottom: 30px;
  color: #fff;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary {
  background: #EE5C5C;
  color: white;
}

.btn-primary:hover {
  background: #d44f4f;
}

.btn-secondary {
  border: 2px solid #fff;
  color: white;
  margin-left: 10px;
}

.btn-secondary:hover {
  background: #218491;
  color: white;
}

/* Sections */
section {
  padding: 80px 20px;
}

section h2 {
  color: #EE5C5C;
  text-align: center;
  margin-bottom: 40px;
}

/* Présentation */
.presentation .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.portrait img {
  width: 280px;
  border-radius: 8px;
}

.bio {
  flex: 1;
}

/* Liste */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.person {
  text-align: center;
}

.person img {
  width: 100%;
  border-radius: 8px;
}

.person p {
  font-weight: bold;
  margin: 10px 0 5px;
  color: #218491;
}

/* Programme */
/* Programme - centrage et mise en valeur */
.programme .axes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
}

.programme .axe {
  background: #F5F5F5;
  padding: 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  max-width: 280px;
}

.programme .axe:hover {
  background: #218491;
  color: #fff;
  transform: translateY(-4px);
}

.programme .axe h3 {
  color: #218491;
  margin-bottom: 10px;
}

.programme .axe:hover h3 {
  color: #fff;
}

/* Détails du programme */
.programme-details {
  margin-top: 40px;
  padding: 20px;
  background: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: left;
  min-height: 80px;
  transition: all 0.3s;
}

/* Centrage du bouton */
.cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Réunions */
.reunions ul {
  list-style: none;
  padding: 0;
}

.reunions li {
  margin: 10px 0;
  padding: 10px;
  background: #F5F5F5;
  border-radius: 5px;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: linear-gradient(180deg, #F9FAFA 0%, #F5F5F5 100%);
  padding: 100px 20px;
  text-align: center;
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #EE5C5C;
  border-radius: 2px;
}

.contact h2 {
  color: #EE5C5C;
  font-size: 2em;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact .intro {
  max-width: 720px;
  margin: 0 auto 60px;
  color: #444;
  font-size: 1.05em;
  line-height: 1.7;
}

.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}

.contact-card {
  flex: 1;
  min-width: 340px;
  max-width: 480px;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
  font-size: 1em;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: #218491;
  box-shadow: 0 0 0 3px rgba(33,132,145,0.15);
}

.contact-card button {
  width: 100%;
  background: #EE5C5C;
  border: none;
  color: white;
  padding: 14px;
  font-size: 1.1em;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-card button:hover {
  background: #d64f4f;
  transform: translateY(-2px);
}

/* ---- Contact Side ---- */
.contact-side {
  flex: 0.6;
  min-width: 260px;
  text-align: left;
  background: #fff;
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-side h3 {
  color: #218491;
  font-size: 1.3em;
  margin-bottom: 25px;
  border-bottom: 2px solid #EE5C5C;
  display: inline-block;
  padding-bottom: 6px;
}

.contact-links {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.contact-links li {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  gap: 10px;
}

.contact-links svg {
  flex-shrink: 0;
}

.contact-links a {
  color: #218491;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-links a:hover {
  color: #EE5C5C;
}

.contact-side .note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-style: italic;
  color: #555;
  line-height: 1.5;
  font-size: 0.95em;
}

/* ==== FIX RESPONSIVE iPHONE CONTACT SECTION ==== */
@media screen and (max-width: 768px) {
  .contact {
    padding: 70px 15px !important;
  }

  .contact-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 40px !important;
  }

  .contact-card,
  .contact-side {
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
  }

  .contact-card {
    background: #fff;
    padding: 25px 20px 30px !important;
    text-align: left;
  }

  .contact-side {
    background: #fff;
    padding: 25px 20px !important;
    text-align: left;
  }

  .contact-side h3 {
    text-align: center !important;
    border-bottom: 2px solid #EE5C5C !important;
    display: block;
    padding-bottom: 8px;
    margin-bottom: 20px;
  }

  .contact-links {
    margin-bottom: 20px !important;
  }

  .contact-links li {
    margin-bottom: 14px;
  }

  .contact-links svg {
    width: 22px;
    height: 22px;
  }

  .contact-side .note {
    margin-top: 20px !important;
    font-size: 0.95em;
  }

  .contact .intro {
    font-size: 1em !important;
    padding: 0 5px;
  }

  /* Empêche débordement horizontal */
  body, html {
    overflow-x: hidden;
  }
}

/* Footer */
.footer {
  background: #218491;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
  .presentation .container {
    flex-direction: column;
    text-align: center;
  }
  nav {
    display: none;
  }
}