/* 
   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;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    margin-left: 4px;
}

.header-language {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(11, 59, 91, 0.18);
    border-radius: 999px;
    background: #f7fafb;
    color: #0b3b5b;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
}

.header-language:hover {
    background: #0b3b5b;
    border-color: #0b3b5b;
    color: white;
}

nav .language-link {
    display: none;
}

/* ===== 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;
}

.info-item p span {
    color: #667085;
    font-size: 0.84rem;
}

.whatsapp-info {
    align-items: flex-start;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid rgba(18, 140, 126, 0.24);
    border-radius: 8px;
    background: #f0faf7;
}

.whatsapp-info i {
    color: #128c7e;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    color: #0f7a6e;
    font-weight: 600;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    color: var(--blue);
    font-weight: 600;
}

.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;
    }
}

/* ===== HOME PREMIUM OVERRIDES ===== */

:root {
    --ink: #12212b;
    --muted: #66717a;
    --blue: #0b3b5b;
    --blue-deep: #071f31;
    --gold: #c19434;
    --gold-soft: #efe3c6;
    --paper: #fbfaf7;
    --line: rgba(18, 33, 43, 0.12);
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    background: var(--paper);
}

h1,
h2,
h3,
.section-title,
.footer-logo {
    font-family: 'Playfair Display', serif;
}

.btn {
    border-radius: 999px;
    padding: 13px 24px;
    background: var(--blue);
    box-shadow: 0 14px 28px rgba(11, 59, 91, 0.18);
}

.btn:hover {
    background: var(--gold);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

.btn-secondary:hover {
    background: white;
    color: var(--blue) !important;
}

.btn-whatsapp {
    background: #128c7e;
    box-shadow: 0 14px 28px rgba(18, 140, 126, 0.2);
}

.btn-whatsapp:hover {
    background: #0f7a6e;
}

.eyebrow {
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading .section-title {
    margin-bottom: 12px;
}

.section-heading p:not(.eyebrow) {
    color: var(--muted);
    font-size: 0.98rem;
}

.section-title {
    color: var(--blue-deep);
}

.section-title::after {
    background: var(--gold);
}

#accueil.hero {
    display: block;
    position: relative;
    width: 100%;
    min-height: 640px;
    height: auto;
    overflow: hidden;
    color: white;
    background: var(--blue-deep);
    isolation: isolate;
}

#accueil .hero-media,
#accueil .hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#accueil .hero-media {
    max-width: none;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}

#accueil .hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 20, 32, 0.88) 0%, rgba(7, 31, 49, 0.68) 48%, rgba(7, 31, 49, 0.26) 100%),
        linear-gradient(0deg, rgba(7, 31, 49, 0.52), rgba(7, 31, 49, 0.08));
    z-index: -1;
}

#accueil .hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100vw - 64px));
    max-width: none;
    min-height: 640px;
    margin: 0 auto;
    padding: 82px 0 56px;
    display: grid;
    grid-template-columns: minmax(0, 720px) minmax(260px, 340px);
    justify-content: space-between;
    align-items: end;
    gap: 48px;
}

#accueil .hero-copy {
    width: 100%;
    max-width: 720px;
    min-width: 0;
    text-align: left;
}

#accueil h2 {
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1.04;
    margin: 12px 0 18px;
    font-weight: 700;
}

#accueil p {
    font-size: 1rem;
    max-width: 650px;
    margin-bottom: 0;
    opacity: 0.94;
    overflow-wrap: break-word;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
}

.hero-panel div {
    background: rgba(7, 31, 49, 0.5);
    padding: 18px;
}

.hero-panel span {
    display: block;
    color: var(--gold-soft);
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-panel strong {
    display: block;
    color: white;
    font-size: 1rem;
    margin-bottom: 4px;
}

.hero-panel p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
}

.trust-strip {
    background: var(--blue-deep);
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    overflow: visible;
}

.trust-grid {
    width: min(1180px, calc(100vw - 64px));
    max-width: none;
    min-height: 128px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0;
}

