/* ========================================================================
   COFT — Footer custom (global)
   ------------------------------------------------------------------------
   1) Logo officiel COFT.
   2) Card pleine largeur : bg abstract-shape-2 pivoté 90° + blur, texte/CTA
      à gauche, liens + socials à droite, gros "C" décoratif à droite.
   Bg footer = transparent (= fond du site : blanc / maillage selon la page).
   ======================================================================== */
.coft-footer {
    --cf-fg:       #100f12;
    --cf-muted:    #565450;
    --cf-sage-dk:  #7b8e77;
    --cf-sage-md:  #93ac8c;
    --cf-font:     "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
    position: relative;
    z-index: 1;
    background: transparent;
    font-family: var(--cf-font);
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 5rem) clamp(2rem, 4vw, 3.5rem);
    overflow: hidden;
}
.coft-footer * { box-sizing: border-box; }
.coft-footer a { text-decoration: none; }
.coft-footer-inner { position: relative; max-width: min(1680px, 96vw); margin: 0 auto; }

/* ── Partie 1 : logo ────────────────────────────────────────────── */
.coft-footer-top { margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }
.coft-footer-logo-link { display: inline-flex; }
.coft-footer-logo { height: clamp(74px, 8.5vw, 130px); width: auto; display: block; }

/* ── Partie 2 : card ────────────────────────────────────────────── */
.coft-footer-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #2e3a2c;                 /* base vert : comble les bords */
    isolation: isolate;
}
.coft-footer-card-bg {
    position: absolute;
    /* inset:0 + border-radius:inherit → coins arrondis comme la card. Le
       filter:blur crée un contexte qui échappe au overflow:hidden du parent
       (iOS Safari) ; on arrondit donc l'élément lui-même. Le débord -10px est
       abandonné car, non clippé, il laissait un halo/coins carrés autour. */
    inset: 0;
    border-radius: inherit;
    background: url("https://coft.lu/wp-content/uploads/2026/03/abstract-shape-2.png") center / cover no-repeat;
    filter: blur(6px);
    z-index: 0;
}
.coft-footer-card-overlay {
    position: absolute; inset: 0; z-index: 1;
    /* border-radius:inherit → coins arrondis comme la card. Sans ça, le
       backdrop-filter crée un contexte qui échappe au overflow:hidden du
       parent → coins carrés qui dépassent de la card. */
    border-radius: inherit;
    background: linear-gradient(105deg, rgba(18, 26, 16, 0.66) 0%, rgba(18, 26, 16, 0.30) 55%, rgba(18, 26, 16, 0.50) 100%);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.coft-footer-card-inner {
    position: relative; z-index: 3;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: clamp(2rem, 4vw, 3.6rem);
    color: #ffffff;
}
.coft-footer-left {
    display: flex; flex-direction: column; justify-content: space-between;
    gap: clamp(1.6rem, 3vw, 2.6rem);
}
.coft-footer-headline {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2.6rem);
    font-weight: 300;
    line-height: 1.12;
    color: #ffffff;
}
.coft-footer-cta {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    background: var(--cf-sage-md);
    color: #ffffff;
    font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em;
    transition: background 0.35s ease;
}
.coft-footer-cta svg { width: 18px; height: 18px; }
.coft-footer-cta:hover { background: var(--cf-sage-dk); }

.coft-footer-right {
    display: flex; justify-content: flex-end; align-items: flex-end;
    gap: clamp(2rem, 6vw, 6rem);
}
.coft-footer-links, .coft-footer-socials { list-style: none; margin: 0; padding: 0; }
.coft-footer-links { display: flex; flex-direction: column; gap: clamp(0.7rem, 1.4vw, 1rem); }
.coft-footer-links a {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 600;
    transition: color 0.3s ease, opacity 0.3s ease;
}
.coft-footer-links a:hover { color: #ffffff; opacity: 0.8; }
.coft-footer-socials { display: flex; gap: 0.8rem; }
.coft-footer-socials a {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #ffffff;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.coft-footer-socials svg { width: 18px; height: 18px; }
.coft-footer-socials a:hover { background: #ffffff; color: #2e3a2c; border-color: #ffffff; }

/* ── Barre légale — DANS la card (sur le bg vert), texte blanc ───── */
.coft-footer-base {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.8rem, 2vw, 1.6rem);
    margin: 0 clamp(2rem, 4vw, 3.6rem);
    padding: clamp(1rem, 2vw, 1.4rem) 0 clamp(1.6rem, 3vw, 2.4rem);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.78rem, 0.95vw, 0.9rem);
    line-height: 1.4;
}
.coft-footer-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(0.55rem, 1.3vw, 0.9rem);
}
.coft-footer-sep { opacity: 0.5; }
.coft-footer-ecomlux { display: inline-flex; align-items: center; }
.coft-footer-ecomlux img {
    height: clamp(15px, 1.5vw, 20px);
    width: auto;
    display: block;
    filter: brightness(0) invert(1);   /* SVG forcé en blanc */
    opacity: 0.95;
    transition: opacity 0.3s ease;
}
.coft-footer-ecomlux:hover img { opacity: 1; }
.coft-footer-legal-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 2.5vw, 2rem);
}
.coft-footer-legal-links a {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.78rem, 0.95vw, 0.9rem);
    transition: color 0.3s ease;
}
.coft-footer-legal-links a:hover { color: #ffffff; }

/* ── C décoratif : grand, à droite, ancré en haut (jamais coupé en haut) ── */
.coft-footer-c {
    position: absolute;
    top: clamp(1.5rem, 4vw, 3rem);
    right: clamp(-50px, -2.5vw, -10px);
    width: clamp(360px, 44vw, 700px);
    height: clamp(360px, 44vw, 700px);
    z-index: 4;
    opacity: 0.12;
    pointer-events: none;
}
.coft-footer-c svg { width: 100%; height: 100%; display: block; }
.coft-footer-c .hv3-c-seg { fill: #ffffff; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 820px) {
    .coft-footer-card-inner { grid-template-columns: 1fr; }
    .coft-footer-right { justify-content: flex-start; align-items: flex-start; flex-wrap: wrap; gap: 2rem; }
    .coft-footer-c { width: 240px; height: 240px; opacity: 0.1; }
}
@media (max-width: 480px) {
    .coft-footer-right { flex-direction: column; gap: 1.4rem; }
    .coft-footer-headline { font-size: clamp(1.4rem, 7vw, 1.9rem); }
    .coft-footer-cta { width: 100%; justify-content: center; }
    .coft-footer-base { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
