/*
Theme Name: Ekin Fries
Theme URI: https://ekinfries.com
Description: Thème du site ekinfries.com, porté depuis la maquette validée par le client le 31 août 2026. La charte vit dans styles.css et pages.css, repris tels quels du prototype : ne pas les modifier ici, les resynchroniser depuis le prototype.
Author: Serap Turk
Template: hello-elementor
Version: 3.13.2
Text Domain: ekin-fries
*/

/* ==========================================================================
   Pont WordPress + harmonisation avec la charte du groupe Ekin
   --------------------------------------------------------------------------
   styles.css et pages.css restent ceux du prototype. Cette feuille, chargée
   après, fait trois choses :
     1. elle raccorde le balisage WordPress au vocabulaire du prototype ;
     2. elle remet les polices du groupe (GFS Didot pour les titres,
        Montserrat pour le texte) à la place d'Inter ;
     3. elle porte l'en-tête, le pied de page et le menu du groupe, repris de
        la version précédente du thème.

   Les classes de l'en-tête et du pied sont préfixées « ekf- » : Hello
   Elementor définit lui aussi « site-header » et « site-footer », et les
   contraint en largeur — c'est ce qui faisait flotter un bandeau au milieu
   de la photo d'accueil.
   ========================================================================== */

:root {
  --font-titre: "GFS Didot", Georgia, "Times New Roman", serif;
  --font-texte: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ekf-entete: 86px;
  --ekf-trait: #ECE4D6;
}

/* --------------------------------------------------------------------------
   1. Typographie — les trois polices du groupe
   -------------------------------------------------------------------------- */

body { font-family: var(--font-texte); }

/* Les grands titres passent en Didot, sans capitales : c'est ce qui
   rapproche le site d'ekin.fr et de lamaisonekin.fr. Bebas Neue reste sur
   les menus, les boutons, les étiquettes et les noms de produits. */
.hero h1,
.page-hero h1,
.section-title,
.cta-inner h2,
.block-title,
.form-card h2,
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  font-family: var(--font-titre);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.1;
}

.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }

.hero-sub, .section-lead { font-family: var(--font-texte); }

/* --------------------------------------------------------------------------
   2. En-tête
   -------------------------------------------------------------------------- */

.ekf-header {
  position: sticky; top: 0; z-index: 60;
  width: 100%;
  background: var(--cream);              /* même fond que le corps : plus de rupture */
  border-bottom: 1px solid var(--ekf-trait);
}
.ekf-header__in {
  max-width: 1320px; margin: 0 auto; padding: 0 28px;
  min-height: var(--ekf-entete);
  display: flex; align-items: center; gap: 24px;
}

.ekf-logo { flex: 0 0 auto; display: flex; align-items: center; }
.ekf-logo img { height: 46px; width: auto; display: block; }

.ekf-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.ekf-nav ul { list-style: none; display: flex; gap: 32px; align-items: center; margin: 0; padding: 0; }
.ekf-nav li { margin: 0; }
.ekf-nav a {
  font-family: var(--font-head);         /* Bebas Neue */
  font-size: 1.3rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); padding: 6px 0 4px; display: block;
  border-bottom: 2px solid transparent;
}
.ekf-nav a:hover { color: var(--red); }
.ekf-nav .current-menu-item > a,
.ekf-nav .current_page_item > a { border-bottom-color: var(--gold); }

/* L'élément marqué « nav-cta » devient le bouton rouge de la maquette. */
.ekf-nav .nav-cta > a, .ekf-nav .ekf-cta > a {
  background: var(--red); color: var(--white);
  padding: 11px 22px 9px; border-radius: 2px; border-bottom: 0;
}
.ekf-nav .nav-cta > a:hover, .ekf-nav .ekf-cta > a:hover { background: var(--red-deep); color: var(--white); }

.ekf-header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }
.ekf-langues { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.ekf-langues a {
  font-family: var(--font-head); font-size: 1rem; letter-spacing: .06em;
  text-transform: uppercase; color: #9A968D;
}
.ekf-langues .current-lang a, .ekf-langues a:hover { color: var(--ink); }

/* Burger */
.ekf-burger { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; padding: 10px; margin-left: auto; }
.ekf-burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }
.ekf-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ekf-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ekf-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  .ekf-burger { display: block; order: 3; }
  .ekf-header__in { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .ekf-header__actions { order: 2; margin-left: auto; }
  .ekf-nav { order: 4; flex: 1 0 100%; display: none; }
  .ekf-nav.is-open { display: block; }
  .ekf-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 4px; border-top: 1px solid var(--ekf-trait); }
  .ekf-nav li + li { border-top: 1px solid var(--ekf-trait); }
  .ekf-nav a { padding: 13px 0; border-bottom: 0; }
  .ekf-nav .nav-cta > a { text-align: center; margin: 10px 0 4px; }
}

