:root {
  --primary-blue: #1a4b8c;
  --secondary-blue: #2d6fb5;
  --primary-green: #2a9d8f;
  --light-green: #e9f5f3;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --text-dark: #333333;
  --text-light: #666666;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: auto !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  /* min-height: 100vh; */
  padding: 20px;

  padding-bottom: 0 !important;
  /* display: flex !important; */
  /* flex-direction: column !important; */
}

h1,
h2,
h3,
h4 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0px;
}

/* Header & Navigation */
header {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: var(--white);
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.logo {
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}
.logo-section {
  display: flex;
  align-items: center;
  gap: 05px;
}
.logo i {
  font-size: 2rem;
  /* color: #fff; */
  margin-right: 0px;
  color: var(--primary-green);
}
.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 2rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary-green);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(rgba(26, 75, 140, 0.8), rgba(26, 75, 140, 0.8)),
    url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80")
      center/cover no-repeat;
  color: var(--white);
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeIn 1s forwards 0.5s;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeIn 1s forwards 1s;
}

.btn {
  display: inline-block;
  background-color: var(--primary-green);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 1s forwards 1.5s;
}

.btn-premiere {
  display: block;
  justify-content: center;
  background-color: var(--primary-green);
  color: var(--white);
  padding: 1rem 5.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 1s forwards 1.5s;
  text-align: center !important;
  margin: 0 auto;
}
.btn:hover {
  background-color: var(--secondary-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Form Section */
.form-section {
  padding: 6rem 0;
  padding-top: 10px;
  padding-bottom: 0px !important;
  background-color: var(--white);
  margin: 0 auto;
}

.form-container {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  /* box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1); */
  max-width: 800px;
  margin: 0 auto;
}

.form-header {
  /* background: var(--primary-blue); */
  /* background: linear-gradient(135deg, #4caf50 0%, #2196f3 100%); */
  /* color: var(--white); */
  color: darkcyan;
  padding: 0px;
  text-align: center;
}

.form-header h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.form-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin: 0;
  margin-top: -1px;
  margin-bottom: 09px;
}

.form-steps {
  display: flex;
  background: var(--secondary-blue);
}

.step {
  flex: 1;
  text-align: center;
  padding: 1rem;
  color: var(--white);
  font-weight: 600;
  position: relative;
}

.step.active {
  background: var(--primary-green);
  border-radius: 10px;
}

.step:not(:last-child):after {
  content: "";
  position: absolute;
  right: -10px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  border-left: 10px solid var(--secondary-blue);
  z-index: 1;
}

.step.active:not(:last-child):after {
  border-left-color: var(--primary-green);
}
.step:hover:not(.active) {
  background: #96e272;
}

.form-body {
  padding: 1rem;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-control {
  width: 100%;
  height: 60px;
  padding: 1rem;
  border: 1px solid #535252;
  border-radius: 10px;
  font-family: "Open Sans", sans-serif;
  color: var(--text-dark) !important;
  background-color: #ffff;
}

.radio-group {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
}

.radio-option {
  display: flex;
  align-items: center;
}

.radio-option input {
  margin-right: 0.5rem;
}

.date-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.date-input {
  height: 60px;
  padding: 1rem;
  border: 1px solid #535252;
  border-radius: 10px;
  font-family: "Open Sans", sans-serif;
  color: var(--text-dark);
  background-color: #ffff;
  width: 100%;
  font-size: 16px; /* Important pour éviter le zoom sur iOS */
}

.checkbox-group {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--light-green);
  border-radius: 5px;
}

.checkbox-option {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-option input {
  margin-right: 0.5rem;
  margin-top: 0.3rem;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem !important;
  /* border-top: 1px solid #eee; */
}

/* .form-footer-premiere {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
} */

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* Footer */
footer {
  /* background: var(--primary-blue); */
  background: var(--primary-green);

  color: var(--white);
  padding: 0.5rem 0 2rem;
  text-align: center;

  margin-bottom: 3px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;

  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: var(--primary-blue) !important;
  color: var(--white) !important;
  padding: 1rem 0 !important; /* Réduit le padding pour un footer fixe */
  z-index: 1000 !important;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
}

.footer-logo i {
  margin-right: 10px;
  color: var(--primary-green);
}
.footer-links {
  gap: 4rem; /* espace horizontal entre les liens */
}
.footer-links h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  gap: 2rem !important; /* Réduit l'espace entre les liens */
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 4rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
  margin: 0 1rem !important; /* Réduit les marges */
}

.footer-links a:hover {
  color: var(--primary-green);
}

.social-icons {
  display: flex;
  margin-top: 1.5rem;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  margin-right: 1rem;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: var(--primary-green);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.phone-number {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--primary-green);
}
.step-description {
  display: inline;
}
/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 5px;
    text-align: center;
    margin-bottom: 12px;
  }

  .logo-section {
    justify-content: center;
  }

  .phone-number {
    font-size: 1rem;
  }

  .logo-text {
    font-size: 1rem;
  }

  .logo i {
    font-size: 1.5rem;
  }

  .menu-toggle {
    display: block;
  }

  nav ul {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: var(--primary-blue);
    width: 100%;
    height: calc(100vh - 70px);
    transition: left 0.3s;
    padding: 2rem;
  }

  nav ul.active {
    left: 0;
  }

  nav li {
    margin: 1.5rem 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .step {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 14px;
    font-weight: 500;
  }
  .form-steps {
    height: 40px; /* Hauteur fixe compacte */
  }

  .step:not(:last-child):after {
    display: none;
  }
  .step {
    border-right: none;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .step-description {
    display: none;
  }

  .step:last-child {
    border-bottom: none;
  }

  .date-group {
    flex-direction: column;
    align-items: stretch;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  footer .footer-links {
    flex-direction: column !important;
    gap: 0.5rem;
  }

  footer .footer-links a {
    margin: 0.1rem 0 !important;
    padding: 0.3rem;
    text-align: center;
  }

  footer .footer-logo {
    font-size: 1.1rem;
    justify-content: center !important;
    margin-bottom: 1rem;
  }

  footer .social-icons {
    justify-content: center !important;
    margin-top: 1rem;
  }

  footer .d-flex {
    flex-direction: column !important;
    text-align: center;
  }
  .form-header p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    margin-bottom: 09px;
  }
  .form-control {
    width: 100%;
    height: 65px;
    padding: 1rem;
    border: 1px solid #535252;
    border-radius: 10px;
    font-family: "Open Sans", sans-serif;
    color: var(--text-dark) !important;
    background-color: #ffff;
  }
}

/* Styles spécifiques pour mentions légales */
.mentions-hero {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: var(--white);
  padding: 8rem 0 4rem;
  text-align: center;
  margin-top: 0;
}

.mentions-content {
  padding: 4rem 0;
  background-color: var(--white);
  min-height: calc(100vh - 200px);
}

.mentions-section {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.mentions-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.mentions-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--secondary-blue)
  );
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.mentions-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

