/* ==========================================================================
   PIED DE PAGE : grande carte bleu nuit arrondie, identite a gauche,
   plan du site, formulaire de rappel, autorites, bandeau dore final.
   ========================================================================== */
.footer-separator { display: none !important; }
footer.main-footer.ft {
    position: relative;
    overflow: hidden;
    margin: 40px 14px 14px !important;
    padding: 0 !important;
    border-radius: 32px;
    background:
        radial-gradient(45% 60% at 100% 0%, rgba(180, 154, 88, 0.14) 0%, rgba(180, 154, 88, 0) 65%),
        radial-gradient(40% 60% at 0% 100%, rgba(29, 74, 115, 0.5) 0%, rgba(29, 74, 115, 0) 70%),
        linear-gradient(160deg, #0B243E 0%, #0d2a48 100%) !important;
    color: rgba(255, 255, 255, 0.78);
    font-family: 'Montserrat', sans-serif;
    text-align: left;
}
.ft .ft-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ft .ft-lines path { fill: none; stroke: rgba(180, 154, 88, 0.22); stroke-width: 1.3; stroke-linecap: round; }
.ft .ft-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 76px 48px 40px; }
.ft a { color: inherit; text-decoration: none; }

/* --- Ligne principale ---------------------------------------------------- */
.ft .ft-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 2.4fr) minmax(0, 0.95fr); gap: 56px; align-items: start; }

