/* ==========================================================================
   VARIABLES
   ========================================================================== */
:root {
    --max-width: 1600px;
    --accent: #ff8c7a;
    --accent-hover: #e57b6a;
    --whatsapp-green: #25D366;
    --facebook-blue: #1877F2;
    --instagram-pink: #E1306C;
    --bg-soft: #fdf8f7;
    --text-dark: #333;
    --text-light: #666;
    --header-height: 110px;
    --turquoise-pull: #e6f4f1;
    --blue-icon-bg: #c7e8e3;
}

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

/* ==========================================================================
   GLOBAL
   ========================================================================== */
body {
    font-family: 'Poppins', sans-serif;
    background: #f0f2f5;
    color: var(--text-dark);
    padding-top: var(--header-height);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: #2c3e50;
    font-weight: 600;
}

.site-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 40px rgba(0,0,0,0.05);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ==========================================================================
   TITRES CLIQUABLES DANS LES CARTES
   ========================================================================== */
.card h3 a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s ease;
    display: inline-block;
}

.card h3 a:hover {
    color: var(--accent);
}

.card h3 a:hover::after {
    content: " →";
    font-size: 16px;
    vertical-align: middle;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.fixed-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    height: var(--header-height);
    z-index: 1000;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px 0 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.fixed-header.scrolled {
    background: linear-gradient(to right, #ffffff 0%, #d5ece8 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.logo img {
    height: 100px;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    position: relative;
    padding: 0 15px;
}

.nav-item a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.nav-item i.menu-icon {
    color: var(--accent);
}

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

.nav-item.active > a {
    position: relative;
}

.nav-item.active > a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    list-style: none;
    padding: 15px 0;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(255, 140, 122, 0.12);
    border: 1px solid #f9ecea;
}

.dropdown-menu li a {
    color: var(--text-light);
    padding: 10px 25px;
    font-size: 13px;
    border-left: 3px solid transparent;
    font-weight: 500;
    display: block;
}

.dropdown-menu li a:hover,
.dropdown-menu li.active-link a {
    background: var(--bg-soft);
    color: var(--accent) !important;
    border-left: 3px solid var(--accent);
    padding-left: 30px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-right: 15px;
    align-items: center;
}

.social-icons a {
    color: #bbb;
    font-size: 24px;
    transition: 0.3s;
    text-decoration: none;
}

.social-icons a.fb-icon:hover { color: var(--facebook-blue); }
.social-icons a.insta-icon:hover { color: var(--instagram-pink); }
.social-icons a.wa-icon:hover { color: var(--whatsapp-green); }

.btn-cta {
    background: var(--accent);
    color: white !important;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 122, 0.3);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    height: 450px;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--turquoise-pull);
    overflow: hidden;
}

.hero-img-box {
    position: absolute;
    left: 0;
    top: 0;
    width: 40%;
    height: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
}

.hero img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: 50% 30%;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-left: 45%;
    max-width: 600px;
}

.hero h1 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero h1 span { color: var(--accent); }