.mentions-title {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.mentions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.info-box {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary-green);
  margin-top: 1rem;
}

.warning-box {
  background: linear-gradient(135deg, #fff5f5, #fed7d7);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #e53e3e;
  margin-top: 1rem;
}

.contact-box {
  background: linear-gradient(135deg, #f0fff4, #c6f6d5);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary-green);
  margin-top: 1rem;
}

.cookies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.cookie-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  text-align: center;
}

.cookie-number {
  width: 40px;
  height: 40px;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: bold;
}

.rights-list {
  list-style: none;
  padding: 0;
}

.rights-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
}

.rights-list li:before {
  content: "✓";
  color: var(--primary-green);
  font-weight: bold;
  margin-right: 0.5rem;
}

.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--secondary-blue)
  );
  color: var(--white);
  padding: 3rem 2rem;
  border-radius: 20px;
  text-align: center;
  margin-top: 3rem;
}

.btn-home {
  display: inline-block;
  background: var(--white);
  color: var(--primary-blue);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 1.5rem;
  transition: all 0.3s;
}

.btn-home:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .mentions-hero {
    padding: 6rem 0 3rem;
  }

  .mentions-header {
    flex-direction: column;
    text-align: center;
  }

  .mentions-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .mentions-section {
    padding: 1.5rem;
  }

  .mentions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cookies-grid {
    grid-template-columns: 1fr;
  }
}
/* Styles spécifiques pour politique de confidentialité */
.politique-hero {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: var(--white);
  padding: 8rem 0 4rem;
  text-align: center;
  margin-top: 0;
}

.politique-content {
  padding: 4rem 0;
  background-color: var(--light-gray);
  min-height: calc(100vh - 200px);
}

.content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.section-title {
  color: var(--primary-blue);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-green);
  display: inline-block;
}

