@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Layout global --- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* toujours au moins hauteur écran */
}

.top_page {
  flex-shrink: 0; /* header taille fixe */
}

.page-wrapper {
  flex: 1; /* prend tout l’espace dispo */
}

.site-footer {
  flex-shrink: 0; /* footer taille fixe */
}

body {
  margin: 0 auto;
}

/* --- Header / bandeau --- */
section.top_page {
  background: black;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

header img.logo {
  width: 180px;
  flex-shrink: 0;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* --- Titre adaptatif --- */
.big_title {
  color: #64C93E;
  text-align: center;
  flex-grow: 1;
  white-space: nowrap;
  font-size: clamp(24px, 5vw, 50px);
}

/* Variantes de titre */
.title-full { display: inline; }
.title-medium, .title-small { display: none; }

@media (max-width: 1700px) {
  .title-full { display: none; }
  .title-medium { display: inline; }
}

@media (max-width: 1500px) {
  .title-medium { display: none; }
  .title-small { display: inline; }
}

/* --- Menu / navigation --- */
nav.nav {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
   margin-right: 40px; /* ⇠ décale le menu vers la gauche */
}

/* Liste horizontale */
.nav-links {
  display: flex;
  list-style: none;
  gap: 40px; /* espace entre les liens */
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 22px;
  display: block;
}

/* Bouton hamburger */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  header img.logo { width: 150px; }
  .big_title { font-size: 36px; }
}

@media (max-width: 1200px) {
  .menu-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: black;
    padding: 10px 0;
    min-width: 150px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  }

  .nav-links.show { display: flex; }

  .nav-links li a {
    padding: 10px 15px;
  }

  .nav-links li a:hover { background: #222; }
}

@media (max-width: 500px) {
  header img.logo { width: 100px; }
  .big_title { font-size: 24px; }
}

/* Parent du dropdown */
.dropdown {
  position: relative; /* IMPORTANT pour que le sous-menu se place par rapport au parent */
}

/* Sous-menu caché par défaut */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* juste sous le menu parent */
  left: 0;
  background: #333; /* gris foncé */
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 5px;
  min-width: 150px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  z-index: 10;
}

/* Liens du sous-menu */
.dropdown-content li a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
}

.dropdown-content li a:hover {
  background: #222;
}

/* Afficher le sous-menu au survol du parent */
.dropdown:hover .dropdown-content {
  display: block;
  flex-direction: column;
}

.edt-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 16px;
}

.edt-table th,
.edt-table td {
  border: 1px solid #ccc;
  padding: 10px;
}

.edt-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 16px;
}

.edt-table th,
.edt-table td {
  border: 1px solid #ccc;
  padding: 10px;
  min-width: 100px;
}

.edt-table th {
  background-color: #003366;
  color: white;
}

/* Couleurs selon le type */
.edt-table td.dirige {
  background-color: #cce5ff; /* bleu clair */
  font-weight: bold;
}
.edt-table td.libre {
  background-color: #6699ff; /* bleu moyen */
  font-weight: bold;
  color: white;
}
.edt-table td.confirme {
  background-color: #33cc33; /* vert pour confirmé */
  font-weight: bold;
  color: white;
}

.edt-table td.jeune {
  background-color: mediumpurple !important;
  color: white !important;
  font-weight: bold;
}

.edt-table td.match {
  background-color: #ff9999; /* rouge clair pour match */
  font-weight: bold;
}

/* Ligne alternée */
.edt-table tbody tr:nth-child(even) td:not(.dirige):not(.libre):not(.confirme):not(.match) {
  background-color: #f9f9f9;
}

/* Hover */
.edt-table td:hover {
  background-color: #ddd;
}

