/* =====================================================================
   Vulcan' Affûtage — DA 2.0 : pied de page global (« colophon de forge »)
   Chargé sur TOUTES les pages (base.html.twig) : autonome, avec fallbacks
   sur chaque token --v2-* (ds-v2.css n'est présent que sur les pages new*).
   Miroir des heros v2-phero : basalte radial, hachures ember, lueur verte.
   Signature : « le fil » — l'arête affûtée qui souligne le haut du footer.
   ===================================================================== */

.vfoot {
    position: relative;
    color: var(--v2-smoke, #A7A296);
    font-family: var(--v2-font-sans, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
    background: radial-gradient(120% 150% at 12% 118%, #241f18 0%, var(--v2-forge, #15130F) 62%);
    overflow: hidden;
}
.vfoot, .vfoot * { box-sizing: border-box; }
/* styles.css (≤800px) impose footer { padding: 50px !important } — neutralisé,
   le gabarit interne (.vfoot-wrap) porte ses propres marges */
footer.vfoot { padding-left: 0 !important; padding-right: 0 !important; }

/* matière : hachures ember (comme v2-phero::after) + lueur verte en pied */
.vfoot::before {
    content: "";
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(115deg, rgba(217,98,43,0.04) 0 2px, transparent 2px 34px),
        radial-gradient(70% 65% at 0% 100%, rgba(55,180,87,0.09), transparent 62%);
    pointer-events: none;
}

/* --- Signature : le fil — arête fraîchement affûtée en haut du footer --- */
.vfoot-edge {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(45,148,70,0.55) 16%,
        var(--v2-green-glow, #37B457) 50%,
        rgba(45,148,70,0.55) 84%,
        transparent 100%);
    box-shadow: 0 0 14px rgba(55,180,87,0.35);
}

.vfoot-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--v2-maxw, 1240px);
    margin-inline: auto;
    padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 56px) 0;
}

/* ============================ Grille ============================ */
.vfoot-grid {
    display: grid;
    grid-template-columns: minmax(250px, 1.2fr) repeat(3, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

/* ============================ Marque ============================ */
.vfoot-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    width: fit-content;
    border-radius: 6px;
}
.vfoot-logo img {
    display: block;
    width: 46px; height: 46px;
    object-fit: cover;
    border-radius: 8px;
}
.vfoot-name {
    font-family: var(--v2-font-display, "Fraunces", "Iowan Old Style", Georgia, serif);
    font-weight: 600;
    font-size: clamp(1.4rem, 2vw, 1.7rem);
    letter-spacing: -0.01em;
    line-height: 1.05;
    color: var(--v2-paper, #EDEBE5);
    font-optical-sizing: auto;
}
.vfoot-name em {
    font-style: italic;
    color: var(--v2-green-glow, #37B457);
}
.vfoot-about {
    margin: 18px 0 0;
    font-size: 0.83rem;
    line-height: 1.65;
    max-width: 46ch;
    color: var(--v2-smoke, #A7A296);
}

/* réseaux sociaux : pastilles rondes, hover braise → paper */
.vfoot-social { display: flex; gap: 10px; margin-top: 22px; }
.vfoot-soc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(237,235,229,0.16);
    color: var(--v2-smoke, #A7A296);
    text-decoration: none;
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.vfoot-soc svg { width: 17px; height: 17px; display: block; }
.vfoot-soc:hover {
    color: var(--v2-paper, #EDEBE5);
    border-color: var(--v2-green-glow, #37B457);
    transform: translateY(-2px);
}

/* ============================ Colonnes ============================ */
/* titre de colonne = eyebrow mono à tick ember (écho des heros sombres) */
.vfoot-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-family: var(--v2-font-mono, "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--v2-paper, #EDEBE5);
}
.vfoot-title::before {
    content: "";
    width: 18px; height: 2px;
    background: var(--v2-ember, #D9622B);
    flex: none;
}

.vfoot-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.vfoot-link {
    display: inline-block;
    width: fit-content;
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--v2-smoke, #A7A296);
    text-decoration: none;
    transition: color 0.2s ease;
}
.vfoot-link:hover {
    color: var(--v2-paper, #EDEBE5);
    text-decoration: underline;
    text-decoration-color: var(--v2-green-glow, #37B457);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}
/* coordonnées chiffrées (tél / mail) en mono, comme les données d'atelier */
.vfoot-link--mono {
    font-family: var(--v2-font-mono, "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace);
    font-size: 0.84rem;
}

/* ============================ Barre basse ============================ */
.vfoot-bottom {
    margin-top: clamp(40px, 5vw, 60px);
    padding: 20px 0 26px;
    border-top: 1px solid rgba(237,235,229,0.10);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.vfoot-copy {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(167,162,150,0.85);
}
/* tampon d'atelier : marque mono, point braise */
.vfoot-stamp {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--v2-font-mono, "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--v2-smoke, #A7A296);
}
.vfoot-stamp::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--v2-ember, #D9622B);
    flex: none;
}

/* ============================ États focus ============================ */
.vfoot a:focus-visible {
    outline: 2px solid var(--v2-green, #2D9446);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ============================ Responsive ============================ */
@media (max-width: 1000px) {
    .vfoot-grid { grid-template-columns: 1fr 1fr; }
    .vfoot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .vfoot-grid { grid-template-columns: 1fr; gap: 34px; }
    .vfoot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .vfoot-soc, .vfoot-link { transition: none; }
    .vfoot-soc:hover { transform: none; }
}