.section-title:first-child {
  margin-top: 0;
}

.subsection-title {
  color: var(--secondary-blue);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.text-content {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.text-intro {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 2rem;
  border-radius: 15px;
  border-left: 5px solid var(--primary-green);
  margin-bottom: 2rem;
}

.data-list {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 1.5rem 0;
}

.data-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.data-list li {
  padding: 0.75rem 0 0.75rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  position: relative;
}

.data-list li:last-child {
  border-bottom: none;
}

.data-list li:before {
  content: "•";
  color: var(--primary-green);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0.75rem;
}

.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.data-table {
  width: 100%;
  background: var(--white);
  border-collapse: collapse;
  border-radius: 15px;
  overflow: hidden;
}

.data-table th {
  background: var(--primary-blue);
  color: var(--white);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:nth-child(even) {
  background: #f8f9fa;
}

.highlight-box {
  background: linear-gradient(135deg, #e8f5e8, #d4edda);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary-green);
  margin: 1.5rem 0;
}

.warning-box {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #ffc107;
  margin: 1.5rem 0;
}

.contact-info {
  background: var(--primary-blue);
  color: var(--white);
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
  text-align: center;
}

.contact-info h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--secondary-blue)
  );
  color: var(--white);
  padding: 3rem 2rem;
  border-radius: 20px;
  text-align: center;
  margin-top: 3rem;
}

.btn-home {
  display: inline-block;
  background: var(--white);
  color: var(--primary-blue);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 1.5rem;
  transition: all 0.3s;
}

.btn-home:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .politique-hero {
    padding: 6rem 0 3rem;
  }

  .content-wrapper {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .table-container {
    margin: 1rem -1rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
  }

  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
  }
}
/* Détection Safari Mobile */
/* @supports (-webkit-touch-callout: none) { */
/* Variables pour Safari Mobile */

/* Fix principal pour Safari Mobile */

/* Container principal stabilisé */
.form-section {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  padding: 2rem 0 8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Empêcher le zoom automatique avec font-size 16px minimum */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  font-size: 16px !important;
  -webkit-appearance: none;
  -webkit-border-radius: 10px;
  border-radius: 10px;
}

/* Stabiliser le formulaire pendant la saisie */
.form-container {
  position: relative;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Empêcher le décalage lors du focus */
.form-control:focus {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  position: relative;
  z-index: 10;
}

/* Fix pour les select sur Safari Mobile */
/* select.form-control {
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
} */

/* Stabiliser les étapes du formulaire */
.form-steps {
  position: relative;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Empêcher les sauts visuels */
.form-step {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  position: relative;
}

/* Header stabilisé */
.form-header {
  position: relative;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  padding-bottom: 1rem;
}

/* Empêcher le bounce scroll */
.form-body {
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
  position: relative;
}

/* Empêcher les glitches visuels lors des transitions */
.form-step.active {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  opacity: 1;
  display: block;
}

.form-step {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

/* Fix pour la validation visuelle */
.is-invalid {
  border: 2px solid red !important;
  background-color: #ffe6e6 !important;
  -webkit-appearance: none !important;
}
/* Fix pour la validation visuelle */
.is-invalid {
  border: 2px solid red !important;
  background-color: #ffe6e6 !important;
  -webkit-appearance: none !important;
}
.error-messages {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  animation: slideDown 0.3s ease-out;
}
.error-messages ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.error-messages li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

/* Erreurs inline pour chaque champ */
.form-group .invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc2626;
}

/* Style pour les champs en erreur */
.form-control.is-invalid {
  border-color: #dc2626;
  background-color: #fef2f2;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
/* Réduire l'espace entre les champs de date cachés */
.date-field {
  margin-bottom: 0.8rem;
}

/* Styles pour Safari Mobile */
@media not all and (min-resolution: 0.001dpcm) {
  @supports (-webkit-appearance: none) {
    .date-field:not(.hidden) {
      display: block !important;
      opacity: 1;
      height: auto;
    }

    .date-field:not(.hidden) label {
      display: block !important;
      opacity: 1 !important;
    }

    input[type="date"] {
      min-height: 44px; /* Hauteur minimale pour les touches tactiles */
    }
  }
}

/* Styles pour les champs de date sur mobile */
.date-field {
  margin-bottom: 1rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.date-field.hidden {
  display: block !important; /* Toujours afficher structurellement */
  height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.date-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}