/* La barre d'admin décale le haut de page. */
body.admin-bar .ekf-header { top: 32px; }
body.admin-bar .filters { top: calc(32px + var(--ekf-entete)); }
@media screen and (max-width: 782px) {
  body.admin-bar .ekf-header { top: 46px; }
  body.admin-bar .filters { top: 46px; }
}
.filters { top: var(--ekf-entete); }

/* --------------------------------------------------------------------------
   3. Menu du groupe — posé en haut à gauche de la bande d'image, comme ekin.fr
   -------------------------------------------------------------------------- */

.ekf-groupe { display: none; }
@media (min-width: 1100px) {
  .hero, .page-hero { position: relative; }
  .ekf-groupe {
    display: block; position: absolute; top: 30px; left: 32px; z-index: 12;
    text-align: left; max-width: 200px;
  }
  .ekf-groupe__titre {
    font-family: var(--font-head); font-size: .82rem; letter-spacing: .18em;
    text-transform: uppercase; color: var(--gold); margin: 0 0 8px;
  }
  .ekf-groupe ul { list-style: none; margin: 0; padding: 0; }
  .ekf-groupe li + li { margin-top: 3px; }
  .ekf-groupe a {
    font-family: var(--font-head); font-size: 1.12rem; letter-spacing: .03em;
    color: rgba(255,255,255,.82); display: block; line-height: 1.35;
  }
  .ekf-groupe a:hover { color: var(--white); }
  .ekf-groupe .ekf-actuel a { color: var(--gold); cursor: default; }
}

/* --------------------------------------------------------------------------
   4. Pied de page
   -------------------------------------------------------------------------- */

.ekf-footer { background: var(--ink); color: rgba(255,255,255,.68); margin-top: 0; }
.ekf-footer a { color: rgba(255,255,255,.68); }
.ekf-footer a:hover { color: var(--gold); }
.ekf-footer__in {
  max-width: 1180px; margin: 0 auto; padding: 66px 28px 50px;
  display: grid; gap: 46px; grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
}
.ekf-footer__marque img { height: 54px; width: auto; margin-bottom: 20px; }
.ekf-footer__marque p { font-size: .92rem; max-width: 300px; margin: 0 0 12px; }
.ekf-footer__reseaux { display: flex; gap: 18px; }
.ekf-footer__reseaux a { text-decoration: underline; }
.ekf-footer h2 {
  font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--white); margin: 0 0 16px;
}
.ekf-footer ul { list-style: none; margin: 0; padding: 0; }
.ekf-footer li { font-size: .92rem; margin-bottom: 9px; }
.ekf-footer__devis a { color: var(--gold); font-weight: 600; }
.ekf-footer__bas { border-top: 1px solid rgba(255,255,255,.12); }
.ekf-footer__in--bas {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap; padding: 20px 28px; font-size: .8rem;
}
.ekf-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.ekf-footer__legal li { margin: 0; font-size: .8rem; }
.ekf-footer__legal a { text-decoration: underline; }

