.container {
  width: 50%;
  max-width: 900px;
  padding: 5px;
  height: auto;
  margin: 0 auto;
  margin-top: 5px;

  @media (max-width: 767px) {
    width: 100%;
    padding: 5px;
    margin-top: 15px;
  }
}

#info-titre {
  position: relative;
  font-family: Poppins, Arial, sans-serif;
  width: 500px;
  margin: 30px auto;
  text-align: center;

  @media (max-width: 768px) {
    font-size: 14px;
    margin: 10px;
  }
}

#info-titre h1 {
  font-size: 24px;
  color: va(--color-titre-ctc);
  font-size: 24px;
  margin-bottom: 10px;

  @media (max-width: 767px) {
    font-size: 18px;
  }
}

#info-titre p {
  margin: 12px 0;
  padding: 0;
  font-size: 12px;
  font-style: italic;
  color: var(--color-sous-titre-ctc);
  text-shadow: 2px 2px 5px black;

  @media (max-width: 767px) {
    font-size: 10px;
  }
}

.aLaLigne {
  font-family: 'Times New Roman', Times, serif;
  font-size: 10px;
  font-style: italic;
  color: rgb(103, 103, 103)
}

/* --- BASE : toutes les lignes du formulaire --- */

/* --- Style des labels --- */
.form-group {
  display: flex;
  flex-direction: column;
  /* Label au-dessus du champ */
  gap: 0.3rem;
}

/* --- Style des labels --- */
.form-group label,
.form-row label {
  font-weight: 600;
  font-size: 14px;
  font-weight: var(--wei-label);
  color: var(--color-label);
  margin-bottom: 2px;
}

/* --- Style des champs (pour qu'ils remplissent la cellule) --- */

/* 1. COULEUR UNIQUE POUR TOUT (sauf le focus) */
/* Cela couvre : repos, survol, après saisie, après sortie, chargement auto */
.form-group input,
.form-group select,
.form-group textarea {
  background-color: rgba(0, 57, 54, 0.45);
  /* Petit bonus pour que le texte reste lisible si besoin */
  color: yellow;
  width: 100%;
  box-sizing: border-box;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.form-group select {
  background-color: rgba(0, 84, 80, 0.558);
}

/* Fond des options (pour tous les navigateurs) */
.form-group select option {
  background-color: rgba(0, 57, 54, 0.85);
  color: #ffffff;
}

/* Bonus : si vous voulez une version ultra moderne pour Chrome */
@supports (appearance: base-select) {
  .form-group select {
    appearance: base-select;
  }

  .form-group select::part(listbox) {
    background-color: rgba(0, 57, 54, 0.95);
    border-radius: 8px;
  }

  .form-group select::part(option):hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
}

/* 2. UNIQUE EXCEPTION : QUAND LE CHAMP EST ACTIF (curseur dedans) */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background-color: rgba(0, 57, 54, 0.85);
  /* Moins transparent pour le focus */
}


/* 4. (Optionnel) Si l'utilisateur met le focus sur un champ auto-rempli,
   on applique la couleur de focus également */
.form-group input:-webkit-autofill:focus,
.form-group select:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(0, 57, 54, 0.85) inset !important;
}

/* 5. Pour Firefox (plus rare, mais on anticipe) */
.form-group input:-moz-autofill,
.form-group select:-moz-autofill,
.form-group textarea:-moz-autofill {
  background-color: rgba(0, 57, 54, 0.45) !important;
}

.form-group input:-moz-autofill:focus,
.form-group select:-moz-autofill:focus,
.form-group textarea:-moz-autofill:focus {
  background-color: rgba(0, 57, 54, 0.85) !important;
}

.form-group input:not(:placeholder-shown):not(:focus),
.form-group select:not(:placeholder-shown):not(:focus),
.form-group textarea:not(:placeholder-shown):not(:focus) {
  background-color: rgba(0, 57, 54, 0.45);
  /* Par exemple, couleur différente pour validé */
}

.form-group select {
  /* Supprime la flèche et le style natif du système */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Là, la hauteur fonctionne enfin ! */
  height: 50px;
  padding: 0 35px 0 15px;
  /* Espace à droite pour recréer une flèche */
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;

  /* Recréer une jolie flèche vers le bas en SVG (optionnel) */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
}

.form-group textarea {
  resize: vertical;
}

