/* IKHLEF Alimentaire : charte tirée du logo (bleu, vert, doré). Le carrousel d'accueil est le seul grand moment animé. */
:root {
  /* Palette issue du logo : bleu dominant, vert en soutien, doré en accent */
  --blue: #07609e;        /* bleu du nom : liens, éléments actifs sur fond clair */
  --blue-2: #0e70ac;      /* bleu clair de la vague */
  --ink: #062f4b;         /* bleu profond de même teinte (205°) : fonds sombres */
  --ink-deep: #041d2f;
  --green: #5b9a3a;       /* vert du logo : détails graphiques */
  --green-deep: #3b6722;  /* vert foncé : texte sur fond clair (6,2:1) */
  --green-soft: #a1d685;  /* vert clair : texte sur fond sombre (10:1) */
  --gold: #dba631;        /* doré de l'épi : boutons et accents (texte bleu foncé dessus, 7,8:1) */
  --gold-hover: #e0b352;
  --gold-soft: #f9edd2;
  --paper: #f5f8fa;
  --white: #ffffff;
  --text: #16283a;
  --muted: #4a5d6e;
  --line: rgba(6, 47, 75, .15);
  --bad: #b3261e;
  --good: #146c3f;
  --warn-bg: #fff1c2;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dock: 0px;
  --ms: 4000ms;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1rem/1.6 var(--sans); padding-bottom: var(--dock); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; color: var(--ink); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .92rem; color: var(--muted); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sec :focus-visible, .page :focus-visible { outline-color: var(--blue); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink-deep); font-weight: 800; padding: 12px 18px; border-radius: 8px; text-decoration: none; transition: top .15s; }