@media (max-width: 900px) {
  .ekf-footer__in { grid-template-columns: 1fr 1fr; gap: 34px; padding-top: 48px; }
}
@media (max-width: 540px) {
  .ekf-footer__in { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   4 bis. Bandes de tête — même hauteur partout, en-tête fondu par-dessus
   --------------------------------------------------------------------------
   Les gabarits intérieurs avaient une bande deux fois moins haute que celle de
   l'accueil : bonne largeur, mais l'image n'avait pas la place d'exister. Une
   hauteur commune, déclarée une fois, les aligne toutes — et suit la fenêtre
   plutôt que le contenu, pour ne pas écraser sur un petit écran.

   L'en-tête passe au-dessus de cette bande, sans fond, en blanc. Il n'occupe
   donc plus de place dans le flux : c'est la bande qui réserve la hauteur, par
   son padding haut.
   -------------------------------------------------------------------------- */

:root { --ekf-bande: clamp(460px, 72vh, 720px); }

.hero,
.page-hero,
.article-hero {
  min-height: var(--ekf-bande);
  display: flex;
  align-items: center;
  padding-top: calc(var(--ekf-entete) + 36px);
}
.hero > .container,
.page-hero > .container,
.article-hero > .container { width: 100%; }

/* --- Bande sobre, sans photo ---
   Pour les pages qui n'ont rien à illustrer : mentions légales, contact,
   nos valeurs, 404. Une photo de catalogue y était décorative et, pire,
   répétée d'une page à l'autre. Une bande travaillée sans image se lit comme
   un parti pris, pas comme un oubli — et elle laisse la place au titre.
   Le filet doré rappelle la charte sans rien raconter de faux. */
.page-hero--uni {
  /* Plus basse que les bandes en photo : celles-ci ont une image à donner à
     voir, celle-ci n'a qu'un titre. À la hauteur de l'accueil, elle laissait
     300 px de noir vide sous le texte. */
  min-height: clamp(320px, 44vh, 440px);
  padding: calc(var(--ekf-entete) + 34px) 0 54px;
  background:
    radial-gradient(120% 95% at 82% 8%,  rgba(240,180,24,.17) 0%, rgba(240,180,24,0) 58%),
    radial-gradient(95% 85% at 8% 100%, rgba(226,0,26,.12)   0%, rgba(226,0,26,0)   62%),
    var(--ink);
}
.page-hero--uni .container::before {
  content: ""; display: block;
  width: 56px; height: 3px; margin: 0 auto 24px;
  background: var(--gold);
}

/* --- En-tête fondu sur l'image --- */

body.ekf-sur-image .ekf-header {
  position: fixed; top: 0; left: 0; right: 0;
  border-bottom-color: transparent;
  /* Un dégradé plutôt qu'un aplat : le texte garde son contraste en haut,
     et la photo n'est pas barrée d'une bande. */
  background: linear-gradient(180deg,
              rgba(17,17,17,.58) 0%,
              rgba(17,17,17,.28) 58%,
              rgba(17,17,17,0) 100%);
  transition: background-color .25s ease, box-shadow .25s ease;
}
body.ekf-sur-image .ekf-header a,
body.ekf-sur-image .ekf-nav a { color: var(--white); }
body.ekf-sur-image .ekf-nav a:hover { color: var(--gold); }
body.ekf-sur-image .ekf-nav .current-menu-item > a,
body.ekf-sur-image .ekf-nav .current_page_item > a { border-bottom-color: var(--gold); }
body.ekf-sur-image .ekf-langues a { color: rgba(255,255,255,.65); }
body.ekf-sur-image .ekf-langues .current-lang a,
body.ekf-sur-image .ekf-langues a:hover { color: var(--white); }
body.ekf-sur-image .ekf-burger span { background: var(--white); }
/* Le bouton rouge garde son fond : c'est lui qui appelle l'action. */
body.ekf-sur-image .ekf-nav .nav-cta > a,
body.ekf-sur-image .ekf-nav .ekf-cta > a { color: var(--white); }

/* Deux logos superposés, un clair un sombre : changer le fichier au défilement
   provoquerait un clignotement le temps du téléchargement. */
.ekf-logo img { transition: opacity .25s ease; }
.ekf-logo .ekf-logo--clair { display: none; }
body.ekf-sur-image .ekf-logo .ekf-logo--clair { display: block; }
body.ekf-sur-image .ekf-logo .ekf-logo--sombre { display: none; }

/* Une fois la bande dépassée, l'en-tête redevient opaque : sans cela le menu
   se poserait sur du texte noir en étant blanc. */
body.ekf-sur-image .ekf-header.est-defile {
  background: var(--cream);
  border-bottom-color: var(--ekf-trait);
  box-shadow: 0 2px 18px rgba(17,17,17,.08);
}
body.ekf-sur-image .ekf-header.est-defile a,
body.ekf-sur-image .ekf-header.est-defile .ekf-nav a { color: var(--ink); }
body.ekf-sur-image .ekf-header.est-defile .ekf-nav a:hover { color: var(--red); }
body.ekf-sur-image .ekf-header.est-defile .ekf-langues a { color: #9A968D; }
body.ekf-sur-image .ekf-header.est-defile .ekf-burger span { background: var(--ink); }
body.ekf-sur-image .ekf-header.est-defile .ekf-nav .nav-cta > a,
body.ekf-sur-image .ekf-header.est-defile .ekf-nav .ekf-cta > a { color: var(--white); }
body.ekf-sur-image .ekf-header.est-defile .ekf-logo--clair { display: none; }
body.ekf-sur-image .ekf-header.est-defile .ekf-logo--sombre { display: block; }

/* Menu déroulé sur mobile : il déborde de la zone dégradée, il lui faut un
   fond à lui, sinon les liens se perdent dans la photo. */
@media (max-width: 1023px) {
  body.ekf-sur-image .ekf-header.est-ouvert { background: var(--ink); }
  body.ekf-sur-image .ekf-header.est-ouvert .ekf-nav ul { border-top-color: rgba(255,255,255,.18); }
  body.ekf-sur-image .ekf-header.est-ouvert .ekf-nav li + li { border-top-color: rgba(255,255,255,.18); }
}

/* Le menu du groupe descend sous l'en-tête désormais superposé. */
@media (min-width: 1100px) {
  .ekf-groupe { top: calc(var(--ekf-entete) + 26px); }
}

/* --------------------------------------------------------------------------
   4 bis 2. L'encart « À la une » dans la bande d'accueil
   --------------------------------------------------------------------------
   L'actualité visible dès l'arrivée, sans défiler. Posé en bas à droite de la
   photo en grand écran ; en petit écran il reprend sa place dans le flux, sous
   les boutons, faute de coin libre.

   Il entre en fondu après un court délai : assez pour que l'œil ait lu le
   titre de la bande, assez peu pour rester dans la première vue.
   -------------------------------------------------------------------------- */

.ekf-flash { text-align: left; }

.ekf-flash__lien {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px 12px 12px;
  background: rgba(17, 17, 17, .58);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  color: var(--white);
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.ekf-flash__lien:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(17, 17, 17, .74);
  color: var(--white);
}

.ekf-flash__vignette {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 10px;
  background: #222 center / cover no-repeat;
}
.ekf-flash__texte { display: block; min-width: 0; }

.ekf-flash__etiquette {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: .92rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 3px;
}
.ekf-flash__pastille {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  animation: ekf-pulse 2.4s ease-in-out infinite;
}

.ekf-flash__titre {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600; font-size: .98rem; line-height: 1.3;
}
.ekf-flash__action {
  display: block; margin-top: 5px;
  font-size: .8rem; letter-spacing: .04em; color: rgba(255, 255, 255, .66);
}
.ekf-flash__lien:hover .ekf-flash__action { color: var(--gold); }

@media (min-width: 1100px) {
  .ekf-flash {
    position: absolute; right: 32px; bottom: 34px; z-index: 12;
    width: 360px;
    animation: ekf-flash-entree .55s ease .7s both;
  }
}
@media (max-width: 1099px) {
  .ekf-flash { margin: 30px auto 0; max-width: 480px; }
}

@keyframes ekf-flash-entree {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ekf-flash { animation: none; }
  .ekf-flash__lien { transition: none; }
  .ekf-flash__pastille { animation: none; }
}

/* --------------------------------------------------------------------------
   4 quater. « Nos valeurs » — la respiration claire de l'accueil
   --------------------------------------------------------------------------
   Le bloc portait le même fond que le bandeau défilant juste au-dessus : deux
   surfaces noires accolées, donc une seule à l'œil. Le filet doré de 14 px à
   gauche ne suffisait pas à les séparer.

   Il passe en clair, sur un voile doré de la charte. Trois effets d'un coup :
   il se détache du noir qui le précède, il se distingue du crème de « Nos
   engagements » qui le suit, et il donne à la page sa première respiration
   après deux bandes sombres.

   Le texte est recentré : il occupait la moitié gauche, l'autre restait vide.
   -------------------------------------------------------------------------- */

.values {
  background: linear-gradient(180deg, rgba(240,180,24,.17) 0%, rgba(240,180,24,.06) 100%);
  color: var(--ink);
  border-left: 0;
  padding: 96px 0 92px;
  text-align: center;
}
.values .container::before {
  content: ""; display: block;
  width: 56px; height: 3px; margin: 0 auto 26px;
  background: var(--gold);
}
.values .block-title { color: var(--ink); }
.values .accent { color: var(--red); }
.values .values-lead {
  color: #55514A;
  max-width: 700px; margin: 0 auto;
  font-size: 1.12rem; line-height: 1.7;
}

/* Les quatre engagements, repris ici depuis l'ancienne section « Nos
   engagements ». En deux colonnes : quatre lignes pleine largeur laissaient
   des mesures trop longues et une bande interminable. */
.values .eng-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 48px;
  max-width: 960px;
  margin: 56px auto 0;
  text-align: left;
}
.values .eng-item {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  align-items: start;
  padding-top: 20px;
  border-top: 1px solid rgba(17, 17, 17, .12);
}
.values .eng-num { color: var(--red); line-height: .9; }
.values .eng-item h3 { color: var(--ink); margin: 0 0 6px; }
.values .eng-item p { color: #5B5750; font-size: .97rem; line-height: 1.6; margin: 0; }

@media (max-width: 860px) {
  .values .eng-list { grid-template-columns: 1fr; gap: 26px; margin-top: 42px; }
}

/* --------------------------------------------------------------------------
   4 ter. « À la une » — l'actualité mise en avant
   --------------------------------------------------------------------------
   Posée entre le bandeau défilant et la bande « Nos valeurs », toutes deux
   sombres. En clair, elle tranche : c'est ce qui la met réellement en avant,
   plus sûrement qu'une mise en forme tapageuse. Et un chapô se lit mieux en
   noir sur clair qu'en blanc sur noir.

   La variante sombre reste disponible : ajouter « ekf-une--sombre » à la
   section dans partials/une-actualite.php.

   Les vues sont empilées dans une même cellule de grille et se croisent en
   fondu : la hauteur est celle de la plus haute, le bloc ne saute donc pas
   d'un article à l'autre.
   -------------------------------------------------------------------------- */

.ekf-une {
  position: relative; z-index: 10;
  background: var(--cream);
  color: var(--ink);
  border-top: 1px solid var(--ekf-trait);
  border-bottom: 1px solid var(--ekf-trait);
}
.ekf-une__in { padding: 0 28px; }

.ekf-une__vues { display: grid; }
.ekf-une__vue {
  grid-area: 1 / 1;                  /* toutes dans la même cellule */
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  align-items: center;
  gap: 44px;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
  pointer-events: none;
}
.ekf-une__vue.est-active { opacity: 1; visibility: visible; pointer-events: auto; }

.ekf-une__image {
  display: block; align-self: stretch;
  min-height: 300px; margin: 38px 0;
  background: #e8e2d6 center / cover no-repeat;
  border-radius: 12px;
}
.ekf-une__texte { padding: 44px 0; }

.ekf-une__etiquette {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red);
  margin: 0 0 14px;
}
.ekf-une__pastille {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  animation: ekf-pulse 2.4s ease-in-out infinite;
}
@keyframes ekf-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .3; transform: scale(1.45); }
}
.ekf-une__date {
  font-size: .8rem; letter-spacing: .08em;
  color: #9A968D; margin-left: auto;
}

