/* ========================= */
/*        RESET GLOBAL       */
/* ========================= */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Conteneur global pour flexbox */
.page-container {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.page-container > section,
.page-container > #accueil {
  flex: 1; /* occupe l'espace restant entre header et footer */
}

/* ========================= */
/*          HEADER           */
/* ========================= */
header {
  background: #0066CC;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.cap,
.nevers {
  color: #000000; /* CapNevers entièrement jaune */
}

/* ========================= */
/*        NAVIGATION         */
/* ========================= */
nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
}

nav a:hover,
nav a.active {
  background: #F7D117;
  color: #0066CC;
  transform: scale(1.08);
}

/* ========================= */
/*       SECTIONS            */
/* ========================= */

/* Accueil */
#accueil {
  padding: 60px 40px;
  background: #f5f7fa;
  text-align: center;
}

/* Pages internes */
.page {
  padding: 60px 40px;
  background: #f5f7fa;
  text-align: center;
}

/* Titres & textes */
#accueil h2,
.page h2 {
  font-size: 2.5rem;
  color: #002C77;
  margin-bottom: 20px;
}

#accueil p,
.page p {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #333;
}

/* ========================= */
/*          CARTES           */
/* ========================= */
.cards {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  background: url('nevers.jpg') center / cover no-repeat;
  padding: 40px;
  border-radius: 15px;
}

.card {
  width: 280px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.card h3 {
  color: #002C77;
  margin-bottom: 10px;
}

/* ========================= */
/*      FORMULAIRE           */
/* ========================= */
.contact-form {
  max-width: 500px;
  margin: 60px auto 0;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.contact-form h3 {
  text-align: center;
  color: #002C77;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  width: 100%;
  background: #0066CC;
  color: white;
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #002C77;
}

/* ========================= */
/*          FOOTER           */
/* ========================= */
footer {
  background: #002C77;
  color: white;
  padding: 20px;
  text-align: center;
}

.social-icons img {
  width: 20px;
  margin: 0 10px;
  vertical-align: middle;
}



/* ========================= */
/*           LOGO            */
/* ========================= */
.logo img {
  height: 90px;
  width: auto;
}
/* ========================= */
/*      LOGO ACCUEIL         */
/* ========================= */
.logo-accueil img {
  height: 420px;
  width: auto;
  margin: 30px auto 270px;
  display: block;
  transform: translateX(520px);
}

/* ========================= */
/*        HEADER LOGO        */
/* ========================= */
.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 100px;
  width: auto;
}

/* ========================= */
/*        HEADER SLOGAN      */
/* ========================= */
.slogan {
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  white-space: nowrap;
}

/*fond acceuil*/

.hero-section {
  position: relative;
  background-image: url('Nevers.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh; /* couvre tout l'écran */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
  padding: 60px 20px; /* espace interne */
}

/* Overlay sombre plus foncé pour mieux faire ressortir le texte */
.hero-section .overlay {
  display: none;
}


/* Contenu au-dessus de l'overlay */
.hero-section .hero-content {
  position: relative;
  z-index: 2;
}

/* Cartes */
.hero-section .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.hero-section .cards .card {
  background-color: #ffffff; /* blanc plein */
  padding: 20px;
  border-radius: 12px;
  color: #000;
  text-decoration: none;
  width: 250px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}


.hero-section .cards .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
/*slogan acceuil millieu*/
.hero-slogan {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 20px;
  margin-bottom: 30px;
  color: #F7D117; /* jaune Nevers */
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}


/* ========================= */
/* PROGRAMMES – HERO FOND   */
/* ========================= */

.programmes-hero {
  position: relative;
  min-height: calc(100vh - 120px); /* plein écran sous le header */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  animation: programmesBackground 15s infinite;
}

/* Contenu texte sur l’image */
.programmes-hero-content {
  max-width: 900px;
  padding: 40px;
}

/* Texte lisible SANS voile */
.programmes-hero-content h2 {
  color: #ffffff;
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
}

.programmes-hero-content p {
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1.6;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

/* Animation des images (5s chacune) */
@keyframes programmesBackground {
  0% {
    background-image: url('securite.jpg');
  }
  33% {
    background-image: url('attractivite.jpg');
  }
  66% {
    background-image: url('sante.jpg');
  }
  100% {
    background-image: url('securite.jpg');
  }
}
/* ========================= */
/* PROGRAMMES – CARTES DANS HERO */
/* ========================= */

.programmes-cards {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

/* Cartes sur image */
.programmes-cards .card {
  background-color: rgba(255, 255, 255, 0.95);
  width: 260px;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Titres */
.programmes-cards .card h3 {
  color: #002C77;
  margin-bottom: 10px;
}

/* Summary */
.programmes-cards summary {
  cursor: pointer;
  font-weight: 600;
}

/* ========================= */
/* GAZETTE – ALIGNEMENT BLOCS */
/* ========================= */

.container {
  width: min(1100px, 92vw);
  margin: 30px auto;
  display: grid;
  gap: 20px;
}

/* Desktop : 3 blocs alignés */
@media (min-width: 1000px) {
  .container {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

/* Pour la gazette*/
iframe {
  border-radius: 12px;
}

/* ========================= */
/* INFORMATIONS – FOND ANIMÉ */
/* ========================= */

.informations-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  animation: informationsBackground 20s infinite;
}

/* 2 images – 10s chacune */
@keyframes informationsBackground {
  0% {
    background-image: url('info1.jpg');
  }
  50% {
    background-image: url('info2.png');
  }
  100% {
    background-image: url('info1.jpg');
  }
}

