/* ===== VARIABLES ===== */
:root {
    --primary-color: #7d9d85;
    --text-dark: #3d3530;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fdfcfb;
    color: #3d3530;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== NAVBAR ===== */
.navbar {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    background-color: rgba(255, 255, 255, 0.97);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.logo-img {
    max-height: 40px;
    width: auto;
}

/* Hamburger (mobile uniquement) */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #3d3530;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Menu mobile déroulant */
.navbar-links {
    display: none;
    flex-direction: column;
    list-style: none;
    gap: 0;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    padding: 20px 0 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 999;
    border-top: 1px solid #f0ece8;
}

.navbar-links.open {
    display: flex;
}

.navbar-links li {
    width: 100%;
}

.navbar-links a {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 14px 5%;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #f0ece8;
    transition: background 0.2s;
}

.navbar-links a:hover {
    background-color: #faf7f5;
    color: var(--primary-color);
}

.navbar-links a[aria-current="page"] {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-rdv {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    background: linear-gradient(135deg, #bf7ad0, #a86bb8);
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== HERO ===== */
.parcours-hero {
    padding: 90px 5% 50px;
    background: linear-gradient(135deg, #f9f7f4 0%, #e8e2db 100%);
    text-align: center;
    position: relative;
}

.badge-top {
    display: inline-block;
    padding: 5px 16px;
    background: #7d9d85;
    color: white;
    border-radius: 50px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.parcours-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: #3d3530;
    margin-bottom: 8px;
    line-height: 1.2;
}

.subtitle {
    font-size: 0.92rem;
    color: #7d9d85;
    font-weight: 500;
    margin-bottom: 28px;
    line-height: 1.5;
}

.hero-bio {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: #666;
    background: white;
    padding: 24px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    line-height: 1.7;
}

/* ===== PORTRAIT HERO ===== */
.hero-portrait-wrapper {
    margin: 0 auto 28px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 28px rgba(125, 157, 133, 0.2);
    flex-shrink: 0;
}

.hero-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ===== TIMELINE ===== */
.timeline-section {
    padding: 50px 5% 60px;
    background: #fff;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* H2 visible de la timeline */
.timeline-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #3d3530;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.timeline-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #7d9d85, #bf7ad0);
    border-radius: 2px;
    margin: 12px auto 0;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, #7d9d85 0%, #bf7ad0 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
    padding-left: 50px;
}

.timeline-dot {
    position: absolute;
    left: 9px;
    top: 6px;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 3px solid #7d9d85;
    border-radius: 50%;
    z-index: 2;
}

.timeline-date {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #7d9d85;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content {
    background: #fdfcfb;
    padding: 20px 18px;
    border-radius: 16px;
    border-left: 4px solid #7d9d85;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    /* Pas de transition hover sur mobile pour économiser les ressources */
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #3d3530;
}

.timeline-content p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.65;
}

/* ===== FLOATING HELP ===== */
/* ===== FLOATING HELP ===== */
.page-blur-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1999;
}

.page-blur-overlay.active {
    display: block;
}

@media (min-width: 768px) {
    .page-blur-overlay {
        display: none !important;
    }
}

.floating-help {
    position: fixed;
    bottom: 18px;
    right: 16px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.floating-actions {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 10px;
}

.floating-actions.open {
    display: flex;
}

.floating-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    padding: 8px 16px 8px 12px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
}

.floating-action-btn:hover {
    background: #f5f5f5;
}

.help-toggle {
    width: 46px;
    height: 46px;
    background-color: #bf7ad0;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(191,122,208,0.4);
    transition: transform 0.2s ease;
}

.help-toggle:active {
    transform: scale(0.95);
}


/* ===== FOOTER ===== */
.site-footer {
    padding: 40px 5%;
    background: #f9f7f4;
    text-align: center;
    border-top: 1px solid #e8e2db;
}

.footer-partners {
    margin-bottom: 30px;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 24px;
}

.partner-logos img {
    height: 32px;
    filter: none;
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.partner-logos a:hover img {
    opacity: 0.8;
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #e8e2db;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.footer-info p {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.8;
}

.footer-info strong {
    color: #3d3530;
}

.footer-info a {
    color: #3d3530;
    text-decoration: none;
}

.footer-legal p {
    font-size: 0.8rem;
    color: #999;
    margin-top: 8px;
}

.footer-legal a {
    color: #7d9d85;
    text-decoration: none;
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== TABLETTE (≥768px) ===== */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .navbar-links {
        display: flex !important;
        flex-direction: row;
        position: static;
        background: none;
        padding: 0;
        box-shadow: none;
        border: none;
        gap: 30px;
        margin-left: auto;
        margin-right: 30px;
    }

    .navbar-links li {
        width: auto;
    }

    .navbar-links a {
        display: inline;
        padding: 0;
        border: none;
        font-size: 13px;
        letter-spacing: 0.05em;
    }

    .navbar-links a:hover {
        background: none;
        color: #7d9d85;
    }

    .parcours-hero {
        padding: 130px 8% 70px;
    }

    .hero-portrait-wrapper {
        width: 170px;
        height: 170px;
    }

    .hero-bio {
        padding: 32px 36px;
        font-size: 1rem;
    }

    .timeline::before {
        left: 50px;
    }

    .timeline-dot {
        left: 41px;
        width: 20px;
        height: 20px;
    }

    .timeline-item {
        padding-left: 100px;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ===== DESKTOP (≥1024px) ===== */
@media (min-width: 1024px) {
    .navbar {
        height: 100px;
    }

    .logo-img {
        max-height: 70px;
    }

    .navbar-links {
        gap: 40px;
        margin-right: 40px;
    }

    .navbar-links a {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .btn-rdv {
        padding: 12px 28px;
        font-size: 14px;
    }

    .parcours-hero {
        padding: 180px 10% 80px;
    }

    .parcours-hero h1 {
        font-size: 4rem;
    }

    .hero-portrait-wrapper {
        width: 200px;
        height: 200px;
        border-width: 5px;
    }

    .timeline-section h2 {
        font-size: 2.4rem;
        margin-bottom: 60px;
    }

    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }

    .hero-bio {
        font-size: 1.1rem;
        padding: 40px;
        border-radius: 30px;
    }

    .timeline-section {
        padding: 100px 10%;
    }

    .timeline-date {
        font-size: 1.8rem;
    }

    .timeline-content {
        padding: 30px;
        border-radius: 20px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .timeline-content:hover {
        transform: translateX(10px);
        background: #fff;
        box-shadow: 0 15px 40px rgba(125, 157, 133, 0.1);
    }

    .timeline-content h3 {
        font-size: 1.4rem;
    }

    .timeline-content p {
        font-size: 0.95rem;
    }

    .partner-logos img {
        height: 45px;
    }

    .partner-logos {
        gap: 50px;
    }
}

.grecaptcha-badge {
    visibility: hidden !important;
}

.recaptcha-mention {
    font-size: 0.72rem;
    color: #bbb;
    margin-top: 10px;
    text-align: center;
}

.recaptcha-mention a {
    color: #bbb;
    text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}