/* Responsive : scroll horizontal */
@media (max-width: 800px) {
  .edt-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Section du planning */
.edt-section {
  max-width: 1200px;   /* largeur max pour éviter que le tableau colle aux bords */
  margin: 10px auto;   /* espace haut/bas + centrer horizontalement */
  padding: 0 20px;     /* petite marge intérieure sur les côtés */
}

/* Titre */
.edt-title {
  text-align: center;   /* centrer le titre */
  font-size: 28px;
  margin-bottom: 30px;  /* espace entre le titre et le tableau */
  margin-top: 20px;     /* espace entre le bandeau du haut et le titre */
  color: #003366;
}

/* Par défaut : on cache la version texte */
.edt-text {
  display: none;
}

/* Sur mobile (max 768px) */
@media (max-width: 768px) {
  .edt-table {
    display: none;   /* on cache le tableau */
  }
  .edt-text {
    display: block;  /* on affiche le texte */
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
  }
  .edt-text p {
    margin: 8px 0;
  }
}
/* --- Sticky Layout --- */


.page-wrapper {
  flex: 1; /* prend tout l’espace restant */
  display: flex;
  flex-direction: column;
}

/* --- Footer --- */
.site-footer {
  width: 100%;
  background: #54514F;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  flex-wrap: wrap;
  font-size: 14px;
  box-sizing: border-box;
}

.footer-left img.footer-logo {
  width: 60px;
}

.footer-center {
  text-align: center;
  flex: 1;
}

.footer-center p {
  margin: 5px 0;
}

.footer-center a {
  color: lightblue;
  text-decoration: none;
}

.footer-right {
  text-align: right;
}

.social-link {
  display: inline-block;
  margin-bottom: 10px;
}

.social-icon {
  width: 90px;
  height: 90px;
}

.copyright {
  font-size: 12px;
  margin-top: 5px;
  color: #bbb;
}

/* --- Responsive Footer --- */
@media (max-width: 768px) {
  .site-footer {
    flex-direction: column;
    text-align: center;
  }
  .footer-right {
    text-align: center;
    margin-top: 10px;
  }
}


/* --- Section Tarifs --- */
.tarifs-section {
  padding: 10px 20px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.tarifs-title {
  font-size: 36px;
  margin-bottom: 20px;
  color: #003366;
}

.tarifs-intro {
  font-size: 18px;
  margin-bottom: 40px;
  color: #444;
  line-height: 1.6;
}

.tarifs-images {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tarif-img h2 {
  margin-bottom: 15px;
  color: #003366;
}

.tarif-img img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive : images centrées */
@media (min-width: 768px) {
  .tarifs-images {
    flex-direction: row;
    justify-content: space-between;
  }

  .tarif-img {
    flex: 1;
    padding: 0 10px;
  }
}

.home-section {
  background: #f0f8ff; /* couleur douce pour le fond */
  padding: 10px 20px;  /* espace autour du texte */
  text-align: center;
}

.home-section h1 {
  font-size: clamp(28px, 6vw, 48px); /* titre adaptatif */
  color: #003366;
  margin-bottom: 30px;
}

.home-section p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto; /* centrer le texte */
  color: #333;
}

.salle-img {
  margin-top: 30px; /* espace au-dessus de l'image */
}

.salle-img img {
  max-width: 100%;   /* pour que l'image soit responsive */
  height: auto;
  border-radius: 8px; /* arrondir les coins si tu veux */
}

.equipe-texte {
  margin-top: 40px; /* espace entre l’image et le texte d’équipe */
}

/* --- Section Partenariat --- */
.partenariat-section {
  background: #fff8f0; /* fond doux légèrement orangé */
  padding: 80px 20px;
  text-align: center;
  border-top: 2px solid #ffcc80;
  border-bottom: 2px solid #ffcc80;
}

.partenariat-section h1 {
  color: #e67e22;
  font-size: clamp(28px, 6vw, 48px);
  margin-bottom: 10px;
}

.partenariat-section h2 {
  color: #333;
  font-size: clamp(20px, 4vw, 28px);
  margin-bottom: 10px;
}

.partenariat-section h3 {
  color: #003366;
  font-size: clamp(22px, 5vw, 32px);
  margin-bottom: 25px;
}

.partenariat-image img {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  margin: 20px auto;
}

.partenariat-texte {
  max-width: 800px;
  margin: 20px auto;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

.partenariat-note {
  max-width: 700px;
  margin: 20px auto;
  font-size: 16px;
  color: #666;
  font-style: italic;
}


/* Menu normal */
.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 22px;
  display: inline-block;
  position: relative; /* nécessaire pour pseudo-élément */
  padding: 5px 0; 
}

/* Barre blanche au survol */
.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;      /* épaisseur de la barre */
  background: white;
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;       /* s’étend sur toute la largeur du lien */
}

/* Sous-menu du dropdown */
.dropdown-content {
  display: none;           /* caché par défaut */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;                /* étend le fond sur toute la largeur du parent */
  background: #333;        /* fond gris foncé */
  list-style: none;
  padding: 10px 0;
  margin: 0;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  z-index: 10;

  flex-direction: column;  /* liste verticale */
  align-items: center;     /* centre horizontalement les <li> */
}

/* Affiche le sous-menu au survol du parent */
.dropdown:hover .dropdown-content {
  display: flex;           /* affiché uniquement au survol */
}

.dropdown-content li a {
  padding: 10px 20px; 
  width: auto;
  text-align: center; 
}

/* Menu hamburger : liste verticale centrée */
@media (max-width: 768px) {
  .nav-links {
    display: none;          /* caché par défaut */
    flex-direction: column; /* liste verticale */
    position: absolute;
    top: 100%;              /* juste sous le bouton */
    right: 0;
    left: 0;                /* pour étendre le fond sur toute la largeur du parent */
    background: black;      
    padding: 10px 0;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    align-items: center;    /* centre horizontalement les <li> */
    z-index: 10;
  }

  .nav-links.show {
    display: flex;          /* affiché quand on clique sur ☰ */
  }

  .nav-links li a {
    display: block;
    padding: 10px 20px;
    text-align: center;     /* texte centré dans chaque élément */
    width: 100%;            /* occupe toute la largeur du fond noir */
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-60%); /* un peu plus à gauche */
    background: black;
    flex-direction: column;
    padding: 10px 0;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 300px;
    align-items: center;
    z-index: 10;
  }

  .nav-links.show {
    display: flex;
  }
}
/* Version mobile pour le sous-menu */
@media (max-width: 768px) {
  .dropdown-content {
    left: 50%;                     /* centre par rapport au parent */
    transform: translateX(-60%);    /* ajuste pour vraiment centrer */
    top: 100%;                      /* juste en dessous du lien "Club" */
    min-width: 200px;               /* largeur du sous-menu */
    background: #333;               /* fond gris foncé */
    padding: 10px 0;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  }

  /* si tu veux, tu peux aussi ajuster les liens à l’intérieur */
  .dropdown-content li a {
    text-align: center;
    display: block;
    padding: 10px 15px;
  }
}.adresse-section {
  max-width: 900px;
  margin: 10px auto;
  padding: 0 20px;
  text-align: center;
}