.form-group button {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  padding: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.form-group button {
  background-color: #ff6f00;
  color: black;
}

.form-row {
  display: grid;
  gap: 1rem;
  /* Espace entre les champs */
  margin-bottom: 1rem;
}

/* --- LIGNE 1 : Prénom (30%) / Nom (1fr = 70%) --- */
.row-l1 {
  grid-template-columns: 30% 1fr;
}

/* --- LIGNE 2 : Téléphone (30%) / Email (1fr = 70%) --- */
.row-l2 {
  grid-template-columns: 30% 1fr;
}

/* --- LIGNE 3 : Adresse (1fr = 100%) --- */
.row-l3 {
  grid-template-columns: 1fr;
}

/* --- LIGNE 4 : Code postal (15%) / Ville (1fr) / Pays (1fr) --- */
/* Les deux '1fr' se partagent équitablement les 85% restants (42.5% chacun) */
.row-l4 {
  grid-template-columns: 25% 1fr 1fr;
}

/* --- LIGNE 5 : Message (1fr = 100%) --- */
.row-l5 {
  grid-template-columns: 1fr;
}

/* --- LIGNE 6 : Bouton (1fr = 100%) --- */
.row-l6 {
  grid-template-columns: 1fr;
  margin-top: 20px;
  /* Ajout d'un espace au-dessus du bouton */
}

/* --- Pour que les champs remplissent bien leur cellule --- */
.form-row input,
.form-row select .form-row textarea,
.form-row button {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.form-row button {
  margin-top: 2rem;
  width: 100%;
  padding: 1rem;
  background-color: #0a2d78;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-row button:hover {
  background-color: rgb(10, 88, 10);
  color: rgb(255, 255, 0);
  font-weight: 900;
  text-shadow: 1px 1px 2px black;
}

.form-row button:active {
  background-color: red;
  color: white;
  text-shadow: 1px 1px 2px black;
}

/* --- MODE MOBILE (moins de 768px) : TOUT EN 1 SEULE COLONNE --- */
@media (max-width: 768px) {

  .form-row,
  .row-l1,
  .row-l2,
  .row-l3,
  .row-l4,
  .row-l5,
  .row-l6 {
    grid-template-columns: 1fr !important;
    /* Force une colonne unique */
  }
}

.container-InfoRemarque {
  display: none;
}

/* ---------- Responsive : moins de 768px ---------- */
@media (max-width: 767px) {

  .container-1,
  .container-2,
  .container-3 {
    grid-template-columns: 1fr;
    /* une seule colonne */
  }
}

/* Ajoutez cette CSS pour une transition douce */
label[for="ville"],
label[for="pays"] {
  transition: color 0.3s ease;
}

label[for="ville"].info,
label[for="pays"].info {
  color: #0066cc;
  font-style: italic;
}

label[for="ville"].error,
label[for="pays"].error {
  color: #cc0000;
  font-weight: bold;
}

label[for="ville"].success,
label[for="pays"].success {
  color: #006600;
}

/* custom-select-container */
.custom-select-container {
  position: relative;
  width: 100%;
}

.custom-select-selected {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-select-selected img.flag-icon {
  width: 20px;
  height: auto;
  margin-right: 8px;
}

.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

.custom-select-option {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-select-option:hover {
  background: #fff203;
  color: black;
}

.custom-select-option img.flag-icon {
  width: 20px;
  height: auto;
}

/* Conteneur relatif pour le champ de saisie */
.search-container {
  position: relative;
  /* Important : le point de référence */
  width: 100%;
}

/* Liste des suggestions */
#suggestions {
  position: absolute;
  /* Sort du flux normal */
  left: 0;
  /* Aligné à gauche du champ */
  top: 100%;
  /* Juste en dessous du champ */
  width: 100%;
  /* Prend la largeur du champ */
  min-width: 300px;
  /* Largeur minimum (ajustez) */
  max-width: 500px;
  /* Largeur maximum (ajustez) */
  background: rgba(2, 86, 13, 0.306);
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 300px;
  overflow-y: auto;
  z-index: 9999;
  /* Passe au-dessus de tout */
  display: none;
  /* Caché par défaut */
}

/* Pour que les éléments de la liste ne soient pas coupés */
#suggestions li {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  white-space: nowrap;
  /* Empêche le texte de passer à la ligne */
  overflow: hidden;
  text-overflow: ellipsis;
  /* Ajoute "..." si trop long */
}

/* Pour les noms de villes longs, on peut autoriser l'ellipsis */
#suggestions .city-name {
  flex: 1;
  min-width: 0;
  /* Permet de réduire */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Pour le code postal */
#suggestions .postal-code {
  flex-shrink: 0;
  /* Ne se réduit pas */
  margin-left: 10px;
  color: #888;
  font-size: 13px;
}

/* Pour le drapeau */
#suggestions .flag {
  flex-shrink: 0;
  /* Ne se réduit pas */
  width: 30px;
  height: 20px;
  margin-right: 10px;
  border-radius: 2px;
  border: 1px solid #ddd;
  object-fit: cover;
}