.trust-grid div {
    display: flex;
    min-height: 128px;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-grid div:last-child {
    border-right: 0;
}

.trust-grid strong,
.trust-grid span {
    display: block;
}

.trust-grid strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.12rem;
    margin-bottom: 6px;
}

.trust-grid span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    line-height: 1.4;
}

#services,
#contact {
    background: var(--paper);
    padding: 64px 0;
}

.services-grid {
    gap: 18px;
}

#services .services-grid {
    grid-template-columns: 1fr;
}

.service-card {
    display: flex;
    min-height: 310px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: white;
    border: 1px solid var(--line);
    border-top: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 0 28px;
    box-shadow: 0 22px 46px rgba(18, 33, 43, 0.08);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(18, 33, 43, 0.12);
}

.service-card .icon {
    width: 48px;
    height: 48px;
    margin: 22px 0 20px 28px;
    border-radius: 8px;
    background: var(--blue-deep);
    box-shadow: 0 12px 24px rgba(18, 33, 43, 0.14);
}

.service-card h3 {
    color: var(--blue-deep);
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    padding: 0 28px;
}

.service-card p {
    color: var(--muted);
    padding: 0 28px;
}

.service-card a {
    margin-top: auto;
    padding: 22px 28px 0;
    color: var(--blue);
    font-weight: 700;
    font-size: 0.86rem;
}

.service-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef2f4;
}

.service-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.service-card:hover .service-media img {
    transform: scale(1.05);
}

.approach-section {
    background: white;
    padding: 70px 0;
}

.approach-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 58px;
    align-items: center;
}

.approach-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    min-height: 340px;
    background: #f1f5f6;
    border: 1px solid var(--line);
    padding: 28px;
}

.approach-image img {
    width: min(100%, 260px);
    height: 260px;
    min-height: 0;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 6px solid white;
    box-shadow: 0 18px 38px rgba(18, 33, 43, 0.12);
}

.approach-content h2 {
    color: var(--blue-deep);
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.05;
    margin: 10px 0 18px;
}

.approach-content > p:not(.eyebrow) {
    color: var(--muted);
    max-width: 620px;
}

.approach-list {
    display: grid;
    gap: 12px;
    margin: 26px 0;
}

.approach-list div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}

.approach-list i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--blue);
    font-size: 0.78rem;
}

.text-link {
    color: var(--blue);
    font-weight: 700;
    border-bottom: 1px solid currentColor;
}

#equipe {
    background: #f1f5f6;
    padding: 64px 0;
}

.team-grid {
    max-width: 620px;
    margin: 0 auto;
}

.team-member {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 34px;
    box-shadow: 0 24px 52px rgba(18, 33, 43, 0.08);
}

.member-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid white;
}

.team-member h3 {
    font-size: 1.55rem;
    color: var(--blue-deep);
}

.member-title,
.member-bio {
    font-family: 'Montserrat', sans-serif;
}

.contact-grid {
    align-items: start;
}

.contact-info,
.contact-form {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px;
    box-shadow: 0 20px 44px rgba(18, 33, 43, 0.06);
}

.form-group input,
.form-group textarea,
.form-group select {
    border-color: var(--line);
    background: #fbfbfa;
}

.home-news-section {
    background: #edf3f4;
    padding: 70px 0;
}

.home-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: stretch;
}

.home-news-carousel,
.home-newsletter {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 22px 46px rgba(18, 33, 43, 0.08);
}

.home-news-carousel {
    position: relative;
    min-height: 360px;
    overflow: hidden;
}

.news-track {
    height: 100%;
}

.news-slide {
    display: none;
    min-height: 360px;
    padding: 48px 72px;
    flex-direction: column;
    justify-content: center;
}

.news-slide.active {
    display: flex;
}