.hero p {
    font-size: 18px;
    color: #5d6d7e;
    margin-bottom: 25px;
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.cards-section {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: -70px;
    padding: 0 40px 60px;
    position: relative;
    z-index: 10;
}

.card {
    background: white;
    flex: 1;
    max-width: 320px;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    text-align: center;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.card p {
    font-size: 14px;
    color: var(--text-light);
}

.icon-circle {
    width: 100px;
    height: 105px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle img {
    width: 100%;
    height: auto;
}

.icon-circle.blue { background: var(--blue-icon-bg); }
.icon-circle.pink { background: #fde9e7; }
.icon-circle.beige { background: #f3efe9; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-section {
    padding: 80px 60px;
    background: white;
    display: flex;
    justify-content: center;
}

.about-content {
    max-width: 900px;
    text-align: left;
}

.about-content h2 {
    font-size: 28px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.about-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}

/* ==========================================================================
   EXPERTISE
   ========================================================================== */
.expertise-header {
    background: linear-gradient(to right, #ffffff 0%, var(--turquoise-pull) 100%);
    padding: 60px 80px;
    display: flex;
    align-items: center;
    gap: 40px;
    border-bottom: 1px solid #f0f7f6;
}

.icon-box-large {
    background: var(--blue-icon-bg);
    width: 120px;
    height: 120px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.icon-box-large img {
    width: 65%;
    height: auto;
}

.expertise-intro h1 {
    font-size: 32px;
    color: #2c3e50;
    line-height: 1.3;
}

/* ==========================================================================
   CONTENT BODY
   ========================================================================== */
.content-body {
    padding: 60px 80px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.text-main {
    flex: 1;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    min-width: 0; /* empêche le débordement flex */
}

.text-main p {
    margin-bottom: 20px;
    text-align: justify;
}

.text-main h3 {
    color: #2c3e50;
    margin: 35px 0 15px;
    font-size: 19px;
}

.feature-list {
    list-style: none;
    margin-bottom: 30px;
}

.feature-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.feature-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar-info {
    background: var(--bg-soft);
    padding: 35px;
    border-radius: 25px;
    height: fit-content;
    position: sticky;
    top: 140px;
    width: 350px;
    min-width: 320px;
    flex-shrink: 0;
}

.sidebar-info h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.sidebar-info .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.sidebar-info .card-header i {
    color: var(--accent);
    font-size: 18px;
}

.sidebar-info .card-header strong {
    font-size: 14.5px;
    color: var(--text-dark);
}

.sidebar-info .info-card p {
    font-size: 13px;
    margin-left: 28px;
    color: var(--text-light);
}

.cabinet-list {
    list-style: none;
    margin-left: 28px;
    padding: 0;
}

.cabinet-list li {
    font-size: 13px;
    color: var(--text-light);
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
}

.cabinet-list li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.contact-box {
    margin-top: 50px;
    padding: 30px;
    background-color: var(--bg-soft);
    border-left: 5px solid var(--accent);
    border-radius: 8px;
}

.contact-box p {
    margin-bottom: 0 !important;
    font-size: 15px;
    color: var(--text-dark);
}

.contact-box strong { color: var(--accent); }

/* ==========================================================================
   PAGE TARIFS
   ========================================================================== */
.intro-tarifs {
    margin-bottom: 40px;
    border-left: 4px solid var(--accent);
    padding-left: 20px;
}

.tarifs-section {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 50px;
    overflow: hidden;
    border: 1px solid #eee;
}

.tarifs-section.highlight { border: 1px solid var(--accent); }

.tarifs-header-box {
    background: #fafafa;
    padding: 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tarifs-header-box h3 { margin: 0; color: var(--text-dark); font-size: 1.3rem; }
.tarifs-header-box span { font-size: 0.85rem; color: #888; }

.table-intro { padding: 15px 25px 0; font-style: italic; font-size: 0.9rem; color: #666; }

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.tarifs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.tarifs-table th,
.tarifs-table td {
    padding: 15px 25px;
    text-align: left;
    border-bottom: 1px solid #f2f2f2;
}

.tarifs-table th { background: #fdfdfd; font-weight: 700; color: #444; }
.tarifs-table .sub-head th { padding-top: 0; font-size: 0.8rem; color: #999; text-transform: uppercase; }

.category-row td {
    background: #fcfcfc;
    font-weight: 700;
    color: var(--accent);
    padding: 12px 25px;
    font-style: italic;
}

.tarifs-table td:nth-child(even) { color: #777; }
.tarifs-table td:nth-child(odd):not(:first-child) { font-weight: 700; color: var(--text-dark); }

.center { text-align: center !important; }

.info-box-tarifs {
    padding: 20px 25px;
    background: #fffaf9;
    border-top: 1px solid #fef0ee;
    font-size: 0.9rem;
}

.spacer-lg { border: 0; height: 1px; background: #eee; margin: 60px 0; }

/* Cartes de contact */
.contact-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.card-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.location-box {
    background: #fdfdfd;
    border-radius: 12px;
    padding: 20px;
    border-bottom: 3px solid var(--accent);
}

.hours-badge {
    background: #fff0ee;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85em;
    margin: 10px 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #fdfdfd;
    padding: 70px 60px 30px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-img-container {
    width: 130px;
    height: 180px;
    margin-bottom: 15px;
    border-radius: 70px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 5px solid rgba(255, 255, 255, 0.3);
    margin-left: auto;
    margin-right: auto;
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.footer-left .footer-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

.footer-left .footer-text p strong {
    font-size: 16px;
    color: var(--text-dark);
    display: block;
    margin-bottom: 5px;
}

.footer-left .footer-text a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-left .footer-text a:hover { color: var(--accent); }

.communes-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
}

.communes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 15px;
    font-size: 12px;
}

.communes-grid a {
    color: #7f8c8d;
    text-decoration: none;
    transition: 0.2s;
}

.communes-grid a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.cabinet-line {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cabinet-line i {
    color: var(--accent);
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.flo-wellness-promo {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}

.flo-wellness-promo p {
    font-size: 12.5px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    font-size: 11px;
    color: #95a5a6;
    padding: 25px 0;
    border-top: 1px solid #eeeeee;
    margin-top: 30px;
    width: 100%;
}

/* ==========================================================================
   BOUTONS FLOTTANTS
   ========================================================================== */
.floating-wrapper {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    height: 0;
    pointer-events: none;
    z-index: 9999;
}

.floating-contact-container {
    position: absolute;
    right: 15px;
    display: flex !important;
    flex-direction: row !important;
    gap: 12px;
    pointer-events: auto;
    align-items: center;
}

.floating-contact {
    width: 55px;
    height: 55px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white !important;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.floating-contact.whatsapp { background-color: #25D366 !important; }
.floating-contact.mail { background-color: #F88F7F !important; }
.floating-contact.facebook { background-color: #1877F2 !important; }
.floating-contact.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
}

.floating-contact:hover { transform: translateY(-5px); }

@media (min-width: 769px) {
    .floating-contact.hide-on-pc {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

@media (max-width: 1620px) {
    .floating-wrapper {
        left: auto;
        right: 10px;
        transform: none;
        width: auto;
    }
}

/* ==========================================================================
   RESPONSIVE - TABLETTE
   ========================================================================== */
@media (max-width: 1024px) {
    body { padding-top: 0; }

    .fixed-header {
        position: relative;
        left: 0;
        transform: none;
        height: auto;
        padding: 15px 20px;
        flex-direction: column;
    }

    .hide-mobile { display: none !important; }

    .nav-menu {
        flex-wrap: nowrap;
        justify-content: center;
        margin: 15px 0;
        gap: 15px;
    }

    .nav-item a {
        font-size: 14px;
        white-space: nowrap;
    }

    .hero {
        height: auto;
        flex-direction: column;
    }

    .hero-img-box {
        position: relative;
        width: 100%;
        height: 300px;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .hero-content {
        margin: 40px 20px;
        max-width: 100%;
        text-align: center;
    }

    .cards-section {
        flex-direction: column;
        align-items: center;
        margin-top: -40px;
        padding: 0 20px 40px;
    }

    .card {
        max-width: 100%;
        width: 100%;
    }

    .about-section { padding: 60px 20px; }

    .expertise-header {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .content-body {
        flex-direction: column;
        padding: 40px 20px;
    }

    .sidebar-info {
        width: 100%;
        min-width: unset;
        position: static;
    }

    .footer-grid { grid-template-columns: 1fr; text-align: left; gap: 40px; }

    .footer-right,
    .footer-left,
    .footer-middle {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
    }

    .footer-left {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .communes-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */
@media (max-width: 768px) {
    .floating-wrapper { bottom: 40px; right: 0; }
    .header-right { display: none; }

    .floating-contact-container { right: 15px; gap: 8px; }

    .floating-contact {
        width: 36px !important;
        height: 36px !important;
        font-size: 20px !important;
        opacity: 0.6 !important;
    }

    .floating-contact.hide-on-pc {
        display: flex !important;
        visibility: visible !important;
        opacity: 0.6 !important;
        pointer-events: auto !important;
    }

    /* Header expertise */
    .expertise-header {
        flex-direction: row;
        align-items: center;
        padding: 20px 15px;
        gap: 15px;
        text-align: left;
    }

    .icon-box-large {
        width: 55px;
        height: 55px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .icon-box-large i {
        font-size: 28px !important;
    }

    .expertise-intro h1 { font-size: 1.1rem; }
    .expertise-intro .subtitle { font-size: 0.8rem; }

    /* Tarifs - layout */
    .content-body {
        flex-direction: column;
        padding: 20px 15px;
        gap: 20px;
    }

    /* Intro texte tarifs */
    .intro-tarifs {
        padding-left: 12px;
        margin-right: 5px;
        box-sizing: border-box;
        width: 100%;
        overflow: hidden;
    }

    .intro-tarifs p {
        word-break: break-word;
        white-space: normal;
        overflow-wrap: break-word;
        font-size: 0.85rem;
    }

    /* Sections tarifs */
    .tarifs-section {
        width: calc(100% - 5px);
        overflow: hidden;
    }

    .tarifs-header-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Tableaux */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tarifs-table {
        min-width: 300px;
        font-size: 0.75rem;
    }

    .tarifs-table th,
    .tarifs-table td {
        padding: 8px 10px;
        white-space: nowrap;
    }

    /* Info box sous les tableaux */
    .info-box-tarifs {
        font-size: 0.8rem;
        padding: 15px;
    }

    /* Contact box */
    .contact-box {
        margin-right: 5px;
        word-break: break-word;
    }

    .contact-box p { font-size: 13px; }

    /* Sidebar */
    .sidebar-info {
        width: 100%;
        min-width: unset !important;
        position: static;
    }

    /* Autres */
    .card-row { flex-direction: column; }
    .locations-grid { grid-template-columns: 1fr; }
}