.adresse-section h1 {
  font-size: 32px;
  color: #003366;
  margin-bottom: 20px;
}

.adresse-content p {
  font-size: 18px;
  margin: 5px 0;
}

.adresse-content ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px;
}

.adresse-content ul li {
  font-size: 16px;
  margin: 5px 0;
}

.map-container {
  margin-top: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* --- Section Boutique --- */
.boutique-section {
  padding: 10px 20px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.boutique-title {
  font-size: 36px;
  margin-bottom: 20px;
  color: #003366;
}

.boutique-intro {
  font-size: 18px;
  margin-bottom: 40px;
  color: #444;
}

.boutique-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.boutique-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.prix {
  margin-top: 10px;
  font-size: 20px;
  color: #003366;
  font-weight: bold;
}

/* Version PC : côte à côte */
@media (min-width: 768px) {
  .boutique-items {
    flex-direction: row;
    justify-content: center;
  }

  .boutique-item {
    flex: 1;
    max-width: 700px;
  }
}


/* ==========================
   Section Tournoi
========================== */

/* Container principal de la section */
.tournoi-section {
  max-width: 1200px;
  margin: 10px auto;
  padding: 10px;
  text-align: center;
  font-family: Arial, sans-serif;
}

/* Titre principal de la section */
.tournoi-title {
  font-size: 28px;
  color: #003366;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.tournoi-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #64C93E;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Paragraphe d’introduction */
.tournoi-intro {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
  max-width: 700px;
  margin: 20px auto 40px;
}

/* Container des affiches et du formulaire */
.tournoi-content {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap; /* pour mobile */
}

/* Ajustement du titre du tournoi sur mobile */
@media (max-width: 768px) {
  .tournoi-title h1 {
    font-size: 22px;   /* taille plus petite pour mobile */
    line-height: 1.3;  /* un peu plus compact */
  }
}


/* ==========================
   Affiches
========================== */
.tournoi-affiches {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1 1 500px; /* prend l’espace disponible */
}

.tournoi-affiche {
  flex: 1 1 48%; /* chaque affiche prend environ la moitié */
  max-width: 550px;
  text-align: center;
}

.tournoi-affiche img {
  width: 100%;
  max-width: 550px; /* limite maximale */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: block;
  margin: 0 auto;
}

/* Overlay (fond sombre) */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none; /* caché par défaut */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Image affichée en grand */
.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s;
}

/* Fermer au clic sur le fond */
.lightbox-overlay:target {
  display: flex;
}


/* ==========================
   Formulaire
========================== */
.tournoi-form {
  flex: 1 1 400px;
  max-width: 400px;
  text-align: left;
}

.tournoi-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tournoi-form input,
.tournoi-form select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.tournoi-form button {
  padding: 12px;
  border: none;
  background: #003366;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.tournoi-form button:hover {
  background: #0055aa;
}

/* ==========================
   Tableaux d’inscrits
========================== */
.table-container {
  overflow-x: auto;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: center;
  font-size: 14px;
}

th {
  background-color: #003366;
  color: white;
  font-weight: bold;
}

/* Boutons PDF */
.btn-pdf {
  padding: 10px 20px;
  background-color: #64C93E;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

.btn-pdf:hover {
  background-color: #4BA632;
}

/* ==========================
   Responsivité
========================== */
@media (max-width: 1024px) {
  .tournoi-affiche {
    max-width: 45%;
  }
}

@media (max-width: 768px) {
  .tournoi-content {
    flex-direction: column; /* affiche et formulaire empilés */
    align-items: center;
    gap: 30px;
  }

  .tournoi-affiche {
    flex: 1 1 100%;
    max-width: 90%;
  }

  .tournoi-form {
    flex: 1 1 100%;
    max-width: 90%;
  }
}

.checkbox-group {
  display: flex;
  gap: 20px;          /* espace entre les deux cases */
  margin-top: 5px;    /* petit espace sous le label principal */
}

.checkbox-item {
  display: flex;
  align-items: center; /* aligne verticalement la case et le texte */
  gap: 5px;            /* petit espace entre la case et le texte */
}

/* Espace entre le bloc formulaire/affiche et le tableau */
#inscrits {
  margin-top: 50px; /* espace au-dessus du tableau */
}

/* ===== STYLE DU TABLEAU ===== */
#inscrits {
  width: 100%;
  border-collapse: collapse;
  margin: 30px auto;
  font-size: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#inscrits thead {
  background: #003366;      /* bleu foncé du club */
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

#inscrits th,
#inscrits td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

#inscrits tbody tr:nth-child(even) {
  background: #f9f9f9;  /* alternance de couleur */
}

#inscrits tbody tr:hover {
  background: #eaf6e5;  /* léger vert en hover */
  transition: 0.3s;
}