.news-slide span {
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.news-slide h3,
.home-newsletter h3 {
    color: var(--blue-deep);
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 14px;
}

.news-slide p,
.home-newsletter p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.news-slide a {
    margin-top: 22px;
    color: var(--blue);
    font-weight: 700;
}

.news-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: white;
    color: var(--blue);
    cursor: pointer;
    transform: translateY(-50%);
}

.news-prev {
    left: 20px;
}

.news-next {
    right: 20px;
}

.news-dots {
    position: absolute;
    left: 72px;
    bottom: 28px;
    display: flex;
    gap: 8px;
}

.news-dots button {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 50%;
    background: rgba(11, 59, 91, 0.25);
    cursor: pointer;
}

.news-dots button.active {
    background: var(--blue);
}

.home-newsletter {
    padding: 36px;
}

.home-newsletter-form {
    display: grid;
    gap: 10px;
    margin: 22px 0 16px;
}

.home-newsletter-form input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.home-newsletter-form input:focus {
    outline: none;
    border-color: var(--gold);
}

.home-newsletter-form button {
    padding: 13px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--blue);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.newsletter-feedback {
    display: none;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.newsletter-feedback.success {
    background: #d1fae5;
    color: #065f46;
}

.newsletter-feedback.error {
    background: #fee2e2;
    color: #991b1b;
}

@media (min-width: 768px) {
    #services .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    #accueil.hero,
    #accueil .hero-inner {
        min-height: 620px;
    }

    #accueil .hero-inner {
        width: min(100% - 36px, 720px);
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 60px 0 42px;
    }

    .trust-grid {
        width: min(100% - 36px, 720px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .home-news-layout {
        grid-template-columns: 1fr;
    }

    .news-slide {
        padding: 44px 58px;
    }

    .news-dots {
        left: 58px;
    }
}

@media (max-width: 540px) {
    #accueil.hero,
    #accueil .hero-inner {
        min-height: 680px;
    }

    #accueil .hero-inner {
        width: min(100% - 28px, 420px);
        padding-top: 46px;
    }

    #accueil h2 {
        font-size: 2rem;
        line-height: 1.08;
    }

    #accueil p {
        font-size: 0.95rem;
    }

    .eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .trust-grid {
        width: min(100% - 28px, 420px);
        grid-template-columns: 1fr;
    }

    .trust-grid div {
        padding: 16px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .team-member,
    .contact-info,
    .contact-form {
        padding: 22px;
    }

    .news-slide {
        min-height: 390px;
        padding: 42px 22px 62px;
    }

    .news-nav {
        top: auto;
        bottom: 18px;
        transform: none;
    }

    .news-prev {
        left: 22px;
    }

    .news-next {
        right: 22px;
    }

    .news-dots {
        left: 50%;
        bottom: 32px;
        transform: translateX(-50%);
    }

    .home-newsletter {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 74px;
    }

    header {
        padding: 4px 0;
    }

    header .container {
        min-height: 66px;
        gap: 8px;
        padding: 0 12px;
    }

    .logo img {
        height: 58px;
    }

    .logo-text {
        min-width: 0;
        margin: 0;
        text-align: left;
    }

    .logo-text h1 {
        font-size: 0.78rem;
        line-height: 1.12;
        letter-spacing: 0;
    }

    .menu-toggle {
        display: inline-flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        color: var(--blue-deep);
        background: #f4f7f8;
    }

    nav ul.active {
        top: 74px;
        gap: 0;
        padding: 8px 16px 16px;
        border-top: 1px solid var(--line);
        box-shadow: 0 18px 42px rgba(18, 33, 43, 0.14);
    }

    nav ul.active li {
        border-bottom: 1px solid var(--line);
    }

    nav ul.active li:last-child {
        border-bottom: 0;
    }

    nav ul.active a {
        padding: 13px 2px;
        font-size: 0.95rem;
    }

    #accueil.hero,
    #accueil .hero-inner {
        min-height: auto;
    }

    #accueil.hero {
        align-items: stretch;
    }

    #accueil .hero-inner {
        width: min(100% - 28px, 430px);
        gap: 22px;
        padding: 34px 0 28px;
    }

    #accueil h2 {
        font-size: clamp(1.75rem, 8vw, 2.2rem);
        line-height: 1.08;
    }

    #accueil p {
        font-size: 0.93rem;
        line-height: 1.65;
    }

    .hero-actions {
        gap: 10px;
        margin-top: 22px;
    }

    .hero-actions .btn {
        width: 100%;
        padding: 12px 16px;
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }

    .hero-panel div {
        min-height: 0;
        padding: 14px 16px;
    }

    .hero-panel span {
        font-size: 0.7rem;
    }

    .hero-panel strong {
        font-size: 0.98rem;
    }

    .trust-grid {
        width: min(100% - 28px, 430px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-grid div {
        min-height: 104px;
        padding: 14px;
        border-right: 1px solid rgba(255, 255, 255, 0.12);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .trust-grid div:nth-child(2n) {
        border-right: 0;
    }

    .trust-grid strong {
        font-size: 1rem;
    }

    #services,
    #contact,
    .approach-section,
    .home-news-section {
        padding: 46px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }

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

    #services .services-grid {
        gap: 20px;
    }

    .service-card {
        min-height: auto;
    }

    .service-card .icon {
        width: 44px;
        height: 44px;
        margin: 18px 0 16px 22px;
    }

    .service-card h3,
    .service-card p {
        padding: 0 22px;
    }

    .service-card a {
        padding: 18px 22px 0;
    }

    .approach-grid {
        gap: 28px;
    }

    .approach-image {
        max-height: 360px;
    }

    .approach-content h2 {
        font-size: 1.8rem;
        line-height: 1.15;
    }

    .contact-grid {
        gap: 18px;
    }

    .contact-info,
    .contact-form {
        padding: 20px;
    }

    .contact-info .info-item {
        gap: 12px;
    }

    .whatsapp-info {
        margin: 14px 0;
        padding: 14px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 13px 14px;
    }

    footer {
        padding-top: 26px;
    }

    .footer-content {
        gap: 18px;
    }

    .footer-links ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 18px;
        text-align: left;
    }
}

