/**************************************************
          ____ _______   ___     _____ ____     ____   __  _   _   __  ____      _   _   ___  __
  __/\__ / ___|_   _\ \ / / |   | ____/ ___|   / ___|_/_/_| \ | |_/_/_|  _ \    / \ | | | \ \/ /
  \    / \___ \ | |  \ V /| |   |  _| \___ \  | |  _| ____|  \| | ____| |_) |  / _ \| | | |\  / 
  /_  _\  ___) || |   | | | |___| |___ ___) | | |_| |  _|_| |\  |  _|_|  _ <  / ___ \ |_| |/  \ 
    \/   |____/ |_|   |_| |_____|_____|____/   \____|_____|_| \_|_____|_| \_\/_/   \_\___//_/\_\
                                                                                                
 **************************************************/
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Inter, Arial, sans-serif;
  background-color:  #FFFFFF;/* #f9f8f4; /* fond blanc cassé */
  color: #222; /* texte sombre */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

* {
  box-sizing: border-box;
}

/* ==============================
   FILET DE SECURITE ANTI-DEBORDEMENT MOBILE (ajout)
   ============================== */
html, body {
  overflow-x: hidden;
}

/**************************************************
  _   _ _____    _    ____  _____ ____     ___     _   _    ___     _____ ____    _  _____ ___ ___  _   _ 
 | | | | ____|  / \  |  _ \| ____|  _ \   ( _ )   | \ | |  / \ \   / /_ _/ ___|  / \|_   _|_ _/ _ \| \ | |
 | |_| |  _|   / _ \ | | | |  _| | |_) |  / _ \/\ |  \| | / _ \ \ / / | | |  _  / _ \ | |  | | | | |  \| |
 |  _  | |___ / ___ \| |_| | |___|  _ <  | (_>  < | |\  |/ ___ \ V /  | | |_| |/ ___ \| |  | | |_| | |\  |
 |_| |_|_____/_/   \_\____/|_____|_| \_\  \___/\/ |_| \_/_/   \_\_/  |___\____/_/   \_\_| |___\___/|_| \_|
                                                                                                          
 **************************************************/
header {
  position: relative;   /* AJOUT: repère stable pour ancrer le menu mobile au header entier */
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: #FFFFF0;   /*  blanc cassé   7B1E3A  ; Rouge grenat   */
   color: white;
  padding: 5px 20px;
  border-bottom: 1px solid #ccc; /* un gris clair */
  box-shadow: none ; /*0 2px 5px rgba(0,0,0,0.1);  */
}
header h1 {
  color: #222;   /* ou une couleur de ta charte, ex: darkred / #7B1E3A */
  font-size: clamp(0.85rem, 4vw, 1.3rem);  /* petit sur mobile, plus grand sur desktop */
  margin: 4px 0;
  text-align: center;
  width: 100%;   /* pour qu'il passe sur sa propre ligne en dessous du logo si besoin */
  line-height: 1.3;
}
header img {
  height: 80px;
  width: auto;
}

.header-logo {
  width: 100%;
  height: auto;
  max-width: 90px; 
  min-width: 0;   /* CORRECTIF: empêche flexbox de forcer une largeur minimale = image trop grande sur mobile */
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

nav button {
  background: none;
  color: black ; /* #FFCC99 ; /* black; /*white; */
  font-weight: bold;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  cursor: pointer;
}

nav button:hover {
  background-color: #A3C98B  ; /*  vert clair  #87CEFA; /*  bleu clair pastel */
  border-radius: 4px;
  color: #8b0000; /*  #8b0000;*/
}
/* ==============================
   MENU RESPONSIVE / HAMBURGER pour petit ecran
   ============================== */

/* 1. Cacher le bouton menu sur grand écran */
.menu-toggle {
  display: none;
  font-size: 2.0rem;
  color: #FFCC99; /* Ajout du # manquant qui cassait la couleur */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 15px;
  z-index: 1100;
}

/* 2. Menu flottant caché par défaut */
.menu-box {
  display: flex;          /* affiché par défaut sur PC */
  flex-direction: row;    /* boutons en ligne sur grand écran */
  gap: 5px;
}

/* Styles des boutons dans la boîte */
.menu-box button {
  padding: 10px 15px;
  background: none;
  border: none;
  color:#black; /*white; */
  cursor: pointer;
}

/* Responsive pour écran <768px */
@media (max-width: 768px) {
header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Pousse le logo à gauche et le nav/hamburger à droite */
    align-items: center;
  }

  /* On force le logo et la navigation à rester en haut */
  .header-logo {
    order: 1;
  }

  nav {
    order: 2;
  }

  /* Le titre passe en dessous et prend toute la largeur */
  header h1 {
    order: 3;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    font-size: clamp(0.85rem, 3.5vw, 1.1rem); /* Légère réduction pour les petits écrans */
  }

  /* Affiche le bouton ☰ Menu */
  .menu-toggle {
    display: block;
  }

  /* Masquer les boutons dans menu-box par défaut */
  .menu-box {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;             
    right: 0;
    min-width: max-content;
    max-width: 90vw;        
    background-color: #f9f8f4; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
  }

  .menu-box button {
    width: 100%;
    text-align: left;
    padding: 12px 20px;
    border: none;
    background: none;
    color: black;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    font-size: 0.9rem; 
  }

  /* Afficher le menu-box quand nav a la classe active */
  nav.active .menu-box {
    display: flex;
  }
}