.ekf-une h2 {
  font-family: var(--font-titre); font-weight: 400; line-height: 1.12;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  margin: 0 0 14px;
}
.ekf-une h2 a { color: var(--ink); }
.ekf-une h2 a:hover { color: var(--red); }

.ekf-une__chapo {
  color: #55514A; margin: 0 0 22px; max-width: 58ch;
  font-size: 1.02rem; line-height: 1.65;
}
.ekf-une__lien a {
  font-family: var(--font-head); font-size: 1.1rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink);
  border-bottom: 2px solid var(--gold); padding-bottom: 3px;
}
.ekf-une__lien a:hover { color: var(--red); }
.ekf-une__lien span { display: inline-block; transition: transform .2s ease; }
.ekf-une__lien a:hover span { transform: translateX(5px); }

.ekf-une__puces { display: flex; gap: 9px; padding: 0 0 30px; }
.ekf-une__puce {
  width: 30px; height: 4px; border: 0; padding: 0; cursor: pointer;
  background: #ded8cc; border-radius: 2px;
  transition: background-color .25s ease, width .25s ease;
}
.ekf-une__puce:hover { background: #bcb5a6; }
.ekf-une__puce.est-active { background: var(--red); width: 46px; }
.ekf-une__puce:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* --- Variante sombre --- */
.ekf-une--sombre { background: var(--ink); color: var(--white); border-color: rgba(255,255,255,.14); }
.ekf-une--sombre .ekf-une__image { background-color: #222; }
.ekf-une--sombre .ekf-une__etiquette { color: var(--gold); }
.ekf-une--sombre .ekf-une__pastille { background: var(--gold); }
.ekf-une--sombre .ekf-une__date { color: rgba(255,255,255,.55); }
.ekf-une--sombre h2 a { color: var(--white); }
.ekf-une--sombre h2 a:hover { color: var(--gold); }
.ekf-une--sombre .ekf-une__chapo { color: rgba(255,255,255,.74); }
.ekf-une--sombre .ekf-une__lien a { color: var(--white); }
.ekf-une--sombre .ekf-une__lien a:hover { color: var(--gold); }
.ekf-une--sombre .ekf-une__puce { background: rgba(255,255,255,.28); }
.ekf-une--sombre .ekf-une__puce:hover { background: rgba(255,255,255,.55); }
.ekf-une--sombre .ekf-une__puce.est-active { background: var(--gold); }

@media (max-width: 900px) {
  .ekf-une__vue { grid-template-columns: 1fr; gap: 0; }
  .ekf-une__image { min-height: 210px; margin: 28px 0 0; }
  .ekf-une__texte { padding: 24px 0 30px; }
  .ekf-une__date { margin-left: 0; }
  .ekf-une__etiquette { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .ekf-une__vue { transition: none; }
  .ekf-une__pastille { animation: none; }
}

/* --------------------------------------------------------------------------
   4 quinquies. La fiche produit
   --------------------------------------------------------------------------
   Packshot à gauche, caractéristiques à droite. Le packshot est posé sur un
   fond crème plutôt que blanc : les visuels du catalogue sont détourés sur
   blanc, un cadre blanc les ferait flotter sans limite visible.
   -------------------------------------------------------------------------- */

.ekf-fiche { position: relative; z-index: 10; padding: 64px 0 72px; }
.ekf-fiche__grille {
  display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  gap: 56px; align-items: start;
}
.ekf-fiche__visuel {
  background: var(--cream);
  border: 1px solid var(--ekf-trait);
  border-radius: 16px;
  padding: 32px;
  display: flex; align-items: center; justify-content: center;
}
.ekf-fiche__visuel img { width: 100%; height: auto; display: block; }

.ekf-fiche__famille { color: var(--gold); }
.ekf-fiche__etiquettes { margin: 0 0 22px; }
.ekf-fiche__texte { margin: 0 0 24px; line-height: 1.7; color: #4A463F; }

.ekf-fiche__forts { list-style: none; margin: 0 0 26px; padding: 0; }
.ekf-fiche__forts li {
  position: relative; padding-left: 26px; margin-bottom: 9px;
  color: #4A463F; line-height: 1.55;
}
.ekf-fiche__forts li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
}

/* Le tableau des caractéristiques.
   Il ne déclarait que `padding: 13px 0` : aucune marge horizontale. Le thème
   parent, lui, dessine ses propres filets verticaux et son fond de colonne —
   le texte venait donc buter contre le trait. On reprend ici la main sur tout
   le tableau plutôt que de compter sur ce que fait le parent, et on donne
   18 px d'air de chaque côté du filet. */
.ekf-fiche__carac {
  width: 100%; border-collapse: collapse; margin: 0 0 22px;
  border: 1px solid var(--ekf-trait); border-radius: 10px; overflow: hidden;
  background: var(--white);
}
.ekf-fiche__carac tr { background: transparent; }
.ekf-fiche__carac th,
.ekf-fiche__carac td {
  text-align: left; padding: 15px 18px;
  border: 0; border-bottom: 1px solid var(--ekf-trait);
  font-size: .96rem; line-height: 1.5; vertical-align: top;
  background: transparent;
}
.ekf-fiche__carac tr:last-child th,
.ekf-fiche__carac tr:last-child td { border-bottom: 0; }
.ekf-fiche__carac th {
  width: 40%; font-weight: 600; color: var(--ink);
  background: var(--cream);
  border-right: 1px solid var(--ekf-trait);
}
.ekf-fiche__carac td { color: #55514A; }

.ekf-fiche__mention {
  font-size: .86rem; color: #8A857C; margin: 0 0 28px;
  font-style: italic;
}
.ekf-fiche__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Les autres références de la famille --- */
.ekf-fiche__voisins {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.ekf-voisin {
  display: block; background: var(--white);
  border: 1px solid var(--ekf-trait); border-radius: 12px;
  padding: 14px; text-align: center;
  transition: transform .18s ease, border-color .18s ease;
}
.ekf-voisin:hover { transform: translateY(-3px); border-color: var(--gold); }
.ekf-voisin__media {
  display: block; height: 118px; margin-bottom: 12px;
  background: var(--cream) center / contain no-repeat; border-radius: 8px;
}
.ekf-voisin__nom {
  display: block; font-family: var(--font-head); font-size: 1.14rem;
  text-transform: uppercase; line-height: 1.15; color: var(--ink);
}
.ekf-voisin__format { display: block; font-size: .8rem; color: #8A857C; margin-top: 4px; }

/* Sur une page de famille, les onglets sont des liens et non des boutons :
   WordPress n'y place que les références de la famille demandée, un filtre
   côté navigateur n'aurait rien à montrer pour les autres. Ils doivent
   ressembler trait pour trait aux boutons du catalogue. */
.filter-lien {
  display: inline-block; text-decoration: none; line-height: 1.25;
}
.filter-lien:hover { text-decoration: none; color: var(--ink); }
.filter-lien.is-active:hover { color: var(--white); }

/* La carte du catalogue devient cliquable en entier — visuel et titre. */
.product-lien { display: block; }
.product-body h3 a { color: inherit; }
.product-body h3 a:hover { color: var(--red); }

@media (max-width: 900px) {
  .ekf-fiche__grille { grid-template-columns: 1fr; gap: 30px; }
  .ekf-fiche__voisins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ekf-fiche__carac th { width: 50%; }
}
@media (max-width: 520px) {
  .ekf-fiche__voisins { grid-template-columns: 1fr; }
  .ekf-fiche__actions .btn { width: 100%; text-align: center; }
}

/* --------------------------------------------------------------------------
   5. Contact Form 7, habillé comme le formulaire de la maquette
   -------------------------------------------------------------------------- */

.form-card .wpcf7-form p { margin: 0; }
.form-card .wpcf7-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.form-card .wpcf7-form input[type="text"],
.form-card .wpcf7-form input[type="email"],
.form-card .wpcf7-form input[type="tel"],
.form-card .wpcf7-form select,
.form-card .wpcf7-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd6c8; border-radius: 8px;
  font: inherit; color: var(--ink); background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-card .wpcf7-form textarea { min-height: 120px; resize: vertical; }
.form-card .wpcf7-form input:focus,
.form-card .wpcf7-form select:focus,
.form-card .wpcf7-form textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,0,0,.12);
}
.form-card .wpcf7-form .wpcf7-submit { border: 0; cursor: pointer; }
.form-card .wpcf7-list-item { margin: 0; }
.form-card .wpcf7-not-valid-tip { color: var(--red); font-size: .82rem; }

/* --- Familles de produits : une tuile par famille, deux rangées de quatre ---
   Contact Form 7 aligne ses cases en ligne continue, ce qui devient illisible
   à huit entrées. On reprend la liste en grille : une case, une vignette, un
   libellé — la vignette est posée par js/formulaire.js, qui reconnaît chaque
   famille à son libellé. Sans le script, la tuile reste correcte, simplement
   sans image. */
/* Contact Form 7 enveloppe chaque champ dans un <span> en ligne. Une grille
   posée là-dedans se réduit à la largeur de son contenu — c'est ce qui laissait
   les tuiles tassées à gauche au lieu d'occuper le formulaire. On repasse
   l'enveloppe en bloc avant toute chose. */
/* `.checks` est déjà une grille à deux colonnes dans la charte du prototype :
   le formulaire s'y retrouvait tout entier dans la première colonne, d'où les
   tuiles à mi-largeur. La grille utile est celle des tuiles, à l'intérieur. */
.form-card .checks { display: block; }
.form-card .checks p,
.form-card .checks .wpcf7-form-control-wrap { display: block; width: 100%; }

.form-card .checks .wpcf7-checkbox {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.form-card .checks .wpcf7-list-item { margin: 0; display: block; }
.form-card .checks .wpcf7-list-item > label {
  display: flex; align-items: center; gap: 9px;
  margin: 0; padding: 9px 10px;
  border: 1px solid #ddd6c8; border-radius: 10px; background: var(--white);
  font-weight: 500; font-size: .84rem; line-height: 1.25;
  cursor: pointer; height: 100%;
  transition: border-color .15s ease, background-color .15s ease;
}
.form-card .checks .wpcf7-list-item > label:hover { border-color: var(--gold); }
.form-card .checks input[type="checkbox"] {
  flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--ink);
}
.form-card .checks .ekf-vignette {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px;
  background-color: var(--cream); background-size: cover; background-position: center;
}
.form-card .checks .wpcf7-list-item-label { display: block; min-width: 0; }
/* Tuile cochée : le repère visuel manque sinon sur une grille de huit. */
.form-card .checks .wpcf7-list-item > label:has(input:checked) {
  border-color: var(--gold); background: rgba(240, 180, 24, .10);
}
.form-card .checks input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}
/* Deux colonnes plutôt que quatre : la carte du formulaire fait environ
   600 px de large, et à quatre colonnes « Viandes & volailles » se casse sur
   trois lignes. Sous 520 px, une seule colonne. */
@media (max-width: 520px) {
  .form-card .checks .wpcf7-checkbox { grid-template-columns: 1fr; }
}

/* --- Consentement RGPD : la case devant la phrase, pas au-dessus ---
   La règle générale plus haut met les libellés en display:block et en gras ;
   appliquée ici, elle décrochait la phrase de sa case. On rétablit une ligne
   unique, la case calée sur la première ligne de texte. */
.form-card .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.form-card .wpcf7-acceptance .wpcf7-list-item > label {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0; font-weight: 400; font-size: .88rem; line-height: 1.5;
  cursor: pointer;
}
.form-card .wpcf7-acceptance input[type="checkbox"] {
  flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--ink);
}
.form-card .wpcf7-acceptance .wpcf7-list-item-label { display: block; }
/* Rappel de la référence quand on arrive depuis une carte du catalogue. */
.ekf-produit-demande {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 3px solid var(--or, #F0B418);
  background: rgba(240, 180, 24, .10);
  border-radius: 0 8px 8px 0;
  font-size: .92rem;
}
/* Champ technique (référence reportée dans le mail) : présent, jamais montré. */
.form-card .ekf-cache { display: none; }

/* --- Bouton d'envoi : toute la largeur du formulaire ---
   Un bouton pleine largeur cale la colonne avec les champs au-dessus, qui font
   eux aussi 100 %. En pleine largeur, le libellé reste centré. */
.form-card .form-actions { margin-top: 4px; }
.form-card .wpcf7-form .wpcf7-submit {
  display: block; width: 100%;
  text-align: center; border-radius: 8px;
}
/* Le pictogramme de chargement de CF7 se pose après le bouton : sans cela il
   pousse une ligne vide sous un bouton pleine largeur. */
.form-card .wpcf7-spinner { display: block; margin: 12px auto 0; }
.form-card .form-note { margin: 12px 0 0; text-align: center; }

.form-card .wpcf7-response-output { border-radius: 10px; padding: 14px 16px; margin: 18px 0 0; font-size: .92rem; }

/* --------------------------------------------------------------------------
   6. Catalogue
   -------------------------------------------------------------------------- */

.product { transition: transform .18s ease, box-shadow .18s ease; }
.product:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(17,17,17,.10); }
.product-media--packshot { background-color: var(--cream); background-size: contain; background-position: center; }
.product.is-hidden { display: none; }
.product-accroche { font-size: .86rem; line-height: 1.45; color: var(--grey); margin: 0; }

.card { display: block; }
.more-cat { text-decoration: none; }

/* --------------------------------------------------------------------------
   7. Divers
   -------------------------------------------------------------------------- */

.ekf-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.ekf-pagination .page-numbers {
  font-family: var(--font-head); font-size: 1rem; padding: 8px 14px;
  border: 2px solid #e5e0d6; background: var(--white); color: var(--ink);
}
.ekf-pagination .page-numbers.current { background: var(--red); border-color: var(--red); color: var(--white); }

.entry-content ul { padding-left: 1.1em; }
.entry-content a { color: var(--red); text-decoration: underline; }

.ekf-avertissement {
  border-left: 3px solid var(--gold); background: var(--cream);
  padding: 16px 20px; font-size: .93rem; margin: 24px 0;
}

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 999; background: var(--white);
  color: var(--ink); padding: 10px 16px; width: auto; height: auto; clip: auto; clip-path: none;
}

/* Familles « vitrine » (Desserts, Emballages) : le logo tient lieu de visuel. */
.more-cat img.ekf-img-logo { object-fit: contain; background: #FAF4E8; padding: 6px; }
.ekf-bientot { text-align: center; max-width: 560px; margin: 0 auto; padding: 56px 0 72px; }
.ekf-bientot img { display: block; width: auto; height: 64px; margin: 0 auto 24px; }
.ekf-bientot p { line-height: 1.6; }

/* --------------------------------------------------------------------------
   Bandes de tête avec photo libre de droits (22 octobre 2026)
   Nos valeurs, Contact : la bande sobre reçoit une photo sous un voile sombre.
   L'image et son cadrage sont passés par le gabarit (--ekf-bande-img et
   --ekf-bande-pos) ; sans image, la bande sobre d'origine reste en place.
   -------------------------------------------------------------------------- */
.page-hero--photo {
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(17,17,17,.62) 0%, rgba(17,17,17,.84) 100%),
    var(--ekf-bande-img);
  background-position: center, var(--ekf-bande-pos, center);
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}

/* EKF-MOBILE-CONTACT : la page Contact ne déborde plus sur mobile */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid > * { min-width: 0; }
}
@media (max-width: 620px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .field-row > .field, .form-card .field { min-width: 0; }
  .form-card input, .form-card select, .form-card textarea { max-width: 100%; box-sizing: border-box; }
}
@media (max-width: 620px) {
  .form-actions .btn, .form-card .wpcf7-submit { width: 100%; max-width: 100%; padding-left: 12px; padding-right: 12px; font-size: 15px; letter-spacing: 0; box-sizing: border-box; white-space: normal; line-height: 1.3; height: auto; min-height: 52px; }
}

