:root {
    --blue-dark: #05182a;
    --blue-light: #0e2a47;
    --gold-start: #bf953f;
    --gold-mid: #fcf6ba;
    --gold-end: #b38728;
    --gold-solid: #d4af37;
    --white: #ffffff;
    --gray-light: #f4f4f4;
    --text-dark: #1a1a1a;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--gray-light);
    overflow-x: hidden;
    max-width: 100vw;
}
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 700; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== GOLD ===== */
.gold-text {
    color: var(--gold-solid);
    background: linear-gradient(to right, var(--gold-start), var(--gold-solid), var(--gold-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}
@supports not (-webkit-background-clip: text) { .gold-text { background: none; color: var(--gold-solid); } }
.gold-icon { color: var(--gold-solid); margin-right: 8px; }

/* ===== NAVBAR ===== */
.navbar {
    background: var(--blue-dark); height: 80px; position: fixed;
    width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid var(--gold-solid);
    display: flex; align-items: center;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 100%; }
.logo-container { display: flex; align-items: center; gap: 10px; }
.nav-logo { height: 50px; width: 50px; object-fit: cover; border-radius: 50%; border: 1px solid var(--gold-solid); background-color: var(--white); }
.brand-name { color: var(--white); font-size: 1.2rem; letter-spacing: 1px; font-weight: 700; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover, .nav-links .active-link { color: var(--gold-solid); }
.btn-gold { border: 1px solid var(--gold-solid); padding: 10px 20px; color: var(--gold-solid) !important; border-radius: 2px; white-space: nowrap; flex-shrink: 0; display: inline-block; }
.btn-gold:hover { background: var(--gold-solid); color: var(--blue-dark) !important; }
.hamburger { display: none; color: var(--gold-solid); font-size: 1.5rem; cursor: pointer; }
.nav-auth-icon { color: var(--white) !important; display: flex; align-items: center; padding-left: 20px; margin-left: 5px; border-left: 1px solid rgba(255,255,255,0.2); font-size: 1.4rem; transition: 0.3s ease; }
.nav-auth-icon i { color: var(--gold-solid); }
.nav-auth-icon:hover i { color: var(--white); transform: scale(1.1); }

/* ===== HERO ===== */
.hero { height: 100vh; padding-top: 80px; background: url('./salon2.png') no-repeat center center/cover; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(5,24,42,0.85), rgba(5,24,42,0.95)); }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-logo-wrapper img { height: 120px; border-radius: 50%; border: 2px solid var(--gold-solid); box-shadow: 0 0 20px rgba(212,175,55,0.3); margin-bottom: 20px; }
.hero h1 { color: var(--white); font-size: 3.5rem; margin-bottom: 20px; }
.hero p { color: #ccc; font-size: 1.2rem; margin-bottom: 40px; }

/* ===== BOUTONS ===== */
.btn { padding: 15px 35px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-radius: 2px; display: inline-block; margin: 10px; cursor: pointer; }
.btn-primary { background: linear-gradient(45deg, var(--gold-start), var(--gold-end)); color: var(--blue-dark); border: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(212,175,55,0.4); }
.btn-outline { background: transparent; border: 1px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue-dark); }
.full-width { width: 100%; cursor: pointer; }
.btn.full-width { width: 100%; text-align: center; display: block; }

/* ===== TRUST BANNER ===== */
.trust-banner { background: var(--gold-solid); padding: 20px 0; }
.trust-banner .container { display: flex; justify-content: space-around; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; color: var(--blue-dark); font-weight: 700; font-size: 0.9rem; }
.trust-item i { margin-right: 10px; font-size: 1.2rem; }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; overflow: hidden; }
.bg-light { background-color: var(--gray-light); }
.section-header { text-align: center; margin-bottom: 70px; }
.section-header h2 { font-size: 2.5rem; color: var(--blue-dark); }
.separator-gold { width: 80px; height: 3px; background: var(--gold-solid); margin: 20px auto; }

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.card { background: var(--white); padding: 40px 30px; border-bottom: 3px solid transparent; transition: 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.card:hover { border-bottom: 3px solid var(--gold-solid); transform: translateY(-5px); }
.card-icon { font-size: 2.5rem; color: var(--gold-solid); margin-bottom: 20px; }
.card h3 { margin-bottom: 15px; color: var(--blue-dark); }

/* ===== ABOUT ===== */
.dark-section { background: var(--blue-dark); color: var(--white); }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { color: var(--gold-solid); font-size: 2.5rem; margin-bottom: 20px; }
.about-text p { margin-bottom: 20px; color: #d0d0d0; }
.link-arrow { color: var(--gold-solid); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.about-img-grid { position: relative; height: 400px; }
.about-img-grid img { position: absolute; width: 60%; border: 3px solid var(--gold-solid); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.img-1 { top: 0; left: 0; z-index: 1; }
.img-2 { bottom: 0; right: 0; z-index: 2; }

/* ===== CONTACT ===== */
.contact-box { background: var(--white); box-shadow: 0 15px 40px rgba(0,0,0,0.1); display: grid; grid-template-columns: 1fr 1.5fr; overflow: hidden; }
.contact-left { background: var(--blue-dark); color: var(--white); padding: 50px; }
.contact-left h3 { color: var(--gold-solid); font-size: 1.8rem; margin-bottom: 20px; }
.info-line { display: flex; align-items: center; margin-bottom: 20px; }
.map-placeholder img { width: 100%; height: 150px; object-fit: cover; margin-top: 20px; opacity: 0.7; }
.contact-form { padding: 50px; }
.input-group { position: relative; margin-bottom: 30px; }
.input-group input, .input-group textarea { width: 100%; padding: 10px 0; font-size: 16px; color: var(--text-dark); border: none; border-bottom: 1px solid #ddd; outline: none; background: transparent; }
.input-group label { position: absolute; top: 0; left: 0; padding: 10px 0; font-size: 16px; color: #999; pointer-events: none; transition: 0.3s; }
.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label,
.input-group input.has-content ~ label,
.input-group textarea.has-content ~ label { top: -20px; font-size: 12px; color: var(--gold-solid); }

/* ===== PAGE HEADER (simulation, mentions…) ===== */
.page-header { height: 40vh; min-height: 300px; background: linear-gradient(rgba(5,24,42,0.85), rgba(5,24,42,0.9)), url('./havre2.jpg'); background-position: center; background-size: cover; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; margin-top: 80px; }
.header-content { position: relative; z-index: 2; color: var(--white); }
.header-content h1 { font-size: 2.5rem; margin-bottom: 10px; color: var(--white); }

/* ===== EVENT HEADER ===== */
.event-header { background-color: var(--blue-dark); color: var(--white); padding-top: 140px; padding-bottom: 80px; }
.event-hero-content { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.event-text { flex: 1; }
.event-text h1 { font-size: 3rem; color: var(--gold-solid); margin-bottom: 20px; line-height: 1.2; }
.event-infos { margin-bottom: 30px; font-size: 1.1rem; border-left: 3px solid var(--gold-solid); padding-left: 15px; }
.event-img-wrapper { flex: 1; position: relative; }
.event-img-wrapper img { width: 100%; border-radius: 4px; border: 1px solid var(--gold-solid); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.programme-list { list-style: none; margin-top: 40px; }
.programme-list li { background: var(--white); padding: 20px; margin-bottom: 15px; border-left: 4px solid var(--gold-solid); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.programme-time { font-weight: bold; color: var(--blue-dark); display: block; margin-bottom: 5px; font-size: 1.2rem; }

/* ===== SIMULATEUR ===== */
.simulator-dashboard-wrapper { display: grid; grid-template-columns: 3fr 2fr; gap: 0; background-color: var(--white) !important; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.1); overflow: hidden; border: 1px solid rgba(212,175,55,0.3); margin-top: -50px; position: relative; z-index: 10; width: 100%; max-width: 100%; box-sizing: border-box; }
.sim-inputs-panel { padding: 40px; background-color: var(--white); color: var(--blue-dark); }
.sim-inputs-panel h3 { color: var(--blue-dark); margin-bottom: 20px; font-size: 1.5rem; }
.separator-left { width: 50px; height: 3px; background: var(--gold-solid); margin-bottom: 30px; }
.input-group-sim { margin-bottom: 30px; }
.input-group-sim label { display: block; font-weight: 700; color: var(--blue-dark); margin-bottom: 10px; }
.input-group-sim input[type="number"] { width: 100%; padding: 12px; font-size: 1.2rem; font-weight: bold; color: var(--blue-dark); border: 1px solid #ddd; border-radius: 4px; background: #fff; }
.quick-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.btn-preset { background: transparent; border: 1px solid #ccc; color: #666; padding: 5px 10px; font-size: 0.8rem; cursor: pointer; border-radius: 4px; transition: 0.2s; }
.btn-preset:hover { border-color: var(--gold-solid); color: var(--blue-dark); background: rgba(212,175,55,0.1); }
.range-container { display: flex; align-items: center; gap: 15px; margin-top: 10px; }
input[type=range] { flex-grow: 1; accent-color: var(--gold-solid); cursor: pointer; }
.years-text { font-weight: bold; color: var(--gold-solid); min-width: 60px; }
.profile-selector { display: flex; gap: 10px; margin-top: 10px; }
.btn-profile { flex: 1; padding: 15px 5px; background: #f9f9f9; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; text-align: center; }
.btn-profile.active { border-color: var(--gold-solid); background: #fffcf0; box-shadow: 0 0 10px rgba(212,175,55,0.15); }
.btn-profile span { display: block; font-weight: bold; color: var(--blue-dark); }
.btn-profile small { font-size: 0.75rem; color: #777; }
.sim-results-panel { background-color: var(--blue-dark); color: var(--white); padding: 40px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.results-header { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; opacity: 0.7; }
.mini-logo { height: 30px; width: 30px; border-radius: 50%; border: 1px solid var(--gold-solid); }
.final-capital-display { text-align: center; margin-bottom: 30px; }
.final-capital-display span { display: block; font-size: 3rem; font-weight: 700; font-family: var(--font-title); color: var(--gold-solid); margin-bottom: 5px; }
.results-details { background: rgba(255,255,255,0.05); padding: 20px; border-radius: 6px; margin-bottom: 20px; }
.detail-row { display: flex; justify-content: space-between; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 5px; }
.detail-row:last-child { border: none; }
.breakdown-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #333; margin-bottom: 20px; }
.bar-part.invested { background-color: #4a6fa5; height: 100%; transition: width 0.5s; }
.bar-part.interest { background-color: var(--gold-solid); height: 100%; transition: width 0.5s; }
.bar-legend { display: flex; justify-content: space-between; font-size: 0.8rem; color: #ccc; margin-bottom: 20px; }
.disclaimer-sm { font-size: 0.7rem; color: #777; margin-top: 15px; text-align: center; font-style: italic; }

/* ===== FOOTER ===== */
footer { background: #020b14; color: #666; padding: 50px 0; border-top: 3px solid var(--gold-solid); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-logo p { margin-top: 15px; font-style: italic; }
.footer-links h4, .footer-legal h4 { color: var(--white); margin-bottom: 20px; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--gold-solid); }
.social-links { margin-top: 20px; display: flex; gap: 15px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: rgba(255,255,255,0.1); border-radius: 50%; color: var(--white); font-size: 1.1rem; border: 1px solid rgba(255,255,255,0.2); transition: all 0.3s ease; }
.social-links a:hover { background-color: var(--gold-solid); color: var(--blue-dark); border-color: var(--gold-solid); transform: translateY(-3px); }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeUp 1s forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ===== MODALS / TOASTS ===== */
.custom-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(5,24,42,0.8); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.modal-content { background: white; padding: 40px; border-radius: 4px; width: 90%; max-width: 420px; text-align: center; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3); border-top: 4px solid var(--gold-solid); }
.modal-logo { height: 50px; margin-bottom: 20px; }
.modal-content h3 { font-family: var(--font-title); color: var(--blue-dark); margin-bottom: 10px; }
.close-modal { position: absolute; right: 20px; top: 15px; font-size: 28px; cursor: pointer; color: #999; }
.modal-status { margin-top: 20px; font-size: 0.9rem; font-weight: 700; }
.status-success { color: var(--gold-solid); }
.status-error { color: #e74c3c; }
.modal-footer { display: flex; gap: 10px; margin-top: 30px; }
.btn-action { flex: 1; padding: 12px; border: none; border-radius: 4px; font-weight: 700; cursor: pointer; text-transform: uppercase; transition: 0.3s; }
.btn-confirm { background: var(--blue-dark); color: white; }
.btn-confirm:hover { background: var(--gold-solid); }
.btn-cancel { background: #f1f5f9; color: #64748b; }
.error-box { background-color: #fee2e2; color: #b91c1c; padding: 12px; border-radius: 4px; margin-bottom: 20px; font-size: 0.9rem; display: none; align-items: center; gap: 10px; border: 1px solid #fecaca; text-align: left; }
.toast-label { position: fixed; bottom: 30px; right: 30px; background: var(--gold-solid); color: var(--blue-dark); padding: 18px 30px; border-radius: 4px; font-weight: 700; display: flex; align-items: center; gap: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); transform: translateY(150%); transition: transform 0.5s cubic-bezier(0.175,0.885,0.32,1.275); z-index: 10000; }
.toast-label.show { transform: translateY(0); }
.notification-toast { position: fixed; top: 20px; right: 20px; background-color: #c5a059; color: #1a1a1a; padding: 15px 25px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 12px; font-weight: bold; z-index: 10000; transform: translateY(-100px); transition: transform 0.4s ease; }
.notification-toast.show { transform: translateY(0); }
.notification-toast i { font-size: 1.2rem; }
.notification-toast.error { background-color: #e74c3c; color: white; }

/* ===== BLOG ===== */
.btn-delete-post { padding: 5px 10px; border-radius: 4px; transition: 0.2s; }
.btn-delete-post:hover { background: #fee2e2; }
.article-images-gallery img { border-bottom: 1px solid #f1f5f9; }

/* ===== ÉQUIPE ===== */
.member-card { display: flex; background: var(--white); margin-bottom: 60px; border-radius: 4px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.member-card.reverse { flex-direction: row-reverse; }
.member-image { flex: 1; position: relative; min-height: 400px; }
.member-image img { width: 100%; height: 100%; object-fit: cover; }
.member-info-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, var(--blue-dark)); padding: 30px; color: var(--white); }
.member-details { flex: 1.5; padding: 50px; }
.member-bio { font-style: italic; margin-bottom: 30px; color: #555; font-size: 1.1rem; }
.experience-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.tab-content h4 { color: var(--blue-dark); margin-bottom: 15px; border-bottom: 1px solid var(--gold-solid); padding-bottom: 5px; font-family: var(--font-title); }
.timeline, .education-list { list-style: none; padding: 0; }
.timeline li, .education-list li { margin-bottom: 15px; font-size: 0.9rem; position: relative; padding-left: 15px; border-left: 2px solid var(--gold-solid); }
.timeline li strong { display: block; color: var(--blue-dark); }
.timeline li span { color: #777; font-size: 0.85rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) and (min-width: 769px) {
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 0.8rem; }
    .brand-name { font-size: 1rem; }
}

@media (max-width: 900px) {
    html, body { overflow-x: hidden; max-width: 100%; }

    /* Navbar */
    .close-mobile { display: block !important; }
    .hamburger { display: block; }
    .nav-links {
        position: fixed; top: 80px; right: 0; width: 100%; height: calc(100vh - 80px);
        background: var(--blue-dark); flex-direction: column; justify-content: center;
        align-items: center; transform: translateX(100%); transition: 0.4s;
        display: flex; z-index: 2000; overflow-x: hidden; gap: 25px;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links a { font-size: 1.1rem; }

    /* Simulateur */
    .simulator-dashboard-wrapper { grid-template-columns: 1fr; margin-top: 0; border-radius: 0; border-left: none; border-right: none; box-shadow: none; }
    .sim-results-panel { order: -1; padding: 25px; }
    .sim-inputs-panel { padding: 25px; }
    .profile-selector { flex-direction: row; flex-wrap: wrap; }
    .btn-profile { min-width: 80px; }
    .final-capital-display span { font-size: 2.2rem; }
    .input-group-sim input[type="number"] { font-size: 1rem; }
    .quick-actions { flex-wrap: wrap; gap: 8px; }
    .range-container { flex-wrap: wrap; }
    .results-details { padding: 15px; }
    .detail-row { font-size: 0.9rem; }

    /* Page header */
    .page-header { min-height: 220px; overflow: hidden; }
    .header-content h1 { font-size: 1.8rem; padding: 0 15px; }
    .header-content p { padding: 0 15px; font-size: 0.95rem; }

    /* Sections */
    .section { padding: 40px 0; }
    .split-layout { grid-template-columns: 1fr; }
    .about-img-grid { height: 300px; margin-bottom: 40px; }

    /* Contact */
    .contact-box { grid-template-columns: 1fr; }
    .contact-left { padding: 30px; }
    .contact-form { padding: 30px; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr; gap: 30px; }

    /* Event */
    .event-hero-content { flex-direction: column-reverse; }
    .event-header { padding-top: 100px; }

    /* Équipe */
    .member-card, .member-card.reverse { flex-direction: column; }
    .experience-tabs { grid-template-columns: 1fr; }
    .member-image { min-height: 300px; }

    .card:hover { transform: none; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr; /* Passe en 1 seule colonne sur mobile */
    }
    .admin-wrapper {
        margin: 20px auto; /* Réduit les marges sur le côté */
    }
    .creation-card {
        padding: 20px; /* Donne plus d'espace aux champs */
    }
}

@media (max-width: 900px) {
    /* ... tes règles existantes ... */

    .hero-logo-wrapper img {
        height: 90px; /* On réduit légèrement la taille sur mobile pour que ça tienne sans rogner */
        margin-bottom: 15px;
    }
    
    .hero {
        padding-top: 100px; /* On donne un peu plus d'espace sur mobile */
    }
}