@media (max-width: 380px) {
    .logo-text h1 {
        font-size: 0.72rem;
    }

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

    .trust-grid div {
        min-height: 82px;
        border-right: 0;
    }
}

/* ===== ENGLISH SECTION ===== */

.language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--blue-deep);
    font-weight: 700;
}

.en-hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    display: flex;
    align-items: center;
    background: #071f31;
    color: white;
}

.en-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
}

.en-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 31, 49, 0.92), rgba(7, 31, 49, 0.68), rgba(7, 31, 49, 0.2));
}

.en-hero-inner {
    position: relative;
    z-index: 1;
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    gap: 44px;
    align-items: center;
}

.en-hero h1,
.en-page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.02;
    margin: 10px 0 18px;
}

.en-hero-copy > p:not(.eyebrow),
.en-page-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.75;
}

.en-hero-card,
.en-visit-card,
.en-contact-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 26px;
}

.en-hero-card h2,
.en-visit-card h3,
.en-contact-card h3 {
    color: white;
    font-family: 'Playfair Display', serif;
    margin-bottom: 12px;
}

.en-hero-card ul,
.en-visit-card ul {
    display: grid;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.78);
}

.en-hero-card li,
.en-visit-card li {
    display: flex;
    gap: 10px;
}

.en-hero-card i,
.en-visit-card i {
    color: var(--gold);
    margin-top: 4px;
}

.en-hero-card-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.en-hero-card-actions .btn {
    width: 100%;
    text-align: center;
    box-shadow: none;
}

.en-strip {
    background: var(--blue-deep);
    color: white;
}

.en-strip-grid {
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.en-strip-grid div {
    min-height: 122px;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.en-strip-grid strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.08rem;
    margin-bottom: 6px;
}

.en-strip-grid span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.84rem;
    line-height: 1.45;
}

.en-section {
    padding: 72px 0;
    background: var(--paper);
}

