/* === STYLE GLOBAL === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  color: #2e2e2e;
  background: #f3f1ee; /* gris chaud */
}

/* === HEADER === */
header {
  background: #34495e; /* bleu-gris profond */
  color: white;
  padding: 10px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: auto;
  margin-bottom: 0;
}

.logo-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  transform: scale(1.15);
}

.site-title {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #d4af37; /* doré doux, harmonieux avec le menu */
  margin-left: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* === NAVIGATION === */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: #d4af37; /* doré doux */
}

/* === SECTION HERO === */
.hero {
  width: 100%;
  height: 150px;
  background: url("../images/drapeau.png") center center no-repeat;
  background-size: cover;  /* remplissage fiable sur tous écrans */
  margin-top: 0;
  padding-top: 0;
}


.hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 20px;
  font-weight: 300;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* === SECTIONS GENERALES === */
section {
  padding: 60px 20px;
}

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

h2 {
  color: #34495e;
  text-align: center;
  margin-bottom: 25px;
  font-size: 28px;
}

p {
  line-height: 1.7;
}

/* === CARTES === */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Style général pour toutes les cartes */
.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 25px;
  max-width: 320px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.card h3 {
  color: #34495e;
  margin-bottom: 10px;
  min-height: 50px;
}

.card p {
  color: #333;
  font-size: 15px;
  flex-grow: 1;
  min-height: 80px;
}

/* === CARTES D’ACTUALITÉS SUR L’ACCUEIL === */
.news .cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  min-height: 80px; /* évite un flash vide */
}

.news .card {
  flex: 1 1 300px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  padding: 0;
  height: auto;
  text-align: left;
}

.news .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.news .card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.news .card h3 {
  margin: 12px 16px 6px;
  color: #34495e;
}

.news .card p {
  flex-grow: 1;
  margin: 0 16px 12px;
  color: #333;
}

.news .card .btn {
  margin: 0 16px 16px;
  align-self: flex-start;
}

/* === BOUTONS === */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #d4af37;
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #b9962d;
}

/* === SECTION NEWS === */
.news {
  background: #fff;
  text-align: center;
}

/* === FOOTER === */
footer {
  text-align: center;
  background: #34495e;
  color: white;
  padding: 20px 0;
  margin-top: 40px;
}

footer a {
  color: #d4af37;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* === FORMULAIRES PUBLICS === */
.form {
  display: grid;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 6px;
  color: #34495e;
  font-weight: 600;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: #fafafa;
  font-size: 15px;
  box-sizing: border-box;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid #d4af37;
  outline-offset: 1px;
  background: #fff;
}

.form .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.join-form-card { max-width: 700px; margin: 24px auto; }

@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .form .form-actions { justify-content: stretch; }
  .form .form-actions .btn { width: 100%; }
}

/* === CONTACT PAGE === */
.contact-section {
  padding: 40px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}

.contact-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 20px;
}

.contact-card h2 {
  margin-top: 0;
  color: #34495e;
}

.contact-card label {
  display: block;
  margin: 12px 0 6px;
  color: #34495e;
  font-weight: 600;
}

.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
  background: #fafafa;
}

.contact-card textarea { resize: vertical; min-height: 130px; }

.contact-card input:focus,
.contact-card textarea:focus {
  outline: 2px solid #d4af37;
  outline-offset: 1px;
  background: #fff;
}

.contact-meta {
  line-height: 1.8;
  color: #333;
}

