/* ============================================================
   NosJardinsEco Theme – footer.css
   Footer premium : vague verte, colonnes, or brillant,
   icônes sociales blanc brillant, mobile-first
   Version consolidée — sans règles dupliquées
   ============================================================ */

/* ----------------------------------------------------------
   1. Vague de transition
   ---------------------------------------------------------- */
.footer-wave {
    display: block;
    width: 100%;
    line-height: 0;
    overflow: hidden;
    background-color: var(--color-bg);
    margin-bottom: -2px;
}
.footer-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ----------------------------------------------------------
   2. Footer principal
   ---------------------------------------------------------- */
.site-footer {
    background-color: var(--color-green-deep);
    color: rgba(255, 255, 255, 0.80);
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ----------------------------------------------------------
   3. Footer body – grille colonnes
   ---------------------------------------------------------- */
.footer-body {
    padding-block: var(--spacing-2xl);
}

/* Le .container gère déjà max-width + padding horizontal */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl) var(--spacing-lg);
    }
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl) var(--spacing-2xl);
        align-items: start;
    }
}

@media (min-width: 1200px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(280px, 1.3fr);
        gap: var(--spacing-xl) clamp(1.5rem, 2.4vw, 2.75rem);
        align-items: start;
    }
}

/* ----------------------------------------------------------
   4. Colonne Marque
   ---------------------------------------------------------- */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    min-width: 0;
}

.footer-brand__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.footer-brand__logo:hover { opacity: 0.85; }

.footer-brand__logo-img {
    width: auto;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-brand__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-brand__logo-name {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #E4C97A 0%, #C8A75A 50%, #E4C97A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand__logo-tagline {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.50);
    margin-top: 2px;
}

.footer-brand__description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    max-width: 280px;
}

/* Icônes réseaux sociaux */
.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: var(--spacing-xs);
    width: 100%;
}

.footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease,
                transform 0.15s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}
.footer-social__link:hover {
    background-color: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.30);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
}
.footer-social__link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: none;
    display: block;
}
.footer-social__link svg.icon-fill {
    fill: rgba(255, 255, 255, 0.92);
}
.footer-social__link svg.icon-stroke {
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ----------------------------------------------------------
   5. Colonnes génériques (Services, Contact)
   ---------------------------------------------------------- */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.footer-col__title {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer-col__list li a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 2px 0;
    transition: color 0.15s ease, padding-left 0.15s ease;
}
.footer-col__list li a:hover {
    color: rgba(255, 255, 255, 0.95);
    padding-left: 4px;
}
.footer-col__list li a::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #C8A75A;
    opacity: 0.6;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}
.footer-col__list li a:hover::before { opacity: 1; }

/* ----------------------------------------------------------
   6. Colonne Contact (infos)
   ---------------------------------------------------------- */
.footer-col__contact {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-col__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-col__contact-item > svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.8;
    fill: none;
    stroke: rgba(255, 255, 255, 0.82);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-col__contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.7;
}
.footer-col__contact-icon svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.80);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-col__contact-item a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.15s ease;
}
.footer-col__contact-item a:hover { color: rgba(255, 255, 255, 0.95); }

/* ----------------------------------------------------------
   7. Colonne Newsletter
   ---------------------------------------------------------- */
.footer-newsletter {
    min-width: 0;
    padding: 1.1rem 1.1rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: calc(var(--radius-md) + 2px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    align-self: start;
}

@media (min-width: 1200px) {
    .footer-newsletter {
        padding-left: 1.35rem;
        margin-left: clamp(0rem, 0.4vw, 0.35rem);
    }
}

.footer-newsletter__title {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.02em;
}

.footer-newsletter__text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.60);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.footer-newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.footer-newsletter__input {
    width: 100%;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.875rem;
    min-height: 44px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.footer-newsletter__input::placeholder { color: rgba(255, 255, 255, 0.40); }
.footer-newsletter__input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
}

.footer-newsletter__btn {
    width: 100%;
    padding: 0.65rem 1.25rem;
    background: #C8A75A;
    color: #1F6F2B;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    min-height: 44px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}
.footer-newsletter__btn:hover {
    background: #E4C97A;
    transform: translateY(-1px);
}

.footer-newsletter__legal {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.5;
    margin-top: 4px;
}

/* ----------------------------------------------------------
   8. Séparateur
   ---------------------------------------------------------- */
.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0;
}

/* ----------------------------------------------------------
   9. Footer bas
   ---------------------------------------------------------- */
.footer-bottom {
    padding-block: var(--spacing-md) var(--spacing-lg);
}

.footer-bottom__inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: var(--spacing-sm);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom__inner {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        text-align: left;
        column-gap: var(--spacing-lg);
    }
}

.footer-bottom__copy {
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #E4C97A 0%, #C8A75A 60%, #E4C97A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-bottom__legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    justify-content: center;
}
@media (min-width: 768px) {
    .footer-bottom__legal {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom__credit {
        justify-self: end;
        text-align: right;
    }
}

.footer-bottom__legal a {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.15s ease;
    white-space: nowrap;
}
.footer-bottom__legal a:hover { color: rgba(255, 255, 255, 0.80); }

.footer-bottom__legal span {
    color: rgba(255, 255, 255, 0.20);
    font-size: 0.75rem;
}

.footer-bottom__credit {
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #E4C97A 0%, #C8A75A 60%, #E4C97A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.footer-bottom__credit:hover { opacity: 0.80; }

/* ----------------------------------------------------------
   10. Responsive mobile
   ---------------------------------------------------------- */
@media (max-width: 599px) {
    .footer-body {
        padding-block: var(--spacing-xl);
    }
    .footer-grid {
        gap: var(--spacing-xl);
    }
    .footer-social { gap: 8px; }
    .footer-social__link { width: 40px; min-width: 40px; height: 40px; }
    .footer-newsletter {
        padding: 1rem;
    }
    .footer-col__title,
    .footer-newsletter__title { font-size: 0.9rem; }
}
