/* ============================================================
   GLOBAL ANDORRA FINANZAS - Thème visuel commun à toutes les pages
   Palette : bleu marine #0a2e6e / or #cba44c / ivoire #faf8f3 (couleurs du logo)
   Typographie : Playfair Display (titres) + Inter (texte)
   Ce fichier ne change aucune fonction du site : uniquement l'apparence.
   ============================================================ */
:root {
    --gaf-navy: #0a2e6e;
    --gaf-navy-deep: #061a40;
    --gaf-gold: #cba44c;
    --gaf-gold-dark: #a98228;
    --gaf-ivory: #faf8f3;
    --gaf-sand: #f4f1e9;
    --gaf-line: #e2dccb;
    --gaf-serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --gaf-sans: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ----- Typographie ----- */
html body { font-family: var(--gaf-sans); }
* { font-family: inherit; }
h1, h2, h3, .logo-text, .section-header h2, .hello h1, .modal-header h3, .slide-content h1,
.stat-number, .balance, .big-amount, .card h2, .welcome-card .amount {
    font-family: var(--gaf-serif);
    font-weight: 600;
    letter-spacing: 0.01em;
}
h4, h5, select, option, input, button, textarea { font-family: var(--gaf-sans); }
.mono, code, pre, .iban-line, .dcard-num { font-family: ui-monospace, Menlo, Consolas, monospace; }

/* ----- Barre de navigation ----- */
nav { border-bottom: 2px solid var(--gaf-gold); }
.logo { display: flex; align-items: center; gap: 0.7rem; cursor: pointer; }
.logo-img {
    height: 46px; width: 46px; object-fit: contain; background: #fff; border-radius: 50%;
    padding: 3px; box-shadow: 0 0 0 2px var(--gaf-gold);
}
.logo-text { letter-spacing: 0.04em; white-space: nowrap; }
.logo-full { mix-blend-mode: multiply; display: block; width: 100%; max-width: 230px; height: auto; margin: 0 auto; }
.logo-large { text-align: center; }
nav .nav-links a { letter-spacing: 0.02em; }

/* ----- Boutons et champs : angles plus fins, allure plus sobre ----- */
button, .btn, [class*="btn-"], .btn-slider, input, select, textarea { border-radius: 6px; }
.btn-primary, .btn-slider-primary, .btn-ouvrir-compte, .btn-connexion {
    letter-spacing: 0.03em; font-weight: 600;
}
input:focus, select:focus, textarea:focus { border-color: var(--gaf-gold) !important; outline: none; box-shadow: 0 0 0 3px rgba(203, 164, 76, 0.22); }

/* ----- Cartes et fenêtres ----- */
.card, .service-card, .modal-content, .action-card, .welcome-card, .req-card, .faq-item, .testimonial-card {
    border-radius: 10px;
}
.card, .modal-content { box-shadow: 0 8px 30px rgba(6, 26, 64, 0.08); }
.modal-header { border-bottom: 1px solid var(--gaf-line); }
.section-header h2::after {
    content: ''; display: block; width: 56px; height: 2px; background: var(--gaf-gold); margin: 0.7rem 0 0;
}
body:has(.hero-slider) .section-header h2::after { margin: 0.7rem auto 0; }
.section-header h2 { font-weight: 700; }

/* ----- Accueil : carrousel de photos claires ----- */
.hero-slider { height: 92vh; min-height: 560px; }
.slide { background-position: center; }
.slide:nth-child(1) {
    background-image: linear-gradient(180deg, rgba(6,26,64,0.15), rgba(6,26,64,0.45)),
        url('img/hero-1.jpg'),
        url('https://images.unsplash.com/photo-1614678096587-0ad50faf1603?auto=format&fit=crop&w=1920&q=75'), linear-gradient(135deg, #0a2e6e, #1c4a9a);
}
.slide:nth-child(2) {
    background-image: linear-gradient(180deg, rgba(6,26,64,0.15), rgba(6,26,64,0.45)),
        url('img/hero-2.jpg'),
        url('https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1920&q=75'), linear-gradient(135deg, #0a2e6e, #1c4a9a);
}
.slide:nth-child(3) {
    background-image: linear-gradient(180deg, rgba(6,26,64,0.15), rgba(6,26,64,0.45)),
        url('img/hero-3.jpg'),
        url('https://images.unsplash.com/photo-1599840798493-f876222b0f7b?auto=format&fit=crop&w=1920&q=75'), linear-gradient(135deg, #0a2e6e, #1c4a9a);
}
.slide:nth-child(4) {
    background-image: linear-gradient(180deg, rgba(6,26,64,0.15), rgba(6,26,64,0.45)),
        url('img/hero-4.jpg'),
        url('https://images.unsplash.com/photo-1758523670969-dd1b1254062d?auto=format&fit=crop&w=1920&q=75'), linear-gradient(135deg, #0a2e6e, #1c4a9a);
}
.slide::before { background: none; }
.slide-content {
    background: rgba(6, 26, 64, 0.52); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(203, 164, 76, 0.65); border-radius: 6px; padding: 2.6rem 2.4rem; max-width: 820px;
}
.slide-content h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 600; line-height: 1.15; }
.slide-content p { font-weight: 400; }
.btn-slider { border-radius: 4px; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; }

/* ----- Pied de page ----- */
footer { background: var(--gaf-navy-deep) !important; border-top: 3px solid var(--gaf-gold); }
.footer-brand { max-width: 1200px; margin: 0 auto 2rem; text-align: center; }
.footer-brand img { width: 150px; height: auto; background: #fff; border-radius: 12px; padding: 8px; }

/* ----- Bouton d'aide flottant (assistance) ----- */
.help-fab {
    position: fixed; left: 18px; bottom: 18px; z-index: 900; display: flex; align-items: center; gap: 0.5rem;
    background: var(--gaf-gold); color: var(--gaf-navy-deep); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em;
    padding: 0.75rem 1.1rem; border-radius: 999px; text-decoration: none; box-shadow: 0 8px 24px rgba(6, 26, 64, 0.3);
}
.help-fab:hover { background: #d8b45f; }
@media (max-width: 600px) {
    .logo-img { height: 38px; width: 38px; }
    .logo-text { font-size: 1rem !important; }
    .help-fab span { display: none; }
    .help-fab { padding: 0.85rem; }
}

/* ----- Page d'assistance ----- */

.help-card a:not(.help-btn) { color: var(--gaf-navy); font-weight: 600; }
body.app-dashboard { background: linear-gradient(180deg, #faf8f3, #f1ede2) !important; }

/* ----- Barre de navigation compacte : langues en code (FR, EN…), sans globe ni flèche ----- */
.language-btn > i, .language-btn > :first-child:not(#selectedLanguage), .language-btn > :last-child:not(#selectedLanguage) { display: none !important; }
.language-btn { padding: 0.4rem 0.8rem !important; gap: 0 !important; font-weight: 600; letter-spacing: 0.06em; }
.language-dropdown { min-width: 0 !important; width: max-content; }
.language-option .name { font-weight: 600; letter-spacing: 0.05em; }
a[href="client-login.html"][data-i18n="nav.client_area"]::before,
a.btn-connexion[data-i18n="nav.client_area"]::before {
    content: ''; display: inline-block; width: 1.2em; height: 1.2em; margin-right: 0.45em; vertical-align: -0.22em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4.2'/%3E%3Cpath d='M3.8 21c.6-4.4 3.9-6.6 8.2-6.6s7.6 2.2 8.2 6.6'/%3E%3C/svg%3E") no-repeat center / contain;
}
nav .nav-links { gap: 1.4rem; }

/* ----- Logo horizontal dans la barre de navigation (pages publiques) ----- */
.logo-wide { display: block; height: 62px; width: auto; max-width: 100%; flex-shrink: 0; background: #fff; border-radius: 8px; padding: 4px 10px; box-shadow: 0 0 0 2px var(--gaf-gold); }
nav:has(.logo-wide) { padding-top: 0.55rem; padding-bottom: 0.55rem; }
/* Écrans moyens : liens plus compacts pour éviter le retour à la ligne */
@media (min-width: 1251px) and (max-width: 1450px) {
    nav:has(.logo-wide) .nav-links { gap: 0.7rem; }
    nav:has(.logo-wide) .nav-links a { font-size: 0.92rem; }
    nav:has(.logo-wide) .nav-links .btn-connexion, nav:has(.logo-wide) .nav-links .btn-ouvrir-compte { padding: 0.5rem 1rem !important; }
}
/* Mobile : le logo occupe toute la largeur de la barre, à côté du menu */
@media (max-width: 600px) {
    nav:has(.logo-wide) .logo { flex: 1 1 auto; min-width: 0; margin-right: 0.9rem; }
    .logo-wide { width: 100%; height: auto; max-height: 66px; object-fit: contain; padding: 4px 10px; }
    /* Pages sans menu hamburger : le logo prend toute la largeur au-dessus des liens */
    nav:has(.logo-wide):not(:has(.hamburger)) .logo { flex: none; width: 100%; margin-right: 0; }
}