/* Cabinet Infirmier Estelle MANENC-DURET - Styles page principale */

/* Header */
.header {
    background: url('../pic/header.png') center/cover no-repeat, var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.logo-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.2;
}

.logo-credentials {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.2;
}

.header-contact {
    display: flex;
    align-items: center;
    background: var(--bg-gradient);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    font-weight: 600;
}

.header-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cyan);
}

.header-contact i {
    margin-right: 0.5rem;
}

.header-doctolib {
    display: flex;
    align-items: center;
    background: #0596DE;
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(5, 150, 222, 0.15);
    font-weight: 600;
}

.header-doctolib:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(5, 150, 222, 0.3);
    background: #047ab8;
}

/* Menu Hamburger - Caché en desktop */
.menu-hamburger {
    display: none;
    background: var(--bg-gradient);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-hamburger:hover {
    transform: scale(1.05);
}

/* Menu mobile déroulant - Caché par défaut */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--primary-color);
    width: 100%;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 300px;
}

.mobile-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
    font-weight: 600;
}

.mobile-menu a:hover {
    background: var(--secondary-color);
}

/* Navigation */
.nav {
    background: var(--primary-color);
    padding: 0;
    position: sticky;
    top: 80px;
    z-index: 999;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    gap: 0.5rem;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    font-weight: bold;
    white-space: nowrap;
}

.nav a:hover {
    background: var(--secondary-color);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--accent-light);
    transition: transform 0.3s ease;
}

.nav a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Hero Section */
.hero {
    background: var(--bg-gradient);
    color: var(--white);
    padding: 150px 2rem 200px;
    margin-top: 80px;
    scroll-margin-top: 150px;
}

.hero .container {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.5);
}

.hero-content {
    text-align: left;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero h2 {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-info {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.hero-info div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.hero-info i {
    font-size: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cta-button i {
    margin-right: 0.5rem;
}

.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.cta-doctolib {
    display: inline-block;
    background: #0596DE;
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(5, 150, 222, 0.3);
}

.cta-doctolib:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(5, 150, 222, 0.5);
    background: #047ab8;
}

/* Sections */
.section {
    padding: 80px 2rem 120px;
    scroll-margin-top: 70px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section > * {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--bg-gradient);
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--primary-color);
}

.about-image {
    position: relative;
    width: 450px;
    height: 450px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.5);
}

.about-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.about-carousel img {
    width: 450px;
    height: 450px;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.carousel-dot.active {
    background: var(--white);
    transform: scale(1.3);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-cyan);
    border-color: var(--accent-light);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

/* Formulaire centré */
.contact-form-centered {
    max-width: 700px;
    margin: 0 auto;
}

/* Cartes de localisation */
.location-info {
    margin-bottom: 3rem;
}

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

.location-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-cyan);
}

.location-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.location-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.location-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.location-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.location-card a:hover {
    text-decoration: underline;
}

/* Animation clignotante */
.blink-text {
    color: var(--primary-color) !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    animation: blink 2s ease-in-out infinite !important;
    display: block !important;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        opacity: 1;
    }
}

/* Espacement pour location-info */
.location-info {
    margin-top: 0;
    margin-bottom: 0;
}

/* Ancien style contact-content (gardé pour compatibilité) */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1rem;
    border-left: 4px solid var(--accent-color);
    background: var(--bg-light);
    border-radius: 5px;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    background: var(--bg-gradient);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    width: 100%;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cyan);
}

.submit-button i {
    margin-right: 0.5rem;
}

/* Map Section */
.map-container {
    margin-top: 0;
    margin-bottom: 5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--accent-light);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--white);
}

/* Floating Buttons */
.phone-floating {
    position: fixed;
    bottom: 90px;
    right: 30px;
    background: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.phone-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Le bouton Doctolib est au-dessus (bottom: 160px) avec style inline */
.doctolib-floating {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0596DE;
    color: #ffffff;
    width: 60px;
    height: 60px;
    position: fixed;
    bottom: 160px;
    right: 30px;
    z-index: 1000;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(5,150,222,0.4);
    transition: all 0.3s ease;
}

.doctolib-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(5,150,222,0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header */
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
    }

    .logo-title {
        font-size: 0.9rem;
    }

    .logo-name {
        font-size: 1.1rem;
    }

    .logo-credentials {
        font-size: 0.65rem;
    }

    .header-buttons {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }

    .header-contact,
    .header-doctolib {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Afficher le bouton hamburger en mobile */
    .menu-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Afficher le menu mobile déroulant */
    .mobile-menu {
        display: flex;
    }

    /* Cacher la navigation normale en mobile */
    .nav {
        display: none;
    }

    /* Hero Section */
    .hero {
        padding: 60px 1rem 60px;
        margin-top: 0;
        scroll-margin-top: 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-image {
        width: 100%;
        height: 300px;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-content {
        text-align: center;
    }

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

    .hero h2 {
        font-size: 1rem;
    }

    .hero-info {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
    }

    .hero-info div {
        justify-content: center;
    }

    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button,
    .cta-doctolib {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* Sections */
    .section {
        padding: 40px 1rem 60px;
        scroll-margin-top: 100px;
        min-height: 90vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        width: 100%;
        height: 300px;
        max-width: 400px;
        margin: 0 auto;
    }

    .about-carousel img {
        width: 100%;
        height: 300px;
    }

    .about-text {
        text-align: center;
    }

    .about-text p {
        font-size: 1rem;
    }

    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .location-card {
        padding: 2rem 1.5rem;
        background: var(--white);
        border-radius: 15px;
        box-shadow: var(--shadow);
        text-align: center;
    }

    .location-card i {
        font-size: 2.5rem;
        color: var(--accent-color);
        margin-bottom: 1rem;
        display: block;
    }

    .location-card h3 {
        color: var(--primary-color);
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }

    .location-card p {
        color: var(--text-light);
        line-height: 1.6;
        font-size: 1rem;
    }

    .location-card a {
        color: var(--accent-color);
        text-decoration: none;
        font-weight: 600;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .contact-info h3,
    .contact-form h3 {
        font-size: 1.5rem;
    }

    /* Map */
    .map-container iframe {
        height: 300px;
    }

    /* Floating Buttons */
    .doctolib-floating {
        width: 60px !important;
        height: 60px !important;
        bottom: 95px !important;
        right: 20px !important;
    }

    .phone-floating {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem;
        bottom: 20px !important;
        right: 20px !important;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }

    .footer a {
        margin: 0 0.5rem;
        display: inline-block;
        margin-bottom: 0.5rem;
    }
}
