/* Fichier CSS prêt à être renseigné */

body, html
{
  overflow-x: hidden;
}

section {
    margin-bottom: 50px
}

p
{
    font-size: 16px;
}

h2 {
    position: relative;
    padding-bottom: 8px;
    text-align: center;
    margin: auto;
    display: block;
    width: fit-content;
    text-transform: uppercase;
  margin-bottom : 20px;
}

h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: #E54A3A;
}

/* Cadre image */
.cadre-image {
    background-color: grey;
    border-radius: 24px;
    min-height: 260px;
    position: relative;
    margin-bottom: 20px;
}

.cadre-image .img-background-cadre 
{
    height: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    object-fit: cover;
    border-radius: 25px;
    filter: brightness(0.8);
}

.cadre-image h2 {
    position: absolute;
    bottom: 35px;
    left: 15px;
    margin: 0;
    color : white
}

.cadre-image h2::after {
    content: none;
    left: 0;
    bottom: 0;
    width: 0px;
    height: 0px;
    background-color: #E54A3A;
}

.cadre-image p.adresse {
    position: absolute;
    bottom: 15px;
    left: 15px;
    margin: 0;
    color : white;
}

/* Présentation */
.presentation {}

.presentation p {}

/* Formations */
.formations {}

.formations h2 {}

.formations ul {
    display: flex;
    list-style: none;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;

}

.formations ul li {
    padding: 30px 40px;
    background: #feefef;
    border-radius: 10px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 3px 4px 0px;
}

@media(max-width:1000px)
{
    .formations ul li {
        padding: 10px 20px;
    }
}

/* Points forts */
.points-forts {}

.points-forts h2 {}

.points-forts ul {
  margin-left: 10px;
}


.points-forts ul li {
    margin-bottom: 10px
}

.points-forts ul li::marker {
    content: "✅ ";
}

.points-forts .icon-checked {}

/* Photos */
.photos {}

.photos h2 {}

.photos .galerie-photos{
    column-count: 3;           /* Nombre de colonnes */
    column-gap: 1em;           /* Espacement entre colonnes */
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
  }
  
  .galerie-photos img {
    width: 100%;               /* L’image remplit sa colonne */
    margin-bottom: 1em;        /* Espace sous chaque image */
    break-inside: avoid;       /* Évite les coupures dans un même bloc */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    display: block;
  }
  
  /* Responsive : passe à 2 colonnes sur petits écrans */
  @media (max-width: 800px) {
    .galerie-photos {
      column-count: 2;
    }
  }
  
  /* Et 1 colonne sur très petits écrans */
  @media (max-width: 500px) {
    .mosaic-gallery {
      column-count: 1;
    }
  }
  

.photos .galerie-photos img {}

/* À proximité */
.a-proximite {}

.a-proximite h2 {}

.a-proximite p {}

/* Avis des élèves */
.avis-des-eleves {}

.avis-des-eleves h2 {}

.avis-des-eleves p {}

/* Tous les avis */
.tous-les-avis {}

.tous-les-avis h2 {}

.tous-les-avis .liste-avis 
{
	display : flex;
  flex-wrap : wrap;
  justify-content : center;
  gap : 10px;
  margin-bottom : 20px
}
.tous-les-avis .avis 
{
  width : 49%;
  background-color : #feefef;
  padding : 15px;
  border-radius : 20px;
}

.tous-les-avis .avis .star-rating-png
{
    display: flex;
    justify-content: center;
}

.tous-les-avis .avis .star-rating-png img
{
    max-width: 20px;
    height: 20px;
    margin-top: 20px;
}

@media(max-width:800px)
{
    .tous-les-avis .avis 
    {
        width : 80%;
    }
}

.tous-les-avis .header-avis 
{
  display : flex;
  justify-content : space-between;

}

.tous-les-avis .header-avis .nom-auteur 
{
  font-weight : bold;

}

.tous-les-avis .header-avis .date-avis 
{
  font-size : 12px;
}

.tous-les-avis .contenu-avis {}

.tous-les-avis button 
{
  margin : auto;
  display : block;
  background-color : #feefef;
  border : none;
  padding : 15px 20px;
  border-radius : 10px;

}

/* Horaires de bureau */
.horaires-bureau {}

.horaires-bureau h2 {}

.horaires-bureau table 
{
  margin : auto;
  min-width : 400px;
}

.horaires-bureau table tr {}

.horaires-bureau table td {}

/* Horaires de conduite */
.horaires-conduite {}

.horaires-conduite h2 {}

.horaires-conduite table 
{
  
  margin : auto;
  min-width : 400px;
}

.horaires-conduite table tr {}

.horaires-conduite table td {}

/* Auto-écoles à proximité */
.auto-ecole-proximite {}

.auto-ecole-proximite .auto-ecole-image-container img
{
    max-height : 150px;
}