.en-section.white {
    background: white;
}

.en-section-grid {
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
}

.en-two-col {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: center;
}

.en-kicker {
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.en-section h2 {
    color: var(--blue-deep);
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    margin: 10px 0 16px;
}

.en-section p {
    color: var(--muted);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
}

.en-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.en-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 22px 46px rgba(18, 33, 43, 0.08);
}

.en-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.en-card-body {
    padding: 24px;
}

.en-card h3 {
    color: var(--blue-deep);
    font-family: 'Playfair Display', serif;
    font-size: 1.38rem;
    margin-bottom: 10px;
}

.en-card a {
    display: inline-flex;
    margin-top: 16px;
    color: var(--blue);
    font-weight: 800;
}

.en-visit {
    background: #071f31;
    color: white;
}

.en-visit .en-section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 42px;
    align-items: center;
}

.en-visit h2,
.en-visit p {
    color: white;
}

.en-visit p {
    color: rgba(255, 255, 255, 0.78);
}

.en-process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.en-step {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.en-step span {
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

.en-step strong {
    display: block;
    margin: 8px 0;
    color: var(--blue-deep);
}

.en-page-hero {
    padding: 76px 0 60px;
    background: #071f31;
    color: white;
}

.en-page-hero .container {
    max-width: 1040px;
}

.en-price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.en-consultation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 24px 52px rgba(18, 33, 43, 0.1);
}

.en-consultation h2 {
    margin: 0 0 8px;
}

.en-consultation-price {
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.2rem, 6vw, 3rem);
    font-weight: 800;
    line-height: 1;
}

.en-price-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 26px;
    box-shadow: 0 18px 42px rgba(18, 33, 43, 0.06);
}

.en-price-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.en-price-row:last-child {
    border-bottom: 0;
}

.en-price-row strong {
    color: var(--blue-deep);
}

.en-price-row span {
    color: var(--gold);
    font-weight: 800;
    white-space: nowrap;
}

.en-cta-panel {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.en-articles-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.en-articles-heading h2 {
    margin: 0;
    color: var(--blue-deep);
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.en-articles-heading p {
    max-width: 420px;
    margin: 0;
}

.en-article-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 18px 42px rgba(18, 33, 43, 0.06);
}

.en-article-thumb {
    position: relative;
    flex: 0 0 220px;
    height: 160px;
    overflow: hidden;
    border-radius: 8px;
    background: #eef2f4;
}

.en-article-thumb::after {
    content: "Study";
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(7, 31, 49, 0.86);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
}

.en-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.en-article-content h3 {
    color: var(--blue-deep);
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    line-height: 1.14;
    margin-bottom: 10px;
}

.en-article-date {
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.en-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
}

.en-contact-card {
    background: var(--blue-deep);
}

.en-contact-card p,
.en-contact-card a {
    color: rgba(255, 255, 255, 0.82);
}

.en-form-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 26px;
}

@media (max-width: 900px) {
    .en-hero-inner,
    .en-two-col,
    .en-visit .en-section-grid,
    .en-contact-layout {
        grid-template-columns: 1fr;
    }

    .en-strip-grid,
    .en-process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .en-cards,
    .en-price-grid,
    .en-consultation {
        grid-template-columns: 1fr;
    }

    .en-article-card {
        flex-direction: column;
    }

    .en-article-thumb {
        width: 100%;
        flex-basis: auto;
    }
}

@media (max-width: 560px) {
    .en-hero {
        min-height: auto;
        padding: 44px 0;
    }

    .en-hero-inner,
    .en-section-grid,
    .en-strip-grid {
        width: min(100% - 28px, 430px);
    }

    .en-strip-grid,
    .en-process {
        grid-template-columns: 1fr;
    }

    .en-hero h1,
    .en-page-hero h1 {
        font-size: 2.35rem;
    }

    .en-section,
    .en-page-hero {
        padding: 48px 0;
    }

    .en-hero-card,
    .en-visit-card,
    .en-contact-card,
    .en-consultation,
    .en-form-card,
    .en-price-card {
        padding: 22px;
    }

    .en-cta-panel .btn {
        width: 100%;
        text-align: center;
    }

    .en-articles-heading {
        display: block;
    }

    .en-articles-heading p {
        margin-top: 8px;
    }
}