.flag {
  font-size: 28px;
  line-height: 1;
  width: 36px;
  text-align: center;
}

.city-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.postal-code {
  font-size: 13px;
  color: #888;
  margin-left: auto;
}

#ville {
  box-sizing: border-box;
}

#ville:focus {
  outline: none;
  border-color: #28a745;
}

.no-result {
  padding: 16px;
  color: #888;
  text-align: center;
  font-style: italic;
}

.loading {
  padding: 16px;
  color: #007bff;
  text-align: center;
  font-style: italic;
}

.error {
  padding: 16px;
  color: #dc3545;
  text-align: center;
}

/* =============================================
   BANDEAU DE CONSENTEMENT (bas de page)
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(20, 20, 30, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 16px 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner-text {
  flex: 1;
  min-width: 250px;
}

.cookie-banner-text strong {
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}

.cookie-banner-text p {
  font-size: 14px;
  margin: 0;
  color: #ccc;
  line-height: 1.5;
}

.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

/* =============================================
   BOUTONS DU BANDEAU
   ============================================= */
.cookie-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #6c63ff, #4a47d6);
  color: #fff;
}

.cookie-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.4);
}

.cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.cookie-btn-tertiary {
  background: transparent;
  color: #aaa;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn-tertiary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* =============================================
   MODALE DE PERSONNALISATION
   ============================================= */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 20px;
  max-width: 560px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  animation: modalIn 0.4s ease-out;
}

@keyframes modalIn {
  from {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
  }

  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.cookie-modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h2 {
  margin: 0;
  font-size: 22px;
  color: #222;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.cookie-modal-close:hover {
  color: #333;
}

.cookie-modal-body {
  padding: 20px 28px;
}

.cookie-modal-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* =============================================
   OPTIONS DE COOKIES (dans la modale)
   ============================================= */
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 16px;
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option-info {
  flex: 1;
}

.cookie-option-info h3 {
  margin: 0;
  font-size: 15px;
  color: #222;
}

.cookie-option-info p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #888;
  line-height: 1.4;
}

/* ============================================
   FORÇAGE ABSOLU - Version 2024
   ============================================ */

/* SÉLECTEURS EXTRÊMEMENT LARGES */
input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
input:-webkit-autofill-strong-password,
input:-webkit-autofill-strong-password:focus,
input:-webkit-autofill-strong-password:hover,
input:-webkit-autofill-strong-password:active,
input:-webkit-autofill-preview,
input:-webkit-autofill-preview:focus,
input:-webkit-autofill-preview:hover,
input:-webkit-autofill-preview:active,
select:-webkit-autofill,
select:-webkit-autofill:focus,
select:-webkit-autofill:hover,
select:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(0, 57, 54, 0.45) inset !important;
  -webkit-text-fill-color: #ffffff !important;
  background-color: rgba(0, 57, 54, 0.45) !important;
  background: rgba(0, 57, 54, 0.45) !important;
  background-image: none !important;
  border-color: #2a6f6b !important;
  color: #ffffff !important;
  caret-color: #ffffff !important;
  transition: background-color 0s, color 0s !important;
}

/* Pour les champs de type email, password, tel, etc. */
input[type="text"]:-webkit-autofill,
input[type="password"]:-webkit-autofill,
input[type="email"]:-webkit-autofill,
input[type="tel"]:-webkit-autofill,
input[type="number"]:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(0, 57, 54, 0.45) inset !important;
  -webkit-text-fill-color: #ffffff !important;
  background-color: rgba(0, 57, 54, 0.45) !important;
  background: rgba(0, 57, 54, 0.45) !important;
  color: #ffffff !important;
}

/* Supprimer l'effet jaune sur le focus après autofill */
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(0, 57, 54, 0.45) inset !important;
  -webkit-text-fill-color: #ffffff !important;
}