/* 
   Trichopolis - Cabinet du Dr Biraud
   Style CSS Mobile-First
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
    padding-top: 95px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: #0b3b5b;
    transition: all 0.3s ease;
}

a:hover {
    color: #c19434;
}

ul {
    list-style: none;
}

/* ===== HEADER ===== */

header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 115px;
    width: auto;
}

.logo-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    margin: 0 10px;
    text-align: center;
}

.logo-text h1 {
    font-size: 0.9rem;
    color: #0b3b5b;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 0.65rem;
    color: #666;
    line-height: 1.3;
    display: none;
    white-space: nowrap;
}

nav ul {
    display: none;
    flex-direction: row;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul.active {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

nav a {
    color: #333;
    font-weight: 500;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0b3b5b;
}

/* ===== BUTTONS ===== */

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0b3b5b;
    color: white !important;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: #c19434;
    transform: translateY(-2px);
}

/* ===== SECTIONS TITRE ===== */

.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    color: #0b3b5b;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #c19434;
}

/* ===== HERO ===== */

.hero {
    position: relative;
    overflow: hidden;
    height: 35vh;
    min-height: 280px;
    background: linear-gradient(rgba(11, 59, 91, 0.8), rgba(11, 59, 91, 0.8)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-slide {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.5;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 90%;
}

.hero h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 600;
}

.hero p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.95;
    line-height: 1.5;
}

.carousel-controls-hero {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 10;
}

.control-btn {
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background-color: #c19434;
}

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

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

.dot-hero.active {
    background-color: white;
    transform: scale(1.2);
}

/* ===== SERVICES ===== */

#services {
    background-color: white;
    padding: 30px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    background-color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 3px solid #0b3b5b;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card .icon {
    background-color: #0b3b5b;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.service-card h3 {
    margin-bottom: 10px;
    color: #0b3b5b;
    font-size: 1.1rem;
}

.service-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* ===== TEAM ===== */

#equipe {
    background-color: #f9fafb;
    padding: 30px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.team-member {
    text-align: center;
}

.member-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member h3 {
    color: #0b3b5b;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.member-title {
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
    font-size: 0.9rem;
}

.member-bio {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== CONTACT ===== */

#contact {
    background-color: white;
    padding: 30px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.contact-info .info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.info-item i {
    color: #0b3b5b;
    font-size: 1.2rem;
    margin-top: 3px;
    min-width: 20px;
}

.info-item p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #c19434;
}

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

/* ===== FOOTER ===== */

footer {
    background-color: #0b3b5b;
    color: white;
    padding: 30px 0 15px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 1rem;
    font-weight: 700;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: white;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
    color: #c19434;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #c19434;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ===== TABLET (768px+) ===== */

@media (min-width: 768px) {
    body {
        padding-top: 90px;
    }

    header .container {
        padding: 5px 20px;
    }

    .logo img {
        height: 100px;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .tagline {
        font-size: 0.65rem;
        display: block;
        white-space: nowrap;
    }

    nav ul {
        display: flex !important;
        position: static;
        flex-direction: row;
        gap: 18px;
        padding: 0 !important;
        box-shadow: none !important;
        top: auto !important;
        background: none !important;
    }

    nav a {
        font-size: 0.85rem;
    }

    .menu-toggle {
        display: none;
    }

    .container {
        padding: 0 30px;
    }

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

    .hero {
        height: 45vh;
        min-height: 320px;
    }

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

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

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .service-card {
        padding: 25px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .member-image {
        width: 160px;
        height: 160px;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        gap: 40px;
    }

    .footer-links ul {
        flex-direction: row;
        gap: 30px;
    }

    .footer-social {
        justify-content: flex-start;
    }
}

/* ===== DESKTOP (992px+) ===== */

@media (min-width: 992px) {
    body {
        padding-top: 100px;
    }

    header {
        padding: 5px 0;
    }

    .logo img {
        height: 115px;
    }

    .logo-text h1 {
        font-size: 1.3rem;
    }

    .tagline {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    nav ul {
        gap: 25px;
    }

    nav a {
        font-size: 0.9rem;
    }

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

    .hero {
        height: 50vh;
        min-height: 380px;
    }

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

    .hero p {
        font-size: 1.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .service-card {
        padding: 30px;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .member-image {
        width: 200px;
        height: 200px;
    }

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