body {
    font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Réduit l'espace entre le logo et le texte */
    margin-right: auto; /* Force l'alignement à gauche */
}

.logo {
    font-size: 2rem;
}

.logo img {
    height: 40px; /* Ajustez la taille selon votre logo */
    width: auto;
    vertical-align: middle;
}

.cabinet-name {
    font-style: normal;
    font-size: larger;
    font-family: 'Playfair Display', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff;
}


/* Styles pour le menu mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        z-index: 2;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Repositionnement des éléments en mobile */
    .header-container {
        padding: 0 1rem;
    }

    .logo-container {
        width: 100dvw; /* Prend toute la largeur */
        position: relative; /* Pour le positionnement absolu des enfants */
        margin-right: 0; /* Retire la marge auto */
        justify-content: center; /* Centre les éléments */
    }

    .logo {
        position: absolute;
        left: 1rem;
        z-index: 2;
    }

    .cabinet-name {
        font-size: 1.1rem;
        position: relative; /* Annule le positionnement absolu */
        left: auto; /* Annule le décalage gauche */
        transform: none; /* Annule la transformation */
    }
}


.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
    z-index: 1;
}

.slide:nth-child(1) {
    background-image: url('cabinet04.jpg');
}

.slide:nth-child(2) {
    background-image: url('cabinet05.png');
}

.slider-indicators {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 1s ease-out 0.3s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero .subtitle {
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    display: block;
}

/* Variante 1 — Shimmer doux */
.subtitle.shimmer {
    position: relative;
    opacity: 0;
    transform: translateY(6px) scale(0.985);
    animation: sub-in 0.7s ease-out forwards;
}
.subtitle.shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            120deg,
            transparent 0%,
            transparent 35%,
            rgba(255, 255, 255, 0.7) 50%,
            transparent 65%,
            transparent 100%
    );
    transform: translateX(-130%);
    animation: sub-sheen 2.8s 0.8s ease-in-out infinite;
    mix-blend-mode: screen;
    pointer-events: none;
}
@keyframes sub-in { to { opacity: 1; transform: none; } }
@keyframes sub-sheen {
    0% { transform: translateX(-130%); }
    55%, 100% { transform: translateX(130%); }
}

/* Variante 2 — Machine à écrire (ajustez 34ch si le texte change) */
.subtitle.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid currentColor;
    width: 0;
    animation: sub-typing 2.2s steps(34, end) 0.2s forwards, sub-caret 800ms step-end infinite;
}
@keyframes sub-typing { to { width: 34ch; } }
@keyframes sub-caret { 0%, 100% { border-color: transparent; } 50% { border-color: currentColor; } }

/* Variante 3 — Soulignement à la brosse (palette dentaire) */
.subtitle.underline { position: relative; }
.subtitle.underline::after {
    content: "";
    position: absolute;
    left: 0; bottom: -0.35em;
    height: 3px; width: 100%;
    background: linear-gradient(90deg, #ee5a2403 0%, #ee5a2485 50%,  #ee5a24 100%);
    transform-origin: left center;
    transform: scaleX(0);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 194, 184, 0.45);
    animation: sub-underline 900ms 0.3s cubic-bezier(.2,.8,.2,1) forwards;
}
.subtitle.underline::before {
    content: "";
    position: absolute;
    bottom: -0.5em; left: 0;
    width: 12px; height: 12px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0%, #66d1ff 45%, transparent 70%);
    opacity: 0;
    transform: translateX(0);
    animation: sub-sparkle 900ms 0.3s cubic-bezier(.2,.8,.2,1) forwards;
    filter: blur(0.2px);
}
@keyframes sub-underline { to { transform: scaleX(1); } }
@keyframes sub-sparkle {
    0% { opacity: 0; transform: translateX(0); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translateX(calc(100% - 12px)); }
}

