:root {
  --header: #192A51;
  --turquoise: #192A51;
  --fond-body: #f4f4f4;
  --gris-fonce: #f4f4f4;
  --brun: #f4f4f4;
  --white: #CCCCCC;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--fond-body);
}

header {
  background-color: var(--header);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo img {
  height: 60px;
}

/* Menu & social desktop */
.desktop.menu {
  display: flex;
  gap: 30px;
  flex: 1;
  justify-content: center;
}

.desktop.social {
  display: flex;
  gap: 15px;
}

.desktop a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

/* Burger mobile */
.burger {
  display: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Side menu mobile */
.side-menu {
  position: fixed;
  top: 70px;
  right: -300px;
  width: 200px;
  height: 100%;
  background-color: var(--header);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 60px;
  transition: right 0.3s ease;
  z-index: 999;
}

.side-menu.active {
  right: 0;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

.side-menu .menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.side-menu .menu a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.side-menu .social {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.side-menu .social a {
  color: white;
  font-size: 20px;
  text-decoration: none;
}


/* Par défaut, tout est visible */
.desktop {
  display: flex;
}

/* Sur mobile : masquer le menu et les icônes du bureau */
@media (max-width: 768px) {
  .desktop {
    display: none !important;
  }

  .burger {
    display: block;
  }
}


.slogan {
    font-size: 1.2em;
    font-weight: bold;
    color:white;
    text-decoration:none;
    font-size:20px;
    
}

/* FOOTER */
footer {
  background-color: var(--header);
  color: white;
  text-align: center;
  padding: 2em 1em;
  font-size: 0.9em;
}

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

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

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: var(--header);
  color: white;
  border: none;
  padding: 0.8em 1em;
  font-size: 1.0em;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 1001;
  transition: background 0.3s ease;
}

#backToTop:hover {
  background-color: var(--fond-body);
  
}



/* HERO */
.hero {
  background: url('https://www.de-lambition-lillebonne.fr/media/image/fond-accueil.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 6em 1em;
  position: relative;
  text-align: center;
}

.heroElection {
  background: url('https://www.de-lambition-lillebonne.fr/version/demo-784512MP/election.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 6em 1em;
  position: relative;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(66, 61, 33, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: auto;
}

.hero h1 {
  font-size: 2.2em;
  margin-bottom: 0.5em;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 1.5em;
}

.cta-button {
  background-color: var(--turquoise);
  color: var(--brun);
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 400;
  transition: background 0.3s;
}

.cta-button:hover {
  background-color: var(--white);
}

/* SECTIONS */
.section {
  padding: 4em 1em;
  background-color: var(--white);
}

.section.alt {
  background-color: #f1f1f1;
}

.section h2 {
  font-size: 1.8em;
  margin-bottom: 1em;
  text-align: center;
  color: var(--header);
}

/* PORTRAIT */
.apropos {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  align-items: center;
  justify-content: center;
}

.apropos .portrait img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.apropos .texte {
  flex: 1;
  min-width: 280px;
}

/* PROGRAMME LIST */
.programme-list {
  list-style: none;
  padding-left: 0;
}

.programme-list li {
  padding-left: 1.2em;
  position: relative;
  margin-bottom: 1em;
}

.programme-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brun);
}

/* CONTACT */
.section a {
  color: var(--brun);
}

/* FOOTER */
footer {
  background-color: var(--header);
  color: white;
  text-align: center;
  padding: 2em 1em;
  font-size: 0.9em;
}

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

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

/* SOCIAL ICONS */
.socials {
  margin: 1em 0;
}

.socials a {
  color: white;
  margin: 0 0.5em;
  font-size: 1.2em;
  transition: color 0.3s;
}

.socials a:hover {
  color: var(--turquoise);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    position: fixed;
    top: 70px; /* <-- ici on décale vers le bas */
    right: -100%;
    height: calc(100vh - 70px); /* hauteur moins le décalage */
    width: 70%;
    background-color: var(--brun);
    padding-top: 1em; /* tu peux ajuster */
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1em;
  }

  .nav-links li a {
    display: block;
    color: white;
    font-size: 1.1em;
  }

  header {
    position: relative;
    z-index: 1100;
  }
}

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

.hero-duo {
  padding: 4em 1em;
  background: #f1f1f1;
}

.split-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Vidéo responsive */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* format 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* Colonne vidéo et image sur desktop */
.hero-image,
.hero-video {
  max-width: 100%;
  width: 100%;
}


/* Responsive : empile image + vidéo */
@media (max-width: 768px) {
  .split-section {
    flex-direction: column;
  }

  .hero-image, .hero-video {
    max-width: 100%;
  }
}


/* Equipe */
.colistiers-section {
  padding: 4em 1em;
  background-color: #fff;
}

.colistiers-section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 1.5em;
  color: var(--header);
}

.colistiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

.colistier {
  text-align: center;
  background: #f9f9f9;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.colistier img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.5em;
}

.colistier p {
  font-weight: 500;
  font-size: 1.1em;
  color: #333;
}


/* Programme */
.themes-section {
  padding: 4em 1em;
  background-color: #f1f1f1;
}

.themes-section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 2em;
  color: var(--header);
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  max-width: 1000px;
  margin: 0 auto;
}

