/*
 Theme Name:   Divi Enfant
 Theme URI:    http://exemple.com
 Description:  Thème enfant de Divi
 Author:       Ton Nom
 Template:     Divi
 Version:      1.0.0
*/

@import url("../Divi/style.css"); /* important pour charger le CSS parent */


h2 {
    color: #09A2D6 !important;
    font-size: 32px !important;
}

.centres-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1500px) {
    .centres-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 980px) {
    .centres-grid {
        grid-template-columns: 1fr;
    }
}

.centre-item {
    border: 1px solid #f3f3f3;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06); /* ombre large et diffuse */
}

.centre-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10); /* un peu plus forte mais très diffuse */
    border-color: #e3e3e3;
}

.centre-item h2 {
    font-size: 1.2em;
    margin: 0;
    padding: 0;
}

.centre-item p {
    padding: 0;
}

.centre-item .centre-telephone {
    line-height: 1.6em;
}

.centre-thumb {
    width: 100%;
    height: 180px;       /* hauteur fixe */
    object-fit: cover;   /* recadre l'image sans la déformer */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.centre-title a {
    text-decoration: none;
    color: #003580;
}

.centre-adresse {
    margin: 5px 0;
    color: #555;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.centre-adresse .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}


.examens-liste {
    list-style-type: disc;
    margin-left: 20px;
    padding: 0;
}

.examens-liste li {
    margin: 5px 0;
}

/*.examens-liste li a {
    text-decoration: none;
    color: #003580;
}

.examens-liste li a:hover {
    text-decoration: underline;
}*/

#examens-du-centre h2 {
    font-size: 45px;
    color: #09A2D6;
}


/* ================================
   ACCORDION STYLE CUSTOM (Divi-like)
================================ */

.accordion {
    max-width: 900px;
    margin: 0 auto;
}

/* Item */
.accordion-item {
    margin-bottom: 25px; 
    padding: 20px;       
    border-radius: 8px;
    background: #fff;
    box-shadow: 0px 2px 17px 0px rgba(9,162,214,0.23); 
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0px 4px 20px 0px rgba(9,162,214,0.35);
    transform: translateY(-2px);
}

/* Titre */
.accordion-title {
    position: relative;
    padding-right: 50px;
    font-size: 29px;      
    font-weight: 700;     
    color: #09A2D6;       /* couleur fixe */
    cursor: pointer;
}

/* Icône */
.accordion-title::before {
    font-size: 25px;
    right: -5px;
    color: #09A2D6;
    font-family: ETmodules !important;
    font-weight: 400 !important;
    content: "\3b" !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* Picto pour item ouvert */
.accordion-item.active .accordion-title::before {
    content: "\3a" !important; /* caractère flèche vers le haut */
}

/* Contenu */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 0;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

/* Contenu ouvert */
.accordion-item.active .accordion-content {
    max-height: 800px;
    padding-top: 15px;
}

/* Liste examens */
.accordion-content ul {
    margin: 0;
    padding-left: 20px;
}

.accordion-content li {
    margin-bottom: 6px;
    color: #555;
    font-size: 18px;
}

/* Liens */
.accordion-content a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.accordion-content a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .accordion-title {
        font-size: 22px;
    }

    .accordion-content li {
        font-size: 14px;
    }
}



/**** Radiologues ****/

.radiologues-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .radiologues-list {
    grid-template-columns: 1fr;
  }
}

.radiologue-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  box-shadow: 0px 2px 17px 0px rgba(9,162,214,0.23);
  border-radius: 8px;
  background: #fff;
  transition: all 0.3s ease;
}

.radiologue-item:hover {
  box-shadow: 0px 4px 20px 0px rgba(9,162,214,0.35);
  transform: translateY(-2px);
}

.radiologue-photo {
  flex-shrink: 0;
  width: 120px;
  text-align: center;
  margin-bottom: 0px;
}

.radiologue-thumbnail {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #09A2D6;
}

.radiologue-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  background: #f5f5f5;
  margin: 0 auto;
}

.radiologue-content {
  width: 100%;
}

.radiologue-title {
  font-size: 25px !important;
  font-weight: bold;
  color: #007aff;
  margin-bottom: 0px;
  text-align: left;
}

.radiologue-description {
  margin-bottom: 0px;
}

.radiologue-description p {
  margin: 0 0 10px 0;
}

.radiologue-description ul {
    padding-bottom: 0;
}

.radiologue-toggle-btn {
  background: #09A2D6;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s ease;
  margin-top: 5px;
}

.radiologue-toggle-btn:hover {
  background: #007aff;
}

.radiologue-centres {
  margin-top: 0px;
}

.radiologue-centres-title {
  margin-bottom: 0px;
}

.radiologue-centres ul {
  margin: 0;
  padding-left: 18px;
}

.radiologue-centres a {
  color: #09A2D6;
  text-decoration: none;
}

.radiologue-centres a:hover {
  text-decoration: underline;
}



.map-centre-leaflet {
    width: 100%;
    height: 550px;
    border-radius: 8px;
    margin: 30px 0;
}

.leaflet-popup-content {
    text-align: center;
}



/**** Accès résultats examens ****/

/* CONTENEUR */
.cta-fixes {
    position: fixed;
    left: 0;
    top: 30%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* CTA */
.cta-fixe {
    display: block;
    padding: 14px 16px 14px 24px;
    width: 180px;
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    box-shadow: 0px 4px 18px rgba(0,0,0,0.2);
    border-radius: 0 8px 8px 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.cta-rdv {
    background: #09a2d6;
}

/* PATIENT */
.cta-patient {
    background: #007AFF;
}

/* MEDECIN */
.cta-medecin {
    background: #1b2d68;
}

/* HOVER */
.cta-fixe:hover {
    transform: translateX(0px);
    box-shadow: 0px 6px 24px rgba(0,0,0,0.3);
}

/* TEXTE STRONG */
.cta-fixe strong {
    font-weight: 700;
}

/* MOBILE */
@media (max-width: 980px) {

    .cta-fixes {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: row;
        gap: 0;
        z-index: 9999;
    }

    .cta-fixe {
        width: 33.33%;
        border-radius: 0;
        text-align: center;
        padding: 14px 10px;
        font-size: 14px;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .cta-fixe strong {
        display: block;
        font-size: 15px;
    }

    /*.cta-patient {
        background: #09A2D6;
    }

    .cta-medecin {
        background: #007AFF;
    }*/

    /* Désactive l'animation slide sur mobile */
    .cta-fixe:hover {
        transform: translateX(-8px) !important;
        box-shadow: none;
    }

    /* Pour éviter que la barre cache le contenu */
    body {
        padding-bottom: 70px;
    }
}

/* OVERLAY */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* MODALE */
.modal-content {
    background: #fff;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
    border-radius: 8px;
    position: relative;
    font-size: 15px;
    line-height: 22px;
}

/* BOUTON FERMER */
.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}



/**** Autres ****/

.grecaptcha-badge {
    display: none;
}