/* Identite */
.ft .ft-logo { width: 150px; height: auto; display: block; margin-bottom: 24px; }
.ft .ft-pitch { margin: 0 0 24px; font-size: 15px; line-height: 1.75; color: rgba(255, 255, 255, 0.86); text-align: left !important; }
.ft .ft-contact { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.ft .ft-contact li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.72); }
.ft .ft-contact li::before { content: ""; width: 14px; height: 1px; background: #B49A58; flex: none; }
.ft .ft-contact a:hover { color: #D8C69A; }
.ft .ft-social { display: flex; gap: 10px; margin-bottom: 28px; }
.ft .ft-social a {
    display: inline-grid !important;
    place-items: center;
    width: 40px;
    height: 40px;
    min-height: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(216, 198, 154, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 15px;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.ft .ft-social a:hover { background: #B49A58; border-color: #B49A58; color: #0B243E; }
.ft .ft-top-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    min-height: 0 !important;
    padding: 12px 20px !important;
    border: 1px solid rgba(216, 198, 154, 0.55);
    border-radius: 999px;
    color: #D8C69A !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.25s, color 0.25s;
}
.ft .ft-top-btn span { font-size: 15px; }
.ft .ft-top-btn:hover { background: #B49A58; color: #0B243E !important; }

/* Plan du site */
.ft .ft-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 28px; }
.ft .footer-nav-links { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.ft .footer-nav-links .gold-title {
    margin: 0 0 14px !important;
    padding: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #D8C69A !important;
    text-align: left !important;
    border: 0 !important;
}
.ft .footer-nav-links .gold-title::after { display: none !important; }
.ft .footer-nav-links ul { margin: 0 !important; padding: 0 !important; list-style: none !important; display: grid; gap: 9px; }
.ft .footer-nav-links li { margin: 0 !important; padding: 0 !important; text-align: left !important; }
.ft .footer-nav-links li::before { display: none !important; }
.ft .footer-nav-links a {
    display: inline !important;
    min-height: 0 !important;
    padding: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72) !important;
    background-image: linear-gradient(#B49A58, #B49A58);
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: color 0.25s, background-size 0.3s;
}
.ft .footer-nav-links a:hover { color: #ffffff !important; background-size: 100% 1px; }

/* Formulaire de rappel */
.ft .ft-form {
    padding: 26px 24px 24px;
    border: 1px solid rgba(216, 198, 154, 0.22);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.ft .ft-form h4 { margin: 0 0 6px; font-family: 'Playfair Display', serif; font-size: 1.25rem; color: #ffffff; text-align: left; }
.ft .ft-form > p { margin: 0 0 16px; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, 0.65); text-align: left !important; }
.ft .footer-form-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; }
.ft .footer-form-grid input {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 13px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13.5px !important;
    color: #ffffff !important;
    outline: none;
}
.ft .footer-form-grid input::placeholder { color: rgba(255, 255, 255, 0.55) !important; }
.ft .footer-form-grid input:focus { border-color: #D8C69A !important; }
.ft .footer-btn-gold {
    width: 100% !important;
    margin: 4px 0 0 !important;
    padding: 14px 18px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #D8C69A 0%, #B49A58 55%, #806a33 100%) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: #0B243E !important;
    cursor: pointer;
}
.ft #footerStatus { margin: 10px 0 0; font-size: 12px; color: #D8C69A; }

/* Autorites */
.ft .ft-regul { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.ft .ft-regul p { margin: 0; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); text-align: left !important; }
.ft .ft-regul-logos { display: flex; gap: 10px; }
.ft .ft-regul-logos img { height: 34px; width: auto; padding: 8px 14px; border-radius: 12px; background: #ffffff; object-fit: contain; }

/* Bandeau dore */
.ft .ft-bar {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 26px;
    padding: 13px 24px;
    background: linear-gradient(90deg, #B49A58 0%, #C8B27A 50%, #B49A58 100%);
    font-size: 12.5px;
    font-weight: 500;
    color: #0B243E;
}
.ft .ft-bar a { display: inline !important; min-height: 0 !important; padding: 0 !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* --- Tablette ------------------------------------------------------------- */
@media (max-width: 1180px) {
    .ft .ft-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ft .ft-links { grid-column: 1 / -1; grid-row: 2; }
    .ft .ft-form { grid-column: 2; grid-row: 1; }
}
/* --- Mobile : liens en accordeon ----------------------------------------- */
@media (max-width: 768px) {
    footer.main-footer.ft { margin: 24px 8px 8px !important; border-radius: 24px; }
    .ft .ft-inner { padding: 48px 22px 28px; }
    .ft .ft-top { grid-template-columns: 1fr; gap: 34px; }
    .ft .ft-links, .ft .ft-form { grid-column: auto; grid-row: auto; }
    .ft .ft-links { grid-template-columns: 1fr; gap: 0; }
    .ft .footer-nav-links { border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; }
    .ft .footer-nav-links .gold-title { display: flex !important; justify-content: space-between; align-items: center; margin: 0 !important; padding: 16px 0 !important; cursor: pointer; }
    .ft .footer-nav-links .gold-title::after { content: "+" !important; display: block !important; font-size: 18px; font-weight: 400; color: #D8C69A; }
    .ft .footer-nav-links.accordion-open .gold-title::after { content: "–" !important; }
    .ft .footer-nav-links ul { display: none !important; padding-bottom: 16px !important; }
    .ft .footer-nav-links.accordion-open ul { display: grid !important; }
    .ft .ft-regul { flex-direction: column; align-items: flex-start; margin-top: 36px; }
    .ft .ft-bar { flex-direction: column; text-align: center; }
}
.ft .ft-bar a.footer-newsletter-link { color: #0B243E !important; opacity: 1 !important; background: none !important; }
.ft .ft-regul-logos img { height: 46px; padding: 8px 16px; }
.ft .ft-pitch { text-align-last: auto !important; }
.ft .ft-contact a { display: inline !important; min-height: 0 !important; padding: 0 !important; }
.ft .ft-contact li { align-items: baseline; }
.ft .ft-contact li::before { transform: translateY(-4px); }

/* --- Alignement : identite | plan du site sur une ligne, formulaire en bandeau horizontal --- */
@media (min-width: 1181px) {
    .ft .ft-top { grid-template-columns: minmax(0, 320px) minmax(0, 1fr) !important; gap: 72px !important; }
    .ft .ft-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
    .ft .ft-form {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
        align-items: center;
        gap: 12px 40px;
        padding: 24px 28px;
    }
    .ft .ft-form h4 { grid-column: 1; grid-row: 1; margin: 0 !important; }
    .ft .ft-form > p { grid-column: 1; grid-row: 2; margin: 0 !important; }
    .ft .ft-form form { grid-column: 2; grid-row: 1 / span 2; }
    .ft .footer-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) auto !important; align-items: center; }
    .ft .footer-btn-gold { width: auto !important; margin: 0 !important; padding: 13px 24px !important; white-space: nowrap; }
}
.ft .ft-pitch { text-align: justify !important; text-align-last: left !important; hyphens: none !important; }
.ft .footer-nav-links a { white-space: nowrap; }
@media (max-width: 1180px) { .ft .footer-nav-links a { white-space: normal; } }
@media (min-width: 1181px) {
    .ft .ft-form form, .ft .footer-form-grid { width: 100% !important; max-width: none !important; }
    .ft .footer-form-grid input { min-width: 0 !important; }
}

/* Texte de presentation : aligne a gauche (plus de trous dans les lignes) */
.ft .ft-pitch { text-align: left !important; }
/* Pied de page colle au contenu, pleine largeur (plus d'espace blanc avant) */
footer.main-footer.ft { margin: 0 !important; border-radius: 0 !important; }
@media (max-width: 768px) { footer.main-footer.ft { margin: 0 !important; border-radius: 0 !important; } }

/* Delimitation nette avec le contenu (utile apres une section sombre) */
footer.main-footer.ft { border-top: 3px solid #B49A58 !important; }
footer.main-footer.ft .ft-pitch.ft-pitch.ft-pitch { text-align: left !important; text-align-last: auto !important; }
/* Presentation : bloc justifie propre (cesure automatique pour eviter les trous) */
footer.main-footer.ft .ft-pitch.ft-pitch.ft-pitch {
    text-align: justify !important;
    text-align-last: left !important;
    -webkit-hyphens: auto !important;
    hyphens: auto !important;
    font-size: 14.5px;
    line-height: 1.7;
}

/* Logos des autorites : liens vers l'annuaire CNCGP, le registre ORIAS et le site de l'AMF */
.ft .ft-regul-logos a { display: block; line-height: 0; border-radius: 12px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.ft .ft-regul-logos a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
.ft .ft-regul-logos a:focus-visible { outline: 2px solid #D8C69A; outline-offset: 3px; }