/* AJOUT: taille de logo contrôlée explicitement sur très petit écran */
@media (max-width: 480px) {
  header {
    padding: 4px 12px;      /* AJOUT : réduit le padding vertical du bandeau sur mobile */
  }
  .header-logo {
    max-width: 70px;
    max-height: 50px;       /* AJOUT : plafonne réellement la hauteur du logo sur mobile */
    object-fit: contain;    /* CORRECTION : évite de déformer le logo si le ratio change */	
  }
}

/**************************************************
           ____ ___  _   _ _____ _____ _   _ _   _   ____  ____  ___ _   _  ____ ___ ____   _    _        ___     _____ ___   ___ _____ _____ ____  
  __/\__  / ___/ _ \| \ | |_   _| ____| \ | | | | | |  _ \|  _ \|_ _| \ | |/ ___|_ _|  _ \ / \  | |      ( _ )   |  ___/ _ \ / _ \_   _| ____|  _ \ 
  \    / | |  | | | |  \| | | | |  _| |  \| | | | | | |_) | |_) || ||  \| | |    | || |_) / _ \ | |      / _ \/\ | |_ | | | | | | || | |  _| | |_) |
  /_  _\ | |__| |_| | |\  | | | | |___| |\  | |_| | |  __/|  _ < | || |\  | |___ | ||  __/ ___ \| |___  | (_>  < |  _|| |_| | |_| || | | |___|  _ < 
    \/    \____\___/|_| \_| |_| |_____|_| \_|\___/  |_|   |_| \_\___|_| \_|\____|___|_| /_/   \_\_____|  \___/\/ |_|   \___/ \___/ |_| |_____|_| \_\
                                                                                                                                                    
 **************************************************/
main {
  padding: 20px;
}

footer {
  text-align: center;
  padding:  6px 10px;
  background-color: #fff;
  color: #555;
  margin-top: 20px;
  font-size: 0.85rem;       /* AJOUT: texte plus petit dans le footer */
  line-height: 1.4;  
}

footer img {
  max-height: 40px;         /* AJOUT: au cas où il y a un logo/icône dans le footer */
  width: auto;
}

/**************************************************
  
   _            _             _ _ _       _                    _               _                                    _                 
 | |_ _____  _| |_ ___    __| ( |_)_ __ | |_ _ __ ___     ___| |_   _ __ ___ (_)___  ___    ___ _ __   __   ____ _| | ___ _   _ _ __ 
 | __/ _ \ \/ / __/ _ \  / _` |/| | '_ \| __| '__/ _ \   / _ \ __| | '_ ` _ \| / __|/ _ \  / _ \ '_ \  \ \ / / _` | |/ _ \ | | | '__|
 | ||  __/>  <| ||  __/ | (_| | | | | | | |_| | | (_) | |  __/ |_  | | | | | | \__ \  __/ |  __/ | | |  \ V / (_| | |  __/ |_| | |   
  \__\___/_/\_\\__\___|  \__,_| |_|_| |_|\__|_|  \___/   \___|\__| |_| |_| |_|_|___/\___|  \___|_| |_|   \_/ \__,_|_|\___|\__,_|_|   
                                                                                                                                                                                                                                                                                                                                                          
 **************************************************/
.intro-text {
  text-align: justify;
  font-size: 1.0rem;
  color: #333;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.highlight {
  font-weight: bold;
  color: darkred;
}

.paragraph {
  margin-bottom: 1.0rem;
}

/**************************************************
                   _             _              _     _        __           
   ___ ___  _ __ | |_ __ _  ___| |_ ___    ___| |_  (_)_ __  / _| ___  ___ 
  / __/ _ \| '_ \| __/ _` |/__| __/ __|  / _ \ __| | | '_ \| |_ / _ \/ __|
 | (_| (_) | | | | || (_| | (__| |_\__ \ |  __/ |_  | | | | |  _| (_) \__ \
  \___\___/|_| |_|\__\__,_|\___|\__|___/  \___|\__| |_|_| |_|_|  \___/|___/
                                                                           
 **************************************************/
.card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(20,20,30,0.05);
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
}

.card h2 {
  margin: 0;
  font-size: 1.1rem;
}

.roles {
  margin: 4px 0 8px 0;
  color: #444;
  font-size: 0.95rem;
}