.skip:focus { top: 12px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent; font: 800 1rem var(--sans); text-decoration: none; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s, color .18s; }
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--gold); color: var(--ink-deep); }
.btn-sun:hover { box-shadow: 0 10px 24px rgba(219, 166, 49, .45); }
.btn-line { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn-line:hover { background: #fff; color: var(--ink); }
.btn-sm { min-height: 44px; padding: 8px 22px; font-size: .95rem; }
.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* En-tête */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.hdr.solid { background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; position: relative; z-index: 2; }
.brand-logo { height: 56px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 700; font-size: .96rem; padding: 10px 0; background: linear-gradient(var(--gold), var(--gold)) 0 calc(100% - 6px) / 0 3px no-repeat; transition: background-size .25s, color .2s; }
.nav a:not(.btn):hover { background-size: 100% 3px; }
.hdr.solid .nav a:not(.btn) { background-image: linear-gradient(var(--green), var(--green)); }
.hdr.solid .nav a:not(.btn):hover { color: var(--blue); }.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; background: none; border: 1.5px solid currentColor; border-radius: 999px; padding: 8px 16px; font: 800 .9rem var(--sans); color: inherit; cursor: pointer; position: relative; z-index: 2; }
.bars { display: grid; gap: 4px; }
.bars i { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .25s; }
.menu-btn[aria-expanded="true"] .bars i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars i:last-child { transform: translateY(-3px) rotate(-45deg); }

/* Accueil : carrousel */
.hero { position: relative; color: #fff; background: var(--ink-deep); }
/* Scène : la photo occupe tout l'écran au chargement ; la barre jaune se trouve juste en dessous, hors de l'écran */
.stage { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s 1.2s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.2s ease, visibility 0s; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero.is-running .slide:not(.is-active) img { transform: scale(1.08); }
.hero.is-running .slide.is-active img { animation: push calc(var(--ms) * 1.35) ease-out both; }
@keyframes push { from { transform: scale(1); } to { transform: scale(1.08); } }
.stage::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(96deg, rgba(4, 29, 47, .93) 0%, rgba(4, 29, 47, .72) 38%, rgba(4, 29, 47, .22) 72%, rgba(4, 29, 47, .06) 100%), linear-gradient(0deg, rgba(4, 29, 47, .6), transparent 45%); }
.hero-in { position: relative; z-index: 3; padding: 128px 0 30px; }
.hero-tag { margin: 0 0 14px; font-weight: 700; color: var(--green-soft); letter-spacing: .02em; }
.hero h1 { color: #fff; display: flex; flex-direction: column; }
.h1-name { font-size: clamp(4rem, 13vw, 9rem); letter-spacing: .015em; line-height: .88; }
.h1-sub { display: flex; align-items: center; gap: 16px; margin-top: 10px; font: 800 clamp(.85rem, 2vw, 1.15rem)/1 var(--sans); letter-spacing: .45em; text-transform: uppercase; color: var(--green-soft); }
.h1-sub::after { content: ""; flex: 0 1 120px; height: 3px; background: var(--gold); }
.lead { margin: 24px 0 26px; max-width: 46ch; font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: #e3eef6; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.ctl-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.ctl { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .75); background: rgba(4, 29, 47, .45); color: #fff; cursor: pointer; transition: background .2s, color .2s; }
.ctl:hover { background: #fff; color: var(--ink); }
.ctl .ico-play { display: none; }
.hero.is-paused .ctl .ico-pause, .hero.is-still .ctl .ico-pause { display: none; }
.hero.is-paused .ctl .ico-play, .hero.is-still .ctl .ico-play { display: block; }
/* Minuteur invisible : sa fin déclenche la photo suivante (aucune barre de progression affichée) */
.tick { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hero.is-running .tick { animation: fill var(--ms) linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero.is-paused .tick, .hero.is-hold .tick, .hero.is-paused .slide.is-active img, .hero.is-hold .slide.is-active img { animation-play-state: paused; }
.stock-note { margin: 0 0 0 10px; font-size: .82rem; color: #cfdfeb; }
.strip { position: relative; z-index: 4; margin: 0; background: var(--gold); color: var(--ink-deep); }
.strip-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-in > div { padding: 16px 24px 18px 0; }
.strip-in > div + div { padding-left: 24px; border-left: 1px solid rgba(4, 29, 47, .25); }
.strip dt { font-size: .85rem; font-weight: 700; opacity: .8; }
.strip dd { margin: 0; font-weight: 800; }
.strip a { text-decoration: none; }
.strip a:hover { text-decoration: underline; }

/* Sections */
.sec { padding: clamp(44px, 6vw, 80px) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-photos { position: relative; padding: 0 0 56px 30px; }
.about-photos::before { content: ""; position: absolute; left: 0; top: 30px; width: 62%; height: 78%; background: var(--green); border-radius: 6px; }
.ph-main { position: relative; margin: 0; aspect-ratio: 4 / 4.4; border-radius: 6px; overflow: hidden; box-shadow: 0 22px 44px rgba(4, 29, 47, .22); }
.ph-main img, .ph-small img { width: 100%; height: 100%; object-fit: cover; }
.ph-small { position: absolute; right: -3%; bottom: 8px; width: 44%; aspect-ratio: 1; margin: 0; border: 7px solid var(--paper); border-radius: 6px; overflow: hidden; box-shadow: 0 16px 36px rgba(4, 29, 47, .25); }
.big { font: 400 clamp(1.2rem, 2.2vw, 1.5rem)/1.35 var(--display); color: var(--ink); margin: 18px 0 14px; }
.idcard { margin: 22px 0 0; border-top: 2px solid var(--ink); }
.idcard div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.idcard dt { font-weight: 700; color: var(--green-deep); }
.idcard dd { margin: 0; font-weight: 600; }
.stock-note-dark { margin: 14px 0 0; color: var(--muted); }
.stock-note-dark a { color: var(--blue); }

.marks { background: var(--white); border-block: 1px solid var(--line); }
.h-sm { font-size: 1.5rem; margin-bottom: 18px; }
.marks-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.marks-list strong { display: block; font: 400 clamp(2.6rem, 6vw, 4rem)/1 var(--display); color: var(--ink); }
.marks-list span { color: var(--muted); font-weight: 600; }
.refs { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.refs ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font: 400 1.15rem var(--display); color: var(--ink); }

/* Offre et services : photo de fond, profondeur sur ordinateur */
.offer { position: relative; isolation: isolate; overflow: hidden; color: #e3eef6; padding: clamp(48px, 6vw, 84px) 0; }
.offer-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 29, 47, .9), rgba(4, 29, 47, .78)), url("../assets/photos/ble-lumiere-m.jpg") center / cover no-repeat; }
@media (min-width: 861px) { .offer-bg { background-image: linear-gradient(95deg, rgba(4, 29, 47, .9) 0%, rgba(4, 29, 47, .55) 55%, rgba(4, 29, 47, .3) 100%), url("../assets/photos/ble-lumiere.jpg"); } }
@media (min-width: 861px) and (hover: hover) and (prefers-reduced-motion: no-preference) { .offer-bg { background-attachment: scroll, fixed; } }
.offer h2, .offer h3 { color: #fff; }
.offer-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.offer-lead p { font-size: 1.1rem; max-width: 44ch; margin: 16px 0 24px; }
.offer-cards { display: grid; gap: 14px; }
.gcard { display: flex; gap: 18px; padding: 20px 22px; border-radius: 14px; background: rgba(4, 29, 47, .68); border: 1px solid rgba(255, 255, 255, .24); }
.gcard p { margin: 6px 0 0; color: #e3eef6; }
.gico { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--gold); fill: var(--ink-deep); }
.index-list { list-style: none; margin: 10px 0 0; padding: 0; }
.index-list li { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.index-list strong { display: block; font: 400 1.1rem var(--display); color: #fff; }
.tip { margin: 4px 2px 0; font-size: .95rem; color: #cfdfeb; }
@media (min-width: 861px) { .gcard { backdrop-filter: blur(6px); } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 22px 0 14px; border-top: 2px solid var(--ink); }
.contact-list li { display: grid; gap: 2px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-list li > span { font-size: .85rem; font-weight: 700; color: var(--green-deep); }
.contact-list a, .contact-list b { font: 400 1.3rem var(--display); color: var(--ink); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.form { background: var(--white); border-radius: 14px; padding: clamp(20px, 3.5vw, 32px); display: grid; gap: 14px; box-shadow: 0 20px 44px rgba(4, 29, 47, .1); border-top: 5px solid var(--green); }
.form-intro { margin: 0; color: var(--muted); font-size: .93rem; }
.field { display: grid; gap: 5px; }
.field label { font-weight: 700; font-size: .93rem; color: var(--ink); }
.opt { font-weight: 500; color: var(--muted); }
.field input, .field textarea { font: 400 1rem var(--sans); min-height: 46px; padding: 11px 13px; border: 2px solid #bccbd6; border-radius: 10px; background: var(--paper); color: var(--text); width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(7, 96, 158, .22); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.err { margin: 0; color: var(--bad); font-size: .9rem; font-weight: 600; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; padding: 12px 14px; border-radius: 10px; font-weight: 600; font-size: .95rem; background: var(--warn-bg); color: #4a3500; border: 1px solid #e5c25a; }
.form-note.ok { background: #e3f4ea; color: #0d4a2a; border-color: #9fd3b4; }
.form-note.bad { background: #fdeceb; color: #7d1a14; border-color: #f0b9b5; }
.form-note a { color: inherit; font-weight: 800; }

/* Contact : version compacte (moins d'espace, texte plus petit) */
.sec.contact { padding: clamp(24px, 3.2vw, 40px) 0; }
.contact-grid { gap: clamp(20px, 4vw, 48px); }
.contact h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.contact-list { margin: 12px 0 8px; }
.contact-list li { padding: 8px 0; }
.contact-list li > span { font-size: .8rem; }
.contact-list a, .contact-list b { font-size: 1.05rem; }
.contact .small { font-size: .85rem; margin: 0; }
.form { padding: clamp(14px, 2.4vw, 20px); gap: 9px; box-shadow: 0 12px 28px rgba(4, 29, 47, .1); }
.form h3 { font-size: 1.1rem; }
.form-intro { font-size: .85rem; }
.field { gap: 3px; }
.field label { font-size: .85rem; }
.field input, .field textarea { min-height: 40px; padding: 8px 11px; font-size: .95rem; }
.form .btn { min-height: 44px; }

/* Pied de page minimal */
.foot { background: var(--ink-deep); color: #cfdfeb; padding: 6px 0; font-size: .8rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 20px; min-height: 30px; }
@media (min-width: 861px) { .foot-in { padding-right: 72px; } }
.foot a { text-decoration: none; padding: 4px 0; }
.foot a:hover { color: var(--gold); text-decoration: underline; }

/* WhatsApp flottant (ordinateur) et barre de contact (mobile) */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border-radius: 50%; background: #25d366; color: #052e16; font: 800 1rem var(--sans); text-decoration: none; box-shadow: 0 10px 28px rgba(4, 29, 47, .35); transition: transform .18s, box-shadow .18s; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(4, 29, 47, .45); }
.wa-float:focus-visible { outline-color: var(--ink-deep); outline-offset: 4px; }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.dock { display: none; }

/* Pages de texte */
.page { padding: 112px 0 64px; max-width: 800px; }
.page h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin: 12px 0 22px; }
.page h2 { font-size: 1.5rem; margin: 34px 0 10px; }
.page dl { margin: 0; border-top: 2px solid var(--ink); }
.page dl div { display: grid; grid-template-columns: 210px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.page dt { font-weight: 800; color: var(--ink); }
.page dd { margin: 0; }
.page table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.page th, .page td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.page th { font-size: .85rem; color: var(--blue); }
.pending { color: var(--muted); font-style: italic; }
.back { font-weight: 800; color: var(--blue); text-decoration: none; display: inline-block; padding: 8px 0; }

/* Tablette */
@media (max-width: 960px) {
  .about-grid, .contact-grid, .offer-in { grid-template-columns: 1fr; }
  .about-photos { max-width: 520px; }
  .offer-lead p { max-width: 60ch; }
}

/* Mobile */
@media (max-width: 860px) {
  :root { --dock: 68px; }
  .wa-float { display: none; }
  .menu-btn { display: inline-flex; }
  .hdr.solid { backdrop-filter: none; background: #fff; }
  .menu-open .hdr { background: #fff; color: var(--ink); box-shadow: none; }
  .hdr-in { min-height: 68px; }
  .brand-logo { height: 46px; }
  .nav { position: fixed; inset: 68px 0 0 0; padding: 24px 24px 32px; background: var(--ink-deep); color: #fff; flex-direction: column; align-items: flex-start; gap: 4px; opacity: 0; visibility: hidden; transform: translateY(-14px); transition: opacity .25s, transform .25s, visibility .25s; z-index: 1; overflow-y: auto; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { font: 400 1.9rem var(--display); padding: 10px 0; background-image: none; }
  .nav .btn { margin-top: 18px; }
  .hero-in { padding: 104px 0 calc(28px + var(--dock)); }
  .stage::before { background: linear-gradient(0deg, rgba(4, 29, 47, .96) 0%, rgba(4, 29, 47, .8) 55%, rgba(4, 29, 47, .45) 100%); }
  .lead { margin: 18px 0 20px; }
  .ctl-row { margin-top: 24px; }
  .stock-note { flex: 1 1 100%; margin: 4px 0 0; }
  .strip-in { grid-template-columns: 1fr; }
  .strip-in > div, .strip-in > div + div { padding: 11px 0; border-left: 0; }
  .strip-in > div + div { border-top: 1px solid rgba(4, 29, 47, .25); }
  .idcard div { grid-template-columns: 1fr; gap: 0; }
  .page { padding-top: 96px; }
  .page dl div { grid-template-columns: 1fr; gap: 2px; }
  .page table { display: block; overflow-x: auto; }
  .page th, .page td { padding: 10px 8px; white-space: nowrap; }
  .foot-in { justify-content: center; text-align: center; }
  .dock { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
  .dock a { display: grid; place-items: center; min-height: 48px; border-radius: 999px; font-weight: 800; text-decoration: none; background: var(--gold); color: var(--ink-deep); }
  .dock a + a { background: #25d366; color: #052e16; }
}
@media (max-width: 560px) {
  .cta .btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 28px); }
  .h1-sub { letter-spacing: .3em; }
}

/* Réduction des animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .slide, .slide.is-active { transition: none !important; }
}