.theme-item {
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: 1em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.theme-item:hover {
  transform: translateY(-5px);
}

.theme-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1em;
}

.theme-item p {
  font-weight: 600;
  font-size: 1.1em;
  color: #333;
}

/* election */
.election-section {
  padding: 4em 1em;
  background-color: #fff;
}

.election-section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 2em;
  color: var(--header);
}

.election-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.05em;
  color: #333;
}

.election-content ol {
  padding-left: 1.2em;
  margin-bottom: 1.5em;
}

.election-content li {
  margin-bottom: 1em;
}

.election-content ul {
  margin-top: 0.5em;
  padding-left: 1.5em;
}

.election-content .note {
  margin-top: 2em;
  font-style: italic;
  background: #f1f1f1;
  padding: 1em;
  border-left: 4px solid var(--turquoise);
  border-radius: 6px;
}

/* theme section */
.theme-section {
  padding: 4em 1em;
  background-color: #fff;
}

.theme-block {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 2em;
  max-width: 1100px;
  margin: 0 auto;
}

.theme-text {
  flex: 1;
}

.theme-text h2 {
  font-size: 2em;
  color: var(--header);
  margin-bottom: 1em;
}

.theme-text p {
  font-size: 1.05em;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1em;
}

.theme-text ul {
  list-style-type: disc;
  padding-left: 1.2em;
  color: #333;
}

.theme-text li {
  margin-bottom: 0.6em;
  line-height: 1.5;
}

.theme-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .theme-block {
    flex-direction: row;
  }

  .theme-text {
    flex: 1;
  }

  .theme-image {
    flex: 1;
  }
}

/* colistier detail*/

.colistier-portrait-section {
  padding: 4em 1em;
  background-color: #f9f9f9;
}

.colistier-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
  max-width: 1000px;
  margin: 0 auto;
}

.portrait-photo img {
  width: 100%;
  max-width: 350px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portrait-details {
  flex: 1;
  text-align: left;
}

.portrait-details h2 {
  font-size: 2em;
  color: var(--header);
  margin-bottom: 0.5em;
}

.portrait-details ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5em;
}

.portrait-details li {
  font-size: 1.05em;
  color: #333;
  margin-bottom: 0.5em;
}

.colistier-message p {
  background: #fff;
  padding: 1.2em;
  border-left: 4px solid var(--turquoise);
  border-radius: 6px;
  font-style: italic;
  line-height: 1.6;
  color: #444;
  box-shadow: 0 0 10px rgba(0,0,0,0.03);
}

@media (min-width: 768px) {
  .colistier-portrait {
    flex-direction: row;
    align-items: flex-start;
  }

  .portrait-details {
    text-align: left;
  }
}

/* mention légales */
.mentions-legales {
  max-width: 900px;
  margin: 3em auto;
  padding: 1.5em 2em;
  background-color: #f8f8f8;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  color: #423D21;
  line-height: 1.6;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mentions-legales h2 {
  text-align: center;
  margin-bottom: 1em;
  font-weight: 500;
  font-size: 1.8em;
  color: #423D21;
}

.mentions-legales p {
  margin-bottom: 1em;
  font-size: 1em;
}

/* Bouton retour */
.retour-section {
  display: flex;
  justify-content: center;
  margin: 3em 0;
}

.btn-retour {
  display: inline-block;
  background-color: var(--header);
  color: #fff;
  text-decoration: none;
  padding: 0.8em 2em;
  font-size: 1.1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Roboto', sans-serif;
  user-select: none;
}

.btn-retour:hover {
  background-color: var(--header);
  color: var(--white);
}

.medaillon {
  width: 250px;
  height: 250px;
  border-radius: 50%; /* rend le conteneur circulaire */
  overflow: hidden; /* masque les débordements de l'image */
  border: 4px solid #fff; /* bordure blanche */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* ombre douce */
  display: flex;
  justify-content: center;
  align-items: center;
}

.medaillon img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* remplit le conteneur sans déformation */
  object-position: center 12%;
}


.transcription {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 2em auto;
  padding: 1em;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.transcription p {
  margin-bottom: 1em;
}

.image-container {
      position: relative;
      display: inline-block;
}
.image-container img {
  display: block;
  width: 100%;
}
.icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3em;
  text-shadow: 1px 1px 2px black;
}