/* ===== LANGUAGE SWITCH PLACEMENT ===== */

@media (max-width: 1099px) {
    nav ul {
        display: none !important;
    }

    nav ul.active {
        display: flex !important;
    }

    .menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .header-actions {
        display: inline-flex !important;
    }

    .header-language {
        display: inline-flex !important;
    }
}

@media (min-width: 1100px) {
    nav {
        margin-left: auto;
    }

    nav ul {
        display: flex !important;
        gap: clamp(12px, 1.45vw, 20px);
    }

    .menu-toggle {
        display: none !important;
    }

    .header-language {
        height: 34px;
        min-width: 44px;
        padding: 0 12px;
    }
}

@media (max-width: 640px) {
    .header-actions {
        gap: 6px;
    }

    .header-language {
        width: 40px;
        min-width: 40px;
        height: 36px;
        padding: 0;
        font-size: 0.68rem;
    }

    nav ul.active {
        top: 74px;
    }
}

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

.site-footer {
    position: relative;
    overflow: hidden;
    background: #071f31;
    color: white;
    padding: 52px 0 24px;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(193, 148, 52, 0.85), transparent);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr) minmax(250px, 1fr);
    gap: 38px;
    align-items: start;
}

.footer-brand,
.footer-links,
.footer-contact {
    min-width: 0;
}

.footer-logo {
    color: white;
    font-size: 1.22rem;
    line-height: 1.1;
    margin-bottom: 12px;
}

.footer-brand p,
.footer-contact li,
.footer-bottom,
.footer-bottom a {
    font-family: 'Montserrat', sans-serif;
}

.footer-brand p {
    max-width: 360px;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.65;
}

.footer-qualif {
    display: inline-flex;
    padding: 7px 11px;
    border: 1px solid rgba(193, 148, 52, 0.34);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 0.78rem !important;
    font-weight: 700;
}

.footer-title {
    margin: 0 0 13px;
    color: #c19434;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.footer-links ul,
.footer-contact ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.78);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-legal-links a:hover {
    color: #c19434;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.45;
}

.footer-contact i {
    flex: 0 0 18px;
    margin-top: 3px;
    color: #c19434;
    text-align: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
}

.copyright {
    max-width: 560px;
    margin: 0;
    padding: 0;
    border: 0;
    text-align: right;
    opacity: 1;
}

.copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    line-height: 1.55;
}

.footer-disclaimer {
    margin-top: 4px !important;
    color: rgba(255, 255, 255, 0.58) !important;
}

@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .copyright {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .site-footer {
        padding: 40px 0 22px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-links ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 18px;
    }

    .footer-bottom {
        margin-top: 28px;
    }
}

/* Footer compact override */
.site-footer {
    padding: 28px 0 18px;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 34px;
}

.footer-brand {
    flex: 0 1 360px;
}

.footer-brand p {
    margin-bottom: 0;
}

.footer-links {
    flex: 1 1 auto;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px 18px;
}

.footer-links li {
    line-height: 1.2;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 18px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info a,
.footer-info span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.78);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    line-height: 1.2;
}

.footer-info i {
    color: #c19434;
}

.footer-info a:hover {
    color: white;
    border-color: rgba(193, 148, 52, 0.45);
}

.footer-bottom {
    margin-top: 14px;
    padding-top: 0;
    border-top: 0;
    align-items: center;
}

.footer-legal-links {
    gap: 12px;
}

.footer-legal-links a,
.copyright p {
    font-size: 0.72rem;
}

.footer-disclaimer {
    max-width: 620px;
}