/* Met en valeur la colonne Total Points */
#inscrits td:last-child {
  font-weight: bold;
  color: #003366;
}

/* Titre au-dessus du tableau */
h2 {
  text-align: center;
  margin-top: 40px;
  font-size: 22px;
  color: #003366;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #64C93E; /* vert du club */
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Conteneur des tableaux */
.table-container {
  overflow-x: auto;      /* permet le scroll horizontal si l'écran est trop petit */
  margin: 20px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  background: #f9f9f9;
}

/* Styles des tableaux */
.table-container table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  min-width: 600px; /* assure une largeur minimale */
}

.table-container th,
.table-container td {
  padding: 10px;
  border: 1px solid #ddd;
}

.table-container th {
  background-color: #003366; /* bleu club */
  color: white;
  font-weight: 700;
}

.table-container tr:nth-child(even) {
  background-color: #f2f2f2; /* alternance des lignes */
}

/* Titres des tableaux */
h2 {
  text-align: center;
  color: #003366;
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 10px;
}

/* Boutons de lien principaux */
.btn-sheet, .btn-pdf {
  display: inline-block;
  margin: 10px 5px;
  padding: 12px 25px;
  background: linear-gradient(135deg, #1e3c72, #2a5298); /* Dégradé bleu */
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-family: 'Arial', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn-sheet:hover, .btn-pdf:hover {
  background: linear-gradient(135deg, #2a5298, #1e3c72); /* inversion du dégradé */
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.25);
}

/* Responsive mobile */
@media (max-width: 768px) {
  .btn-sheet, .btn-pdf {
    padding: 10px 20px;
    font-size: 14px;
    margin: 8px 3px;
  }
}

.btn-pdf {
  display: block;       /* obligatoire pour qu'ils soient l'un sous l'autre */
  margin: 10px auto;    /* espace vertical et centré horizontalement */
  padding: 12px 25px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* Si tu veux un espace supplémentaire pour le bouton "Tous les inscrits" */
#pdfAll {
  margin-top: 15px; /* espace au-dessus du bouton */
}

/* Conteneur map + image côte à côte (desktop par défaut) */
.addr-pics {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* aligne map et image en haut */
  gap: 20px; /* espace entre map et image */
  margin-top: 20px;
}

/* Map et image - taille plus grande sur desktop */
.map-container iframe,
.entre-content img {
  width: 100%;
  max-width: 550px; /* agrandi par rapport à 450px */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Image centrée dans son container avec titre */
.entre-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.entre-content .titre_addr {
  margin-top: 10px;
  font-size: 18px;
  text-align: center;
}

/* Responsive : petit écran */
@media (max-width: 768px) {
  .addr-pics {
    flex-direction: column; /* empile map et image */
    align-items: center;
  }

  .map-container iframe,
  .entre-content img {
    max-width: 90%; /* occupe presque toute la largeur */
    margin: 10px 0;
  }
}

/* --- Contact --- */
.contact-section {
  max-width: 1200px;
  margin: 10px auto;
  padding: 20px;
  text-align: center;
}

.contact-section h1 {
  font-size: 32px;
  color: #003366;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.contact-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  width: 250px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.contact-card h2 {
  margin: 10px 0 5px;
  font-size: 20px;
  color: #003366;
}

.contact-card p {
  margin: 5px 0;
  font-size: 15px;
}

.contact-card a {
  color: #0055aa;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
    align-items: center;
  }
}



    /* --- Amélioration de la galerie --- */
    .galerie-section {
      text-align: center;
      padding: 1rem 1rem;
      background-color: #f9f9f9;
    }

    .galerie-section h1 {
      font-size: 2rem;
      margin-bottom: 1rem;
      color: #1d3557;
    }

    .galerie-section p {
      margin-bottom: 2rem;
      font-size: 1.1rem;
    }

    .photo-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1rem;
      justify-items: center;
      margin-bottom: 2rem;
    }

    .photo-grid img {
      width: 100%;
      max-width: 300px;
      height: 200px;
      object-fit: cover;
      border-radius: 12px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      cursor: pointer;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .photo-grid img:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 14px rgba(0,0,0,0.2);
    }

    .album-link {
      display: inline-block;
      font-size: 1.1rem;
      color: #007bff;
      text-decoration: none;
      font-weight: bold;
      transition: color 0.3s;
    }

    .album-link:hover {
      color: #0056b3;
      text-decoration: underline;
    }

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

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

    .lightbox:target {
      display: flex;
    }

    .close {
      position: absolute;
      top: 30px;
      right: 50px;
      font-size: 2rem;
      color: #fff;
      text-decoration: none;
      font-weight: bold;
      transition: 0.3s;
    }

    .close:hover {
      color: #ff0000;
    }

    .equipes-section {
  text-align: center;
  padding: 10px 20px;
  background: #f9f9f9;
}

.equipes-section h1 {
  font-size: clamp(28px, 6vw, 42px);
  margin-bottom: 20px;
  color: #003366;
}

.equipes-section p {
  font-size: 18px;
  margin-bottom: 40px;
}

.equipes-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  justify-items: center;
  margin-bottom: 50px;
}