/* Styles pour le slider mobile */
@media (max-width: 768px) {
    .slide {
        background-repeat: no-repeat;
        background-size: contain;
        background-position: top;
    }

    .hero {
        height: auto;
    }

    .hero-content {
        margin-bottom: 10px;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.announcement-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.cta-button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: bounceIn 1s ease-out 0.9s both;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ff5252, #d63031);
}

.features {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.feature-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 2;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: #6c757d;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

.contact-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0f9 100%); /* Même dégradé que team-section */
    color: #2c3e50; /* Couleur de texte plus foncée comme dans team-section */
    padding: 100px 20px;
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* Ajout des styles pour contact-item2 */
.contact-item2 {
    background: white;
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    max-width: 400px;
    margin: 0 auto; /* Centre l'élément */
    cursor: pointer;
}

/* Media query pour mobile */
@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr; /* Force une seule colonne sur mobile */
    }

    .contact-item2 {
        margin: 0 auto;
        padding: unset;
        background: unset;
    }

    .google-map{
        display: flex;
    }

    .scroll-indicator{
        display: none;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .cta-button {
        padding: 8px 10px;
        border-radius: 22px;
        font-size: 0.9rem;
    }

    .slider-indicators {
        bottom: 65px;
    }
}

.contact-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: none;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: white;
}

.contact-item2:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

.contact-item h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-item p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.doctor-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.doctolib-btn {
    background: linear-gradient(45deg, #667eea, #764ba2); /* Harmonisation avec les couleurs du site */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.doctolib-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    background: linear-gradient(45deg, #5a6ee0, #6c43a0);
}

.phone-btn {
    background: linear-gradient(45deg, #667eea, #764ba2); /* Même style que doctolib-btn */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.phone-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    background: linear-gradient(45deg, #5a6ee0, #6c43a0);
}

.map-container {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: none; /* Suppression du filtre d'inversion */
}

.address-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #2c3e50;
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-tooth {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    animation: floatAround 15s linear infinite;
}

.floating-tooth:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-tooth:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.floating-tooth:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes floatAround {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, -60px) rotate(180deg);
    }
    75% {
        transform: translate(-40px, -20px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.0rem;
        margin-bottom: -1rem;
    }

    .hero .subtitle {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.container-img {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.container-img img {
    max-width: 70%;
    max-height: 70%;
}


.team-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0f9 100%);
    position: relative;
    overflow: hidden;
}

/* Modifier la structure de base */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
    padding: 0 20px;
}

.top-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Permet le retour à la ligne */
}

.bottom-row {
    display: flex;
    justify-content: center;
}

.team-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-photo-container {
    margin-bottom: 20px;
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 4px solid white;
    transition: transform 0.3s ease;
    object-position: center -10%;
}

.team-photo:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.team-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    font-style: italic;
    font-family: Times, sans-serif !important;
}

.team-info h3 {
    color: #2c3e50;

    .contact-item2 img {
        margin-bottom: 15px;
        font-size: 1.5rem;
    }

    /* Responsive design */
    @media (max-width: 900px) {
        .top-row {
            flex-direction: column;
            align-items: center;
            gap: 40px;
        }

        .team-card {
            width: 100%;
            max-width: 400px;
            margin: 0 auto;
        }
    }

    @media (max-width: 480px) {
        .team-card {
            padding: 20px;
        }

        .team-photo {
            width: 180px;
            height: 180px;
        }
    }

    /* Style pour le titre de la section */

    .contact-section .section-title {
        color: #2c3e50;
        margin-bottom: 60px;
    }

    .contact-section .section-title::after {
        background: linear-gradient(45deg, #667eea, #764ba2);
    }

    .contact-item2 .team-photo {
        object-position: center -10%;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 32px; /* Logo légèrement plus petit sur mobile */
    }

    .contact-item.doctor{
        background-color: unset;
        box-shadow: unset;
    }

    .team-photo {
        width: 150px;
        height: 150px;
    }
}

/* Style du bouton hamburger */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

/* Styles pour mobile */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
        position: absolute;
        right: 1rem;
    }

    .main-nav {
        position: absolute;
        background-color: white;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 10px 20px;
        width: 100dvw;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-link:hover {
        background-color: #f8f9fa; /* Couleur de fond au survol */
        color: #007bff; /* Couleur du texte au survol */
        transform: translateX(5px); /* Léger décalage vers la droite */
    }

    .nav-link:active {
        background-color: #e9ecef; /* Couleur plus foncée lors du clic */
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Animation du hamburger */
    .hamburger-menu.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-menu.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