@media(max-width : 1000px)
{

    h1
    {
      font-size: 20px;
      line-height: 24px;
    }

    .autoecole-container
    {
      max-width: 98%;
      padding: 0;
    }

    .auto-ecole-card
    {
      width : 95%!important;
    }

    .auto-ecole-proximite .liste-autoecole-proximite
    {
        flex-direction: column;
    }

    .auto-ecole-proximite .liste-autoecole-proximite .auto-ecole-card
    {
        margin: auto;
        margin-bottom: 10px;
    }

    .div-horaires
    {
      overflow-x: auto;
    }
}

.auto-ecole-proximite h2 {}

/* Informations légales */
.informations-legales {}

.informations-legales ul {}

.informations-legales ul li {}


.auto-ecole-card {
    display: flex;
    flex-direction: column;
    
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-family: 'Inter', sans-serif;
    transition-duration: 0.4s;
    border: 2px solid white;
    cursor: pointer;
    width: 33%;
}

.auto-ecole-card:hover
{
    border: 2px solid #f93c3a;
}

.auto-ecole-card:hover .auto-ecole-btn
{
    background-color: #f93c3a;
    color: white;
}

.auto-ecole-image-container {
    position: relative;
}

.auto-ecole-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    height: 265px;
}

.status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #32cd5c;
    color: white;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 2;
}

.auto-ecole-content {
    padding: 20px;
}

.auto-ecole-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f1f47;
}

.auto-ecole-address {
    font-size: 15px;
    color: #606060;
    margin-bottom: 8px;
}

.auto-ecole-subtitle {
    font-size: 14px;
    color: #8a8a8a;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
}

.auto-ecole-subtitle .tag
{
    background: #efefef;
    padding: 5px;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.auto-ecole-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.auto-ecole-rating .star-rating-png img
{
    max-width: 20px;
    height: 20px;

}

.note-nombre {
    font-weight: 600;
    color: #333;
}



.avis-link {
    color: #555;
    font-size: 14px;
    margin-left: 4px;
}

.auto-ecole-btn {
    border: 1px solid;
    background-color: white;
    color: #f93c3a;
    padding: 12px 24px;
    border-radius: 30px;
    text-align: center;
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.auto-ecole-btn:hover
{
    background-color: #f93c3a;
    color: white;
}

.liste-autoecole-proximite
{
    display: flex;
}

/* Sticky banner en bas de page */
.sticky-contact-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f93c3a;
    color: #fff;
    z-index: 9999;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
  }
  
  .sticky-contact-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
  }
  
  .sticky-contact-inner span {
    font-weight: bold;
  }

  @media(max-width:1000px)
  {
    .sticky-contact-inner span {
      display: none;
    }
    .sticky-contact-inner .btn-contact
    {
      margin : auto;
    }
  }
  
  .sticky-contact-inner .btn-contact {
    background: #fff;
    color: #f93c3a;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
    animation: vibrate 10s ease-in-out infinite;
  }
  
  @keyframes vibrate {
    0%, 90% {
      transform: none;
    }
    91%, 93% {
      transform: translate(1px, 0) rotate(1deg);
    }
    92%, 94% {
      transform: translate(-1px, 0) rotate(-1deg);
    }
    95%, 100% {
      transform: none;
    }
  }


  .sticky-contact-inner .btn-contact:hover {
    background: #ffe5e0;
    color: #d63312;
  }

  /* Modal CF7 */
.modal-contact {
    display: none;
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    z-index:10000;
  }
  .modal-contact__overlay {
    position:absolute; top:0; left:0; width:100%; height:100%;
    background:rgba(0,0,0,0.6);
  }
  .modal-contact__box {
    position:relative;
    background:#fff;
    max-width:500px;
    margin:50px auto;
    padding:20px;
    border-radius:6px;
    z-index:10001;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* scroll fluide sur iOS */
    overscroll-behavior: contain; 
  }
  .modal-contact.open {
  overflow: hidden;
}

  .modal-contact__close {
    position:absolute;
    top:10px; right:10px;
    background:none; border:none; font-size:1.5rem; cursor:pointer;
  }
  .modal-contact.open { display:block; }

  .breadcrumbs {
    font-size: 14px;
    margin-bottom: 1rem;
  }
  .breadcrumbs ol {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
  }
  .breadcrumbs li {
    margin-right: 0.5rem;
  }
  .breadcrumbs li+li:before {
    content: "›";
    margin-right: 0.5rem;
    color: #888;
  }
  .breadcrumbs a {
    color: #f93c3a;
    text-decoration: none;
  }
  .breadcrumbs a:hover {
    text-decoration: underline;
  }

  .logos
  {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  

  .logo-certif
  {
    border-radius: 4px;
    padding: 4px;
    max-width: 100px;
    max-height: 60px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    margin-right: 5px;
    margin-bottom: 10px;
    margin-left: 5px;
  }

  .logo-certif img
  {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: auto;
  }

