/* === Barre du haut === */
.firstbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
    position: relative;
}

/* Logo */
#logo {
    width: 120px;
    margin-left: 20px; /* marge ajoutée si besoin */
}

/* === Bannière simplifiée pour les pages standards === */
.banniere-page {
    position: relative;
    overflow: hidden;
}

.banniere-page img {
    width: 100%;
    object-fit: cover; /* Garde l'image bien centrée sans déformation */
}

/* Texte superposé */
.banniere-page .side-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #3A3C3F;
    text-align: center;
    padding: 0 20px;
    max-width: 600px;
}

.banniere-page .side-text h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.banniere-page .side-text p {
    font-size: 16px;
    color: #555;
}

.banniere-page .readmore {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #0054A6;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.banniere-page .readmore:hover {
    background-color: #003f7f;
}



.section-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 40px 20px;
}

/* Blocs avec image en fond */
.box-section {
    display: inline-block;
    width: 45%;
    padding-left: 85px;
    padding-right: 20px;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 60px 60px;
    margin: 20px 0;
    min-height: 100px;
    text-align: justify;
}

#part1 { background-image: url("../img/icon1.png"); }
#part2 { background-image: url("../img/icon2.png"); }
#part3 { background-image: url("../img/icon3.png"); }
#part4 { background-image: url("../img/icon4.png"); }

.box-section h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.box-section p {
    margin-top: 10px;
    font-size: 16px;
    color: #555;
}



.testimonial-section {
    background-color: #f0f0f0;
    padding: 60px 20px;
    text-align: center;
    margin-top: 80px;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-section h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #333;
}

.intro-text {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
}

.circular-img {
    width: 150px;
    height: 150px;
    border-radius: 50%; 
    object-fit: cover;
    margin-bottom: 30px;
    border: 4px solid #ccc; 
}

.testimonial-text {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
}

.author-name {
    font-size: 20px;
    color: #222;
    margin-top: 20px;
}


/* === FOOTER === */
footer {
    background-color: #2c2c2c;
    padding: 60px 20px;
    color: #fff;
    font-size: 14px;
    overflow-x: hidden; /* Évite les scroll horizontaux */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left,
.footer-right {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

/* Titres */
.footer-left h4,
.footer-right h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
}

/* Paragraphes */
.footer-left p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #ccc;
}

/* Liste de contact à icônes */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    padding-left: 30px;
    margin-bottom: 12px;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: left center;
    color: #ccc;
}

/* Icônes en background */
.contact-email {
    background-image: url("../img/mail.png");
}

.contact-phone {
    background-image: url("../img/tel.png");
}

.contact-location {
    background-image: url("../img/adress.png");
}

/* === RESPONSIVE === */
@media screen and (max-width: 1200px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-left,
    .footer-right {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .footer-right {
        margin-top: 30px;
    }

    .contact-list li {
        background-position: center left;
        padding-left: 35px;
    }
}

/* Cacher le texte sur la bannière quand écran < 1000px */
@media screen and (max-width: 1000px) {
    .side-text {
        display: none;
    }
}

/* Responsive des box-section (les blocs à icône) */
@media screen and (max-width: 1200px) {
    .box-section {
        display: block;
        max-width: 90%;
        margin: 20px auto;
        text-align: justify;
    }
}

.banniere-page .side-text {
    position: absolute;
    top: 50%;
    left: 60px; /* ✅ décalage vers la gauche */
    transform: translateY(-50%);
    color: #3A3C3F;
    max-width: 500px;
    text-align: left;
}

.banniere-page .side-text h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

.banniere-page .side-text p {
    font-size: 15px;
    color: #444;
}

.banniere-page .readmore {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #0054A6;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.banniere-page .readmore:hover {
    background-color: #003f7f;
}
/* ===== Bannière réduite ===== */
.banniere-reduite {
    width: 100%;
    height: 250px; /* Ajustable selon l'effet désiré */
    overflow: hidden;
    position: relative;
}

.banniere-reduite img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
tbody tr:hover td,
tbody tr:hover th {
    background-color: #BBB;
    cursor: pointer;
}

/* ... (Fin de votre code CSS existant) ... */

/* TP 5 - RÈGLES JAVASCRIPT/JQUERY */

/* 1. Masquer le formulaire par défaut (Point 4) */
#FormAddPatient {
    display: none;
    padding-top: 20px; /* Ajout d'une petite marge pour le déroulement */
    margin: 20px auto; /* Centrage et marge autour du formulaire inséré */
}

/* 2. Style pour désactiver le bouton (Point 9) */
.disabled {
    pointer-events: none; /* Empêche le clic */
    opacity: 0.65;       /* Aspect grisé */
}