.contact-meta a { color: #34495e; text-decoration: none; }
.contact-meta a:hover { text-decoration: underline; }

.notice {
  margin: 12px 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.notice.success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.notice.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

@media (max-width: 900px){
  .contact-grid { grid-template-columns: 1fr; }
}

/* === MENU BURGER === */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
  background: transparent;
  border: 0;
  padding: 0;
  line-height: 1;
}

/* Masque l'ancien div.menu-toggle si présent */
div.menu-toggle { display: none !important; }

.menu-toggle:focus {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* === PAGE ACTUALITES — STYLE MAGAZINE === */
.news-page {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.news-page h1 {
  text-align: center;
  color: #34495e;
  font-size: 32px;
  margin-bottom: 60px;
  position: relative;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.actu-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.actu-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.actu-block img {
  width: 50%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  background: #000; /* fond neutre si l'image est plus petite */
  display: block;
}


.actu-content {
  width: 50%;
  padding: 40px;
  box-sizing: border-box;
}

.actu-content h2 {
  color: #34495e;
  margin-top: 0;
  font-size: 24px;
}

.actu-content em {
  display: block;
  color: #d4af37;
  font-style: normal;
  margin-bottom: 10px;
}

.actu-content p {
  line-height: 1.6;
  margin-bottom: 12px;
  color: #333;
}

.actu-block:nth-child(even) {
  flex-direction: row-reverse;
}

@media (max-width: 900px) {
  .actu-block {
    flex-direction: column;
  }

  .actu-block img, .actu-content {
    width: 100%;
  }

  .actu-block img {
    height: 240px;
  }

  .actu-content {
    padding: 25px;
  }
}


/* === PAGE GALERIE === */
body.gallery-page {
  background: #2b2b2b;
  color: #f3f1ee;
}

.gallery-header {
  text-align: center;
  padding: 60px 20px 30px;
  background: #2b2b2b;
}

.gallery-header h1 {
  margin-bottom: 10px;
  color: #d4af37;
}

.gallery-header p {
  color: #ddd;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.gallery-container img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-container img:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.lightbox-caption {
  position: absolute;
  bottom: 30px;
  color: white;
  font-size: 18px;
  background: rgba(0,0,0,0.6);
  padding: 8px 14px;
  border-radius: 6px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .actu-block {
    flex-direction: column;
  }

  .actu-block img, .actu-content {
    width: 100%;
  }

  .actu-block img {
    height: 220px;
  }

  .menu-toggle {
    display: block;
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 2000;
  }

  nav ul {
    flex-direction: column;
    background: #34495e;
    position: fixed;
    top: 70px;
    right: 0;
    width: 70%;
    text-align: left;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
  }

  nav ul.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  nav ul li a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .hero {
    padding: 100px 20px;
  }

  h1 {
    font-size: 32px;
  }
}

/* === AMÉLIORATION DES CARTES D’ACTUALITÉS SUR L’ACCUEIL === */
.news {
  background: #fff;
  text-align: center;
}

.news .cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  min-height: 80px;
  margin-bottom: 40px; /* ajoute de l’espace avant le bouton "Voir toutes les actualités" */
}

.news .card {
  flex: 1 1 300px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  padding: 0;
  height: auto;
  text-align: center;
}

.news .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.news .card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.news .card h3 {
  margin: 16px 16px 8px;
  color: #34495e;
  font-size: 18px;
  text-align: center;
}

.news .card p {
  display: none; /* supprime l’espace du texte vide */
}

.news .card .btn {
  margin: 8px auto 20px;
  padding: 10px 30px; /* bouton plus large */
  background: #d4af37;
  color: #000;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.news .card .btn:hover {
  background: #b9962d;
}

/* corrige le bouton central sous les cartes */
.news .center {
  margin-top: 10px;
}

/* bouton global "voir toutes les actualités" */
.news .center .btn {
  padding: 12px 36px;
}

/* === VERSION MOBILE === */
@media (max-width: 768px) {

  /* Structure du header */
  header .container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: relative;
  }

  .logo-wrap {
    width: 70px;
    height: 70px;
  }

  .site-title {
    font-size: 18px;
    text-align: center;
    margin: 0;
    color: #d4af37;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  /* Bouton menu burger */
  .menu-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 28px;
    cursor: pointer;
    color: white;
    z-index: 2000;
  }

  /* Menu déroulant mobile */
  nav ul {
    flex-direction: column;
    background: #34495e;
    position: fixed;
    top: 70px;
    right: 0;
    width: 75%;
    text-align: left;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
  }

  nav ul.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  nav ul li a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Section hero */
  .hero {
    height: 150px;
    background-size: cover;
    background-position: center;
    margin-top: 0;
    padding: 0;
  }

  /* Ajustements divers */
  .cards {
    flex-direction: column;
    align-items: center;
  }

  h1 {
    font-size: 28px;
  }

  .news .card {
    width: 90%;
    margin: 0 auto;
  }

  .news .card .btn {
    display: inline-block;
    margin: 10px auto 16px;
  }
}

}