/* Legacy footer safety, in case the older partial is still cached/uploaded */
footer:not(.site-footer) {
    background: #0b3b5b;
    color: white;
    padding: 24px 0 18px;
}

footer:not(.site-footer) .footer-content {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 0;
}

footer:not(.site-footer) .footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 520px;
    gap: 9px 18px;
}

footer:not(.site-footer) .footer-logo {
    color: white;
    font-size: 1.08rem;
    line-height: 1.12;
    opacity: 1;
}

footer:not(.site-footer) .footer-links a {
    color: rgba(255, 255, 255, 0.82);
}

footer:not(.site-footer) .footer-links a:hover {
    color: #c19434;
}

footer:not(.site-footer) .footer-qualif {
    color: white !important;
    border-color: rgba(193, 148, 52, 0.45);
}

footer:not(.site-footer) .copyright {
    max-width: 460px;
    padding-top: 0;
    border-top: 0;
    text-align: right;
}

footer:not(.site-footer) .copyright p,
footer:not(.site-footer) .footer-disclaimer {
    color: rgba(255, 255, 255, 0.72) !important;
}

@media (max-width: 900px) {
    .footer-top,
    footer:not(.site-footer) .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links ul,
    footer:not(.site-footer) .footer-links ul {
        justify-content: flex-start;
    }

    footer:not(.site-footer) .copyright {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .site-footer {
        padding: 30px 0 18px;
    }

    .footer-links ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .footer-info {
        display: grid;
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        align-items: flex-start;
    }
}

/* Footer light refinement */
.site-footer {
    background: #fbfaf7;
    color: var(--ink);
    padding: 26px 0 18px;
    border-top: 1px solid rgba(18, 33, 43, 0.1);
}

.site-footer::before {
    display: none;
}

.site-footer .container {
    max-width: 1140px;
}

.footer-top {
    align-items: center;
    gap: 28px;
}

.site-footer .footer-logo {
    color: #071f31;
    font-size: 1rem;
    line-height: 1.15;
    margin-bottom: 5px;
    max-width: 260px;
}

.site-footer .footer-brand p {
    max-width: 320px;
    color: #66717a;
    font-size: 0.78rem;
    line-height: 1.45;
}

.site-footer .footer-links ul {
    gap: 8px 16px;
}

.site-footer .footer-links a {
    color: #4f5d66;
    font-size: 0.82rem;
}

.site-footer .footer-links a:hover,
.site-footer .footer-info a:hover,
.site-footer .footer-legal-links a:hover {
    color: #0b3b5b;
}

.footer-info {
    margin-top: 16px;
    padding: 12px 0;
    border-top: 1px solid rgba(18, 33, 43, 0.08);
    border-bottom: 1px solid rgba(18, 33, 43, 0.08);
}

.footer-info a,
.footer-info span {
    min-height: 30px;
    border-color: rgba(18, 33, 43, 0.1);
    background: white;
    color: #4f5d66;
    font-size: 0.75rem;
}

.footer-info a:hover {
    border-color: rgba(11, 59, 91, 0.24);
    background: #f4f7f8;
}

.footer-info i {
    color: #0b3b5b;
}

.footer-bottom {
    margin-top: 12px;
}

.site-footer .footer-legal-links a,
.site-footer .copyright p {
    color: #66717a;
    font-size: 0.7rem;
}

.site-footer .copyright {
    max-width: 650px;
}

.site-footer .footer-disclaimer {
    color: #7c8790 !important;
}

@media (max-width: 900px) {
    .footer-top {
        align-items: flex-start;
    }

    .site-footer .footer-logo {
        max-width: none;
    }
}

/* ===== BIOSTIMULATION PAGE ===== */

.premium-treatment-section {
    padding: 0 0 72px;
    background: var(--paper);
}

.premium-treatment-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.9fr) auto;
    gap: 28px;
    align-items: center;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 20px 48px rgba(18, 33, 43, 0.08);
}

.premium-treatment-copy h2 {
    color: var(--blue-deep);
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.08;
    margin: 8px 0 12px;
}