/* EKF-CONTRASTE START : rouge, orange et gris des petits textes et boutons conformes WCAG AA (4,5:1).
   Le rouge charte #FF0000 reste utilisé pour les grands titres, numéros et aplats décoratifs. */
:root { --red-aa: #D90000; --red-aa-hover: #B30000; --gold-aa: #A05A00; --gris-aa: #66625A; }
.nav-cta, .ekf-nav .nav-c, .btn-primary, .filter-btn.is-active, .news-tag, .pill,
.ekf-pagination .page-numbers.current { background-color: var(--red-aa); }
.filter-btn.is-active, .ekf-pagination .page-numbers.current { border-color: var(--red-aa); }
.nav-cta > a, .ekf-nav .nav-cta > a { background-color: var(--red-aa); }
.nav-cta > a:hover, .ekf-nav .nav-cta > a:hover { background-color: var(--red-aa-hover); }
.nav-cta:hover, .ekf-nav .nav-c:hover, .btn-primary:hover { background-color: var(--red-aa-hover); }
.eyebrow, .post-date, .product-fam, .product-cta a, .field .req, .req, .article-card .go,
.ekf-une__etiquette, .entry-content a, .form-card .wpcf7-not-valid-tip,
.nav a:hover, .ekf-nav a:hover, .nav a.is-current, .product-body h3 a:hover { color: var(--red-aa); }
.brand .eyebrow { color: var(--gold-aa); }
.ekf-fiche__mention, .ekf-voisin__format { color: var(--gris-aa); }
/* EKF-CONTRASTE END */

/* EKF-MENU-OUVERT START : menu mobile ouvert après défilement. Le panneau est noir : textes, langues, logo et burger repassent en clair. */
body.ekf-sur-image .ekf-header.est-defile.est-ouvert a,
body.ekf-sur-image .ekf-header.est-defile.est-ouvert .ekf-nav a { color: var(--white); }
body.ekf-sur-image .ekf-header.est-defile.est-ouvert .ekf-nav a:hover { color: var(--gold); }
body.ekf-sur-image .ekf-header.est-defile.est-ouvert .ekf-langues a { color: rgba(255,255,255,.65); }
body.ekf-sur-image .ekf-header.est-defile.est-ouvert .ekf-langues .current-lang a,
body.ekf-sur-image .ekf-header.est-defile.est-ouvert .ekf-langues a:hover { color: var(--white); }
body.ekf-sur-image .ekf-header.est-defile.est-ouvert .ekf-burger span { background: var(--white); }
body.ekf-sur-image .ekf-header.est-defile.est-ouvert .ekf-logo--sombre { display: none; }
body.ekf-sur-image .ekf-header.est-defile.est-ouvert .ekf-logo--clair { display: block; }
/* Hello Elementor colore les boutons en rose au survol et au toucher : le burger reste transparent. */
.ekf-burger:hover, .ekf-burger:focus, .ekf-burger:active { background: none; }
.ekf-burger:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* EKF-MENU-OUVERT END */