.equipe-card img {
  width: 100%;
  max-width: 250px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.equipe-card img:hover {
  transform: scale(1.05);
}

.equipe-card h2 {
  margin-top: 10px;
  color: #1d3557;
  font-size: 1.2rem;
}


.partenaires-section {
  background: #f5f5f5;
  padding: 30px 10px;
  text-align: center;
}

.partenaires-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.partenaires-section h2 {
  font-size: 18px;
  color: #003366;
  margin: 0 20px;
  order: 0; /* pour que le titre soit avant ou au centre selon le flux */
}

/* Logos normaux */
.partenaires-logos img {
  max-width: 200px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partenaires-logos img:hover {
  transform: scale(1.1);
}

/* --- Version mobile --- */
@media (max-width: 768px) {
  .partenaires-logos {
    flex-wrap: nowrap;          /* pas de retour à la ligne */
    gap: 10px;                  /* espace plus petit */
    justify-content: center;    /* tout reste bien centré */
    align-items: center;
    overflow-x: auto;           /* permet de scroller horizontalement si trop large */
  }

  .partenaires-section h2 {
    font-size: 10px;            /* texte plus petit */
    margin: 0 10px;
  }

  .partenaires-logos img {
    max-width: 80px;            /* logos réduits */
  }

  .partenaires-section {
    padding: 20px 5px;
  }
}



/* --- Section Partenariat PL Constructions --- */
.partenariat-section-PL {
  background: #dceeff; /* bleu très clair pour différencier */
  padding: 80px 20px;
  text-align: center;
  border-top: 2px solid #aac7ff;
  border-bottom: 2px solid #aac7ff;
}

.partenariat-content-PL h1 {
  color: #003366;
  font-size: clamp(28px, 6vw, 48px);
  margin-bottom: 10px;
}

.partenariat-content-PL h2 {
  color: #333;
  font-size: clamp(20px, 4vw, 28px);
  margin-bottom: 10px;
}

.partenariat-content-PL h3 {
  color: #0055a4;
  font-size: clamp(22px, 5vw, 32px);
  margin-bottom: 25px;
}

.partenariat-content-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.partenariat-image-PL img {
  width: 450px;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.partenariat-textes-PL {
  flex: 1;
  max-width: 550px;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

@media (max-width: 768px) {
  .partenariat-content-2 {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Section Partenariat M2 Services --- */
.partenariat-section-M2 {
  background: #e0f7e0; /* vert clair pour le fond */
  padding: 80px 20px;
  text-align: center;
  border-top: 2px solid #9adf9a;
  border-bottom: 2px solid #9adf9a;
}

.partenariat-section-LH {
  background: #b6e3be; /* vert clair pour le fond */
  padding: 80px 20px;
  text-align: center;
  border-top: 2px solid #9adf9a;
  border-bottom: 2px solid #9adf9a;
}

.partenariat-content-M2 h1 {
  color: #003366;
  font-size: clamp(28px, 6vw, 48px);
  margin-bottom: 10px;
}

.partenariat-content-M2 h2 {
  color: #333;
  font-size: clamp(20px, 4vw, 28px);
  margin-bottom: 10px;
}

.partenariat-content-M2 h3 {
  color: #0055a4;
  font-size: clamp(22px, 5vw, 32px);
  margin-bottom: 25px;
}

.partenariat-content-3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.partenariat-image-M2 img {
  width: 450px;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.partenariat-textes-M2 {
  flex: 1;
  max-width: 550px;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

@media (max-width: 768px) {
  .partenariat-content-3 {
    flex-direction: column;
    text-align: center;
  }
}

/* ----- SECTION NEWS ----- */
.news-section {
  background: #f5f5f5;
  padding: 50px 20px;
  text-align: center;
}

.news-content h1 {
  color: #003366;
  font-size: 32px;
  margin-bottom: 20px;
}

.news-texte {
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #333;
}

/* affiches côte à côte sur ordi */
.news-affiches {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.news-affiche img {
  width: 300px;
  max-width: 90vw;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.news-affiche img:hover {
  transform: scale(1.05);
}

/* Version mobile : affiches empilées */
@media (max-width: 768px) {
  .news-affiches {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .news-affiche img {
    width: 85%;
  }
}

/* --- Mise en page du texte NEWS --- */
.news-texte {
  text-align: center;
  line-height: 1.6;
  font-size: 1.2rem;
}

/* --- Version mobile : on insère des retours à la ligne spécifiques --- */
@media (max-width: 600px) {
  .news-texte br:nth-of-type(1)::after {
    content: " "; /* évite un espace superflu */
  }

  /* petite astuce : on réduit un peu la taille du texte aussi */
  .news-texte {
    font-size: 1rem;
  }
}
/* Par défaut : pas de saut de ligne sur ordinateur */
.br-mobile {
  display: none;
}

/* Sur mobile : on affiche un retour à la ligne */
@media (max-width: 600px) {
  .br-mobile {
    display: block;
  }
}

.vente-section {
  text-align: center;
  background: #e5f8e5; /* vert clair */
  padding: 40px 20px;
}

.vente-affiche img {
  max-width: 300px;
  border-radius: 10px;
  margin: 20px auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.vente-affiche img:hover {
  transform: scale(1.05);
}

.bon-de-commande {
  position: relative;
  width: 900px; /* adapte à ta largeur d’image */
  margin: 40px auto;
}

.bon-fond {
  width: 100%;
  display: block;
}

.champ {
  position: absolute;
  background: rgba(255,255,255,0.8);
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 4px;
  font-size: 14px;
}

/* Positionnement */
.nom {
  top: 30px;
  left: 50px;
  width: 300px;
}

.tel {
  top: 30px;
  left: 500px;
  width: 200px;
}

.total-saucisson {
  top: 720px;
  left: 380px;
  width: 100px;
  text-align: right;
}

.total-biere {
  top: 520px;
  left: 720px;
  width: 100px;
  text-align: right;
}

.total-general {
  top: 780px;
  left: 720px;
  font-weight: bold;
  background: #fffacd;
  padding: 6px;
  border-radius: 6px;
}

/* Bouton de téléchargement */
#download {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border: none;
  background: #0078d7;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

#download:hover {
  background: #005fa3;
}

.seo-title {
  position: absolute;
  left: -9999px;
}