.premium-treatment-copy p:not(.eyebrow),
.premium-treatment-points span {
    color: var(--muted);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

.premium-treatment-points {
    display: grid;
    gap: 10px;
}

.premium-treatment-points div {
    padding: 12px 14px;
    border: 1px solid rgba(18, 33, 43, 0.09);
    border-radius: 8px;
    background: #fbfaf7;
}

.premium-treatment-points strong {
    display: block;
    color: var(--blue-deep);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.premium-treatment-actions {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.bio-hero {
    background: #071f31;
    color: white;
    padding: 86px 0 70px;
}

.bio-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.45fr);
    gap: 48px;
    align-items: center;
}

.bio-hero h1 {
    max-width: 780px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.35rem, 5vw, 4.4rem);
    line-height: 1.04;
    margin: 10px 0 18px;
}

.bio-hero p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.75;
}

.bio-hero-card {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.bio-hero-card span {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bio-hero-card strong {
    display: block;
    margin: 10px 0;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
}

.bio-section {
    padding: 72px 0;
    background: var(--paper);
}

.bio-section.white {
    background: white;
}

.bio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 42px;
    align-items: start;
}

.bio-copy h2,
.bio-process h2,
.bio-cta h2 {
    color: var(--blue-deep);
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    margin: 10px 0 16px;
}

.bio-copy p,
.bio-panel li,
.bio-cards p,
.bio-steps p,
.bio-cta p {
    color: var(--muted);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.72;
}

.bio-panel,
.bio-cards article,
.bio-steps div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 18px 42px rgba(18, 33, 43, 0.06);
}

.bio-panel {
    padding: 26px;
}

.bio-panel h3,
.bio-cards h3,
.bio-steps strong {
    color: var(--blue-deep);
}

.bio-panel ul {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.bio-panel li {
    display: flex;
    gap: 11px;
}

.bio-panel i,
.bio-cards i {
    color: var(--gold);
}

.bio-cards,
.bio-study-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.bio-cards article,
.bio-study-grid article {
    padding: 24px;
}

.bio-study-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 18px 42px rgba(18, 33, 43, 0.06);
}

.bio-study-grid span {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bio-study-grid h3 {
    color: var(--blue-deep);
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    line-height: 1.15;
    margin-bottom: 10px;
}

.bio-study-grid p {
    color: var(--muted);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.65;
}

.bio-study-grid a {
    display: inline-flex;
    margin-top: 14px;
    color: var(--blue);
    font-weight: 800;
}

.bio-cards i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(193, 148, 52, 0.13);
    margin-bottom: 16px;
}

.bio-process {
    display: grid;
    grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

.bio-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.bio-steps div {
    padding: 22px;
}

.bio-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--blue);
    color: white;
    font-weight: 800;
    margin-bottom: 14px;
}

.bio-steps strong {
    display: block;
    margin-bottom: 6px;
}

.bio-cta {
    padding: 58px 0;
    background: #071f31;
    color: white;
    text-align: center;
}

.bio-cta h2 {
    color: white;
    margin-left: auto;
    margin-right: auto;
}

.bio-cta p {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.76);
}

.bio-cta .hero-actions {
    justify-content: center;
}

@media (max-width: 900px) {
    .premium-treatment-card,
    .bio-hero-grid,
    .bio-grid,
    .bio-process {
        grid-template-columns: 1fr;
    }

    .bio-cards,
    .bio-study-grid,
    .bio-steps {
        grid-template-columns: 1fr;
    }

    .premium-treatment-actions {
        justify-items: stretch;
    }

    .premium-treatment-actions .btn {
        text-align: center;
    }
}

@media (max-width: 560px) {
    .premium-treatment-section {
        padding-bottom: 48px;
    }

    .premium-treatment-card,
    .bio-panel,
    .bio-cards article,
    .bio-steps div {
        padding: 22px;
    }

    .bio-hero,
    .bio-section {
        padding: 48px 0;
    }
}
