/* Style identique au site troubles-succion-oralite.ch */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --turquoise: #4ECDC4;
    --turquoise-dark: #3BAAA3;
    --white: #ffffff;
    --black: #000000;
    --text: #333333;
    --text-light: #666666;
    --gray-bg: #f8f8f8;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* HEADER TRANSPARENT */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

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

.logo-img { height: 40px; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.nav-menu a:hover { opacity: 0.8; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO PLEINE LARGEUR */
.hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Image hero en <img> pour LCP optimisé */
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
}

/* SECTIONS */
.section {
    padding: 4rem 3rem;
    background: white;
}

.section-turquoise {
    background: var(--turquoise);
}

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

/* LAYOUT IMAGE + TEXTE */
.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.content-row.reverse {
    direction: rtl;
}

.content-row.reverse > * {
    direction: ltr;
}

.content-image {
    width: 100%;
    border-radius: 8px;
}

.content-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.content-text h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.content-text ul {
    list-style: disc;
    padding-left: 2rem;
    margin-top: 1rem;
}

.content-text li {
    margin-bottom: 0.5rem;
}

/* GRILLE 4 COLONNES PROS */
.pro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.pro-card {
    background: rgba(255,255,255,0.9);
    padding: 2rem 1.5rem;
    text-align: center;
    min-height: 200px;
}

.pro-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.pro-card p {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

/* TEAM GRID 3 COLONNES */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

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

.team-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.team-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.team-card a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--text);
    border-radius: 4px;
    font-size: 0.9rem;
}

/* BOUTONS */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--turquoise);
    color: white;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

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

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

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1rem;
}

.footer-links a {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .pro-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .content-row { grid-template-columns: 1fr; }
    .pro-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .nav-menu { display: none; flex-direction: column; gap: 0 !important; }
    .nav-menu.active { display: flex !important; position: absolute; top: 100%; left: 0; right: 0; background: rgba(15,15,15,0.96); padding: 0.5rem 0 1rem; z-index: 999; }
    .nav-menu > li > a { font-size: 0.95rem !important; padding: 0.65rem 1.5rem; display: block; }
    .nav-toggle { display: block; }
    .header-content { padding: 1rem; position: relative; }
    .section { padding: 3rem 1.5rem; }
}

/* ROW / COL LAYOUT */
.row {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.row-center {
    align-items: center;
}

.col-2 {
    flex: 1;
}

.img-responsive {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.img-small {
    max-height: 280px;
    object-fit: cover;
}

.section-light {
    background: var(--gray-bg);
}

/* BOUTON OUTLINE */
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--text);
}

.btn-outline:hover {
    background: var(--text);
    color: white;
}

@media (max-width: 768px) {
    .row { flex-direction: column; gap: 2rem; }
}

/* UTILITAIRES */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }


/* =============================================
   EXTENDED VARIABLES & COMPONENTS
   ============================================= */

:root {
    --color-primary: #4ECDC4;
    --color-primary-dark: #3BAAA3;
    --color-primary-light: #d0f0ee;
    --color-secondary: #FF8A65;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    --radius: 8px;
    --radius-large: 16px;
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.12);
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* NAV ACTIVE STATE */
.nav-menu a.active {
    font-weight: 700;
    border-bottom: 2px solid rgba(255,255,255,0.8);
    padding-bottom: 2px;
}

/* REDUCE NAV GAP FOR MORE ITEMS */
.nav-menu { gap: 0.8rem !important; }
.nav-menu > li > a { font-size: 0.82rem !important; letter-spacing: -0.01em; }

/* DROPDOWN NAVIGATION */
.nav-menu > li.has-dropdown { position: relative; }

.nav-menu > li.has-dropdown > a::after {
    content: ' ▾';
    font-size: 0.7em;
    opacity: 0.75;
}

/* Dropdown — caché par défaut (sélecteurs directs, sans !important) */
.nav-menu > li > ul.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 15, 15, 0.92);
    backdrop-filter: blur(12px);
    min-width: 190px;
    border-radius: 0 0 6px 6px;
    padding: 0.4rem 0;
    flex-direction: column;
    gap: 0;
    z-index: 500;
    list-style: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Affiché au survol (desktop) — CSS :hover + classe .open via JS */
.nav-menu > li.has-dropdown:hover > ul.dropdown,
.nav-menu > li.has-dropdown.open > ul.dropdown {
    display: flex;
}

.nav-menu > li > ul.dropdown > li > a {
    display: block;
    padding: 0.55rem 1.1rem;
    white-space: nowrap;
    font-size: 0.85rem !important;
    color: rgba(255,255,255,0.9) !important;
    transition: background 0.15s;
    border-bottom: none !important;
}

.nav-menu > li > ul.dropdown > li > a:hover {
    background: rgba(255,255,255,0.12);
    opacity: 1 !important;
}

/* CARDS */
.card { background: white; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }

/* BUTTONS */
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-dark); }

/* SYMPTOM CARDS */
.symptom-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.symptom-card { background: white; border-radius: var(--radius); padding: 1.5rem; border-left: 4px solid var(--turquoise); box-shadow: var(--shadow-sm); }
.symptom-card h3 { margin-bottom: 1rem; color: var(--turquoise-dark); }
.symptom-card ul { list-style: none; padding: 0; }
.symptom-card ul li { padding: 0.4rem 0 0.4rem 1.5rem; position: relative; }
.symptom-card ul li::before { content: '→'; position: absolute; left: 0; color: var(--turquoise); }

/* DISCLAIMER */
.disclaimer { background: #fff9f0; border-left: 4px solid #FF8A65; border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }
.disclaimer-title { font-weight: 700; margin-bottom: 0.75rem; font-size: 1.05rem; }

/* REFERENCE LIST */
.reference-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }
.reference-item { background: white; border-radius: var(--radius); padding: 1.25rem; border-left: 4px solid var(--turquoise); box-shadow: var(--shadow-sm); }
.reference-title { font-weight: 700; margin-bottom: 0.5rem; }
.reference-authors { color: var(--color-text-light); font-style: italic; margin-bottom: 0.25rem; }
.reference-source { color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 0.5rem; }
.reference-link { color: var(--turquoise); font-weight: 600; display: inline-block; margin-top: 0.5rem; }

/* PRO LIST */
.pro-list { margin: 2rem 0; padding: 2rem; background: white; border-radius: var(--radius-large); box-shadow: var(--shadow-sm); }
.cta-section { text-align: center; padding: 3rem 2rem; }
.prise-en-charge-content, .intro-text { max-width: 900px; margin: 0 auto; }
.mb-medium { margin-bottom: 1.5rem; }
.mt-small { margin-top: 0.5rem; }

@media (max-width: 768px) {
    /* Dropdown mobile — statique, caché par défaut */
    .nav-menu > li > ul.dropdown {
        position: static;
        background: rgba(255,255,255,0.1);
        box-shadow: none;
        border-radius: 0;
        display: none;
    }
    /* Mobile : forcer le réaffichage (déjà géré globalement, sécurité) */
    .nav-menu > li.has-dropdown.open > ul.dropdown { display: flex !important; }
    .cards-grid, .symptom-cards { grid-template-columns: 1fr; }
}
