/* ============================================================
   FOOTER — composant global (pages publiques ET dashboard admin)
   Chargé par les deux bundles (app.js et app-admin.js).

   Organisation :
     1. .ftr-top         → colonnes d'informations
     2. .ftr-connect-bar → newsletter (pilule) + « Suivez-nous »
     3. .ftr-bottom-bar  → copyright + liens légaux (séparés d'un trait)
   ============================================================ */
.site-ftr {
    --ftr-bg: #0a1e44;            /* couleur exacte du footer (ajustable) */
    background: var(--ftr-bg);
    color: rgba(255, 255, 255, 0.72);
}
.site-ftr-inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: clamp(40px, 5vw, 66px) clamp(20px, 4vw, 56px) 30px;
}

/* Titres de section dorés (Navigation, Compte, Adresse, …) */
.ftr-title {
    color: var(--app-yellow-color);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 20px;
    padding: 0;
    border: none;
}

/* ============================================================
   1. Colonnes d'informations
   ============================================================ */
.ftr-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 36px 44px;
    padding-bottom: 44px;
}
.ftr-col { flex: 0 0 auto; min-width: 128px; }
.ftr-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ftr-col ul li a {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.ftr-col ul li a:hover { color: #fff; }

/* Adresse */
.ftr-col-address { flex: 0 1 290px; min-width: 240px; }
.ftr-address-list li { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.82); }
.ftr-address-list li svg {
    flex: 0 0 auto;
    background: var(--app-yellow-color);
    color: var(--ftr-bg);
    border-radius: 50%;
    padding: 7px;
    box-sizing: content-box;
}

/* Moyens de paiement + plateformes */
.ftr-payments { flex: 0 1 auto; }
.ftr-pay-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 9px;
    max-width: 348px;
}
.ftr-pay {
    height: 36px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.ftr-pay svg { max-width: 100%; max-height: 22px; }

.ftr-platforms { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.ftr-platforms-label { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }
.ftr-platform-icons { display: flex; gap: 16px; }
.ftr-platform-icons a { color: var(--app-yellow-color); display: inline-flex; transition: transform 0.2s ease; }
.ftr-platform-icons a:hover { transform: translateY(-2px); }

/* ============================================================
   2. Bande newsletter + réseaux sociaux
   ============================================================ */
.ftr-connect-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px 40px;
    padding: 8px 0 34px;
}

/* Newsletter — pilule avec bouton d'envoi rond */
.ftr-news {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(380px, 100%);
    padding: 6px 6px 6px 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: transparent;
    transition: border-color 0.2s ease;
}
.ftr-news:focus-within { border-color: rgba(255, 255, 255, 0.75); }
.ftr-news input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    color: #fff;
    font-size: 0.95rem;
    padding: 0;
}
.ftr-news input::placeholder { color: rgba(255, 255, 255, 0.72); }
.ftr-news button {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--app-yellow-color);
    color: var(--ftr-bg);
    display: grid;
    place-items: center;
    cursor: pointer;
    line-height: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.ftr-news button:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* Suivez-nous — icônes simples */
.ftr-follow { text-align: right; }
.ftr-follow-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 16px;
}
.ftr-socials { display: flex; flex-wrap: wrap; gap: 22px; justify-content: flex-end; }
.ftr-socials a {
    color: #fff;
    display: inline-flex;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}
.ftr-socials a:hover { color: var(--app-yellow-color); transform: translateY(-2px); }

/* ============================================================
   3. Barre du bas : copyright + liens légaux
   ============================================================ */
.ftr-bottom-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.ftr-copy-line { margin: 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); }
.ftr-copy-line a { color: var(--app-yellow-color); text-decoration: none; }
.ftr-copy-line a:hover { text-decoration: underline; }

.ftr-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.ftr-legal li { display: inline-flex; align-items: center; }
.ftr-legal li:not(:last-child)::after {
    content: '|';
    margin: 0 12px;
    color: rgba(255, 255, 255, 0.28);
}
.ftr-legal li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.ftr-legal li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
    .ftr-col-address { flex-basis: 100%; }
}
@media (max-width: 767px) {
    .ftr-connect-bar { flex-direction: column; align-items: stretch; }
    .ftr-news { width: 100%; }
    .ftr-follow { text-align: left; }
    .ftr-socials { justify-content: flex-start; }
    .ftr-bottom-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
    .ftr-pay-grid { grid-template-columns: repeat(4, 1fr); max-width: 240px; }
    .ftr-socials { gap: 18px; }
}