.contact {
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact a {
  color: #0a58ca;
  text-decoration: none;
  word-break: break-all;
}

.badge {
  background: #eef6ff;
  color: #05509e;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.adresse {
  list-style: none;      /* supprime les puces */
  padding: 0;            /* supprime le padding par défaut de la liste */
  margin: 0;             /* supprime la marge par défaut */
  font-size: 1.1rem;     /* taille un peu plus grande que le texte normal */
  line-height: 1.5;      /* espacement entre les lignes */
}

.adresse li {
  margin-bottom: 0.3rem; /* petit espace entre chaque ligne */
}
/**************************************************
     _        _               _ _ _    __      
    / \   ___| |_ _   _  __ _| (_) |_ /_/  ___ 
   / _ \ / __| __| | | |/ _` | | | __/ _ \/ __|
  / ___ \ (__| |_| |_| | (_| | | | ||  __/\__ \
 /_/   \_\___|\__|\__,_|\__,_|_|_|\__\___||___/
                                               
                                                                                                                                                                                 
 **************************************************/
.actualite-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.social-card,
.form-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 25px;
}

/* Bloc Facebook */
.social-card {
  display: flex;
  align-items: center;
  gap: 15px;
  border-left: 4px solid #1877f2;
}

.social-icon {
  font-size: 2rem;
}

.btn-facebook {
  display: inline-block;
  background: #1877f2;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-facebook:hover {
  background: #166fe5;
  transform: translateY(-2px);
}

/* Bloc formulaire */
.form-card h3 {
  color: #333;
  margin-top: 0;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.form-container {
  margin: 15px 0;
}

.form-note {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin-top: 10px;
}

/**************************************************
  ____                                          ___                      _                   _               
 / ___| _ __   ___  _ __  ___  ___  _ __ ___   ( _ )    _ __   __ _ _ __| |_ ___ _ __   __ _(_)_ __ ___  ___ 
 \___ \| '_ \ / _ \| '_ \/ __|/ _ \| '__/ __|  / _ \/\ | '_ \ / _` | '__| __/ _ \ '_ \ / _` | | '__/ _ \/ __|
  ___) | |_) | (_) | | | \__ \ (_) | |  \__ \ | (_>  < | |_) | (_| | |  | ||  __/ | | | (_| | | | |  __/\__ \
 |____/| .__/ \___/|_| |_|___/\___/|_|  |___/  \___/\/ | .__/ \__,_|_|   \__\___|_| |_|\__,_|_|_|  \___||___/
       |_|                                             |_|                                                                                                                                                                                                                                                                    
 **************************************************/
/* Variables spécifiques aux logos (pas pour tout le site) */
:root {
  --logo-card-bg: #fff;  /* fond blanc */
  --logo-text: #000;  /* texte noir */
  --logo-muted: #555;
  --ring: #3a82f7;
  --gap: 1rem;
}

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

section {
  margin-top: 2.25rem;
}

section .hint {
  margin: 0 0 1rem;
  color: var(--logo-muted);
  font-size: .9rem;
}

.logo-grid {
  display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));*/  
    grid-template-columns: repeat(6, 1fr);
    justify-content: center;    
  gap: var(--gap);
}

@media (max-width: 900px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
}

figure.logo {
  margin: 0;
  padding: .9rem;
  border-radius: 1rem;
  background: var(--logo-card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}

figure.logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.logo a {
  display: block;
  width: 100%;
  outline: 0;
  border-radius: .75rem;
}

.logo a:focus {
  box-shadow: 0 0 0 3px var(--ring);
}

.logo-img-wrap {
  background: #fff;
  border-radius: .75rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  /*width: 100%;*/
  max-width: 140px; /* largeur max du logo dans sa carte */
  height: auto; /* garde les proportions */
  object-fit: contain;
  filter: saturate(0.98);
  transition: opacity .18s ease, transform .18s ease, filter .18s ease;
}

a .logo-img-wrap img { opacity: .9; }
a:hover .logo-img-wrap img { opacity: 1; transform: scale(1.02); }

figcaption {
  text-align: center;
  font-size: .9rem;
  line-height: 1.35;
  color: var(--logo-muted);
}

figcaption .name {
  display: block;
  font-weight: 700;
  color: var(--logo-text);
}

figcaption .meta {
  display: block;
  word-break: break-word;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5ch;
  font-size: .8rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: #1b2230;
  color: #c8d3e3;
  border: 1px solid #253047;
}

/**************************************************
   ____    _    ____  ____   ___  _   _ ____  _____ _     
  / ___|  / \  |  _ \|  _ \ / _ \| | | / ___|| ____| |    
 | |     / _ \ | |_) | |_) | | | | | | \___ \|  _| | |    
 | |___ / ___ \|  _ <|  _ <| |_| | |_| |___) | |___| |___ 
  \____/_/   \_\_| \_\_| \_\\___/ \___/|____/|_____|_____|
                                                          
 **************************************************/
.carousel {
  position: relative;
  max-width: 800px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-item {
  flex: 0 0 100%;
  height: 400px;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  color: white;
  width: 100%;
  padding: 10px;
  text-align: center;
  font-size: 1rem;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Carrousel responsive */
@media (max-width: 768px) {
  .carousel-item { height: 250px; }
  .caption { font-size: 0.9rem; padding: 6px; }
  .prev, .next { padding: 6px; font-size: 0.8rem; }
}
@media (max-width: 480px) {
  .carousel-item { height: 180px; }
  nav { flex-direction: column; align-items: flex-start; }
  nav button { width: 100%; text-align: left; }
}