/* =========================================================
   Améliorations : SEO, accessibilité, RGPD et design
   (chargé après style.css et layout-*.css)
   ========================================================= */

@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Wix Madefor Text"; src: url("../fonts/wix-madefor-text.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --orange-deep: var(--orange);   /* plus d'orange foncé : orange d'origine partout */
  --ink: #1D1D1B;
  --grey-600: #5B5651;
  --focus: #1D1D1B;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Accessibilité ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px;
  font-family: var(--f-md); font-size: 15px; transition: top .2s;
}
.skip-link:focus { top: 16px; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.bg-orange :focus-visible, .home-team :focus-visible, .pa-orange :focus-visible { outline-color: #fff; }
.menu-panel[inert] { visibility: hidden; }
body.menu-open .menu-panel { visibility: visible; }

/* ---------- Boutons ---------- */
.btn-outline, .menu-btn, .ct-send, .pa-card .go, .btn-solid { transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .15s ease; }
.btn-outline:active, .menu-btn:active, .ct-send:active, .pa-card .go:active, .btn-solid:active { transform: translateY(1px) scale(.98); }
.btn-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border: 0; border-radius: 300px; cursor: pointer;
  background: var(--ink); color: #fff; font-family: var(--f-md); font-size: 15px;
}
.btn-solid:hover { background: var(--orange); }

/* ---------- Hero : colonne de texte en flux (plus de chevauchement) ---------- */
.hero-txt { display: flex; flex-direction: column; align-items: flex-start; }
.hero-txt .h-hero { position: static; }
.hero-txt .hero-p { margin-top: calc(34 * var(--u)); max-width: 423px; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px calc(55 * var(--u)); margin-top: max(24px, calc(87 * var(--u))); margin-left: -6px; }
.hero-ctas .hero-btn { width: 155px; height: 41px; }
.hero-txt .nos-produits { margin-top: max(28px, calc(88 * var(--u))); margin-left: -6px; }
.hero-logos { list-style: none; display: flex; align-items: center; gap: calc(53 * var(--u)); margin: calc(20 * var(--u)) 0 0 -6px; padding: 0; }
.hero-logos img { display: block; height: auto; }
.lg-dkv img { width: calc(80 * var(--u)); } .lg-wus img { width: calc(118 * var(--u)); } .lg-apr img { width: calc(96 * var(--u)); }
/* icônes des cartes produits : centrées */
.prod-card .ico { left: 50% !important; transform: translateX(-50%) !important; }
.prod-card .lbl { left: 0 !important; right: 0 !important; width: auto !important; }
@media (min-width: 751px) and (max-width: 1000px) {
  .hero-txt .hero-p { margin-top: calc(18 * var(--t)); max-width: none; }
  .hero-ctas { margin-top: calc(28 * var(--t)); gap: 10px; }
  .hero-ctas .hero-btn { width: 130px; height: 35px; }
  .hero-txt .nos-produits { margin-top: calc(24 * var(--t)); }
  .hero-logos { gap: calc(24 * var(--t)); margin-top: calc(12 * var(--t)); }
  .lg-dkv img { width: calc(80 * var(--t)); } .lg-wus img { width: calc(118 * var(--t)); } .lg-apr img { width: calc(96 * var(--t)); }
}
@media (max-width: 750px) {
  .hero-txt .hero-p { margin-top: calc(19 * var(--m)); max-width: none; }
  .hero-ctas { margin-top: calc(33 * var(--m)); gap: 10px; margin-left: -3px; }
  .hero-ctas .hero-btn { width: auto; padding: 0 18px; height: 40px; }
  .hero-txt .nos-produits { margin-top: calc(40 * var(--m)); margin-left: -4px; }
  .hero-logos { gap: calc(26 * var(--m)); margin-top: calc(14 * var(--m)); margin-left: -3px; }
  .lg-dkv img { width: calc(70 * var(--m)); } .lg-wus img { width: calc(84 * var(--m)); } .lg-apr img { width: calc(76 * var(--m)); }
}

/* ---------- Équipe ---------- */
.team-line { transition: opacity .2s; }
.team-line:hover { opacity: .8; }

/* ---------- Services : lien lisible au survol ---------- */
.sp-card .sp-title { position: absolute; left: calc(375 * var(--u)); top: calc(72 * var(--u)); margin: 0; font-family: var(--f-xb); font-size: calc(36 * var(--u)); line-height: 1.4; color: var(--black); white-space: nowrap; font-weight: 400; }
.sp-card .more { color: var(--orange-deep); text-underline-offset: 3px; transition: color .2s, text-decoration-thickness .2s; }
.sp-card .more:hover { color: var(--ink); text-decoration-thickness: 2px; }
@media (max-width: 750px) {
  .sp-card .sp-title { left: 0; right: 0; top: calc(78 * var(--m)); text-align: center; font-size: 24px; line-height: 33.6px; }
}
/* Tablette : cartes en flux (le texte ne recouvre plus le titre) */
@media (min-width: 751px) and (max-width: 1000px) {
  .sp-list { height: auto !important; }
  .sp-cards { position: static !important; width: auto !important; padding: calc(81 * var(--t)) calc(16 * var(--t)) calc(60 * var(--t)); }
  .sp-card { height: auto !important; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; align-items: center; padding: calc(44 * var(--t)) calc(150 * var(--t)) calc(44 * var(--t)) calc(159 * var(--t)); margin-bottom: calc(10 * var(--t)); }
  .sp-card > * { position: static !important; }
  .sp-card .ico { width: 32px; height: 32px; }
  .sp-card .sp-title { font-size: 22px; line-height: 1.3; white-space: normal; }
  .sp-card .desc { grid-column: 1 / -1; width: auto; height: auto; margin-top: 16px; font-size: 16px; line-height: 26px; }
  .sp-card .more { grid-column: 1 / -1; margin-top: 18px; font-size: 14px; line-height: 20px; justify-self: start; }
}

/* ---------- Contact ---------- */
.ct-h1 { position: absolute; left: 25px; top: 25px; margin: 0; font-family: var(--f-bb); font-size: 28px; line-height: 42px; color: var(--white); font-weight: 400; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: #9A938C; }
.ct-field input:focus-visible, .ct-field textarea:focus-visible, .ct-field select:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ct-field input[aria-invalid="true"], .ct-field textarea[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #8A1C00; }
.ct-error { display: block; margin-top: 4px; font-family: var(--f-md); font-size: 12.5px; color: #fff; }
.ct-error::before { content: "⚠ "; }
.ct-legal { position: absolute; left: 25px; top: 509px; width: calc(50% - 30px); margin: 0; font-family: var(--f-hl); font-size: 12px; line-height: 17px; color: #fff; }
.ct-legal a { text-decoration: underline; }
.ct-msg { left: 25px; top: auto; bottom: -34px; width: calc(100% - 50px); font-size: 14px; }
.ct-form { overflow: visible; }

.map-consent {
  height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px;
  padding: clamp(20px, 3vw, 44px); background: #F4EFEA; color: var(--ink);
  font-family: var(--f-hl); font-size: 14px; line-height: 1.5;
}
.map-consent a { text-decoration: underline; }
.map-title { font-family: var(--f-bb); font-size: 20px; line-height: 1.3; }
.map-title span { font-family: var(--f-hl); font-size: 15px; }
.map-remember { display: flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
.map-route { font-family: var(--f-md); color: var(--orange-deep); }
.ct-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Partenaires : grille compacte en flux ---------- */
.pa-orange[data-l] { height: auto !important; }
.pa-orange { padding: calc(148 * var(--u)) calc(72 * var(--u)) calc(120 * var(--u)); }
.pa-h2 { margin: 0; }
.pa-sub { margin: calc(16 * var(--u)) auto 0; max-width: 556px; }
.pa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: max(36px, calc(64 * var(--u))); }
.pa-card {
  position: relative; width: auto !important; height: auto !important; min-height: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 26px 26px 24px; border-radius: 18px;
}
.pa-card > * { position: static !important; }
.pa-card .logo { width: 120px; height: 52px; flex: none; }
.pa-card .desc { width: auto; margin: 14px 0 16px; font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.pa-card .dash { display: none; }
.pa-card .offer { margin-top: auto; min-height: 0; font-size: 16px; line-height: 1.35; }
.pa-card .note { margin-top: 4px; }
.pa-card .go {
  margin-top: 16px; width: auto; min-width: 0; height: auto; min-height: 36px; padding: 6px 18px;
  background: var(--ink); color: #fff; border-radius: 300px; font-size: 14px; line-height: 1.3;
}
.pa-card .go:hover { background: var(--orange); }
@media (min-width: 751px) and (max-width: 1000px) {
  .pa-orange { padding: calc(205 * var(--t)) calc(40 * var(--t)) calc(40 * var(--t)); }
  .pa-sub { margin-top: calc(16 * var(--t)); }
  .pa-grid { gap: 12px; margin-top: 40px; }
  .pa-card { padding: 20px 14px 18px; }
  .pa-card .logo { width: 104px; height: 44px; }
  .pa-card .desc { font-size: 14px; }
  .pa-card .offer { font-size: 14px; }
  .pa-card .go { font-size: 13px; min-height: 34px; padding: 4px 14px; }
}
@media (max-width: 750px) {
  .pa-orange { padding: calc(101 * var(--m)) 16px 40px; }
  .pa-sub { margin-top: calc(14 * var(--m)); }
  .pa-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
  /* carte horizontale : logo à gauche, texte à droite */
  .pa-card { display: grid; grid-template-columns: 76px 1fr; column-gap: 14px; align-items: start; text-align: left; padding: 16px 16px 14px; border-radius: 14px; }
  .pa-card .logo { grid-row: 1 / span 4; width: 76px; height: 40px; margin-top: 2px; }
  .pa-card .desc { margin: 0; font-size: 13.5px; line-height: 1.45; text-align: left; }
  .pa-card .offer { width: auto; margin-top: 8px; font-size: 14px; text-align: left; }
  .pa-card .go { justify-self: start; margin-top: 10px; min-height: 32px; padding: 4px 14px; font-size: 13px; }
}

/* ---------- Pied de page ---------- */
.site-footer { background: #fff; color: var(--ink); border-top: 4px solid var(--orange); font-family: var(--f-hl); }
.ft-inner {
  max-width: 1210px; margin: 0 auto; padding: 72px 32px 48px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 48px;
}
.ft-logo img { display: block; width: 175px; height: auto; }
.ft-brand p { margin: 18px 0 0; max-width: 300px; font-size: 15px; line-height: 1.6; color: var(--grey-600); text-wrap: pretty; }
.ft-lalux { display: block; width: 61px; height: auto; margin-top: 20px; }
.ft-title { margin: 6px 0 16px; font-family: var(--f-din-b); font-size: 14px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.ft-col ul { list-style: none; margin: 0; padding: 0; }
.ft-col li { margin-bottom: 10px; font-size: 16px; line-height: 1.45; }
.ft-col a, .ft-legal a { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease, color .2s; }
.ft-col a:hover, .ft-legal a:hover { background-size: 100% 1px; color: var(--orange-deep); }
.ft-muted { display: block; font-size: 13px; color: var(--grey-600); }
.ft-col address { font-style: normal; font-size: 16px; line-height: 1.6; }
.ft-route { display: inline-block; margin-top: 12px; font-family: var(--f-md); font-size: 15px; }
.ft-bottom {
  max-width: 1210px; margin: 0 auto; padding: 22px 32px 30px; border-top: 1px solid #E8E2DC;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-size: 13px; color: var(--grey-600);
}
.ft-bottom p { margin: 0; }
.ft-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ft-legal a { color: var(--grey-600); }
.ft-cookies { padding: 0; border: 0; background: none; font: inherit; color: var(--grey-600); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ft-cookies:hover { color: var(--orange-deep); }
@media (max-width: 1000px) {
  .ft-inner { grid-template-columns: 1fr 1fr; gap: 36px 32px; padding: 56px 32px 36px; }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 750px) {
  .ft-inner { grid-template-columns: 1fr; padding: 44px 24px 28px; gap: 28px; }
  .ft-bottom { flex-direction: column; padding: 20px 24px 28px; }
}

/* ---------- Panneau cookies ---------- */
.consent-panel {
  position: fixed; z-index: 150; right: 20px; bottom: 20px; width: min(420px, calc(100vw - 40px));
  background: #fff; color: var(--ink); border-radius: 16px; padding: 22px 22px 18px;
  box-shadow: 0 18px 50px rgba(60, 25, 0, .22); font-family: var(--f-hl); font-size: 14px; line-height: 1.5;
}
.consent-panel h2 { margin: 0 0 8px; font-family: var(--f-bb); font-size: 20px; font-weight: 400; }
.consent-row { display: flex; gap: 10px; align-items: center; margin: 14px 0; font-family: var(--f-md); font-size: 15px; cursor: pointer; }
.consent-row input, .map-remember input { width: 18px; height: 18px; accent-color: var(--orange-deep); }
.consent-actions { display: flex; align-items: center; gap: 16px; }
.consent-actions a { text-decoration: underline; }

/* ---------- Pages légales ---------- */
.pp-sec { position: relative; }
.crumbs { font-family: var(--f-md); font-size: 14px; color: var(--ink); margin-bottom: 28px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.legal { max-width: 860px; }
.legal h1 { margin: 0 0 6px; font-family: var(--f-xb); font-size: clamp(34px, calc(54 * var(--u)), 60px); line-height: 1.1; font-weight: 400; }
.legal .legal-date { margin: 0 0 32px; font-size: .8em; opacity: .85; }
.legal h2 { margin: 36px 0 10px; font-family: var(--f-din-b); font-size: 1.05em; font-weight: 400; }
.legal p, .legal li { font-size: clamp(16px, calc(18 * var(--u)), 20px); line-height: 1.7; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 1.3em !important; }
.legal li { margin-bottom: 6px; list-style: disc; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal code { font-size: .9em; background: rgba(255,255,255,.35); padding: 1px 5px; border-radius: 4px; }
mark.todo { background: #FFF3A6; color: #000; padding: 1px 4px; border-radius: 3px; font-family: var(--f-md); font-size: .85em; }

/* ---------- 404 ---------- */
.nf-sec { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 80px max(24px, calc(128 * var(--u))); color: #fff; }
.nf-code { margin: 0; font-family: var(--f-xb); font-size: clamp(90px, 16vw, 220px); line-height: .9; opacity: .25; }
.nf-sec h1 { margin: 10px 0 12px; font-family: var(--f-xb); font-size: clamp(32px, 4.5vw, 64px); font-weight: 400; line-height: 1.1; }
.nf-sec p { font-size: 18px; }
.nf-links { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; padding: 0; margin: 28px 0 0; }
.nf-links .btn-outline { height: 44px; padding: 0 24px; font-size: 15px; }
@media (max-width: 750px) {
  .ct-form { height: 640px !important; }
  .ct-legal { top: 566px; width: calc(100% - 50px); }
}

/* Contraste AA : petits textes orange sur fond blanc en orange foncé (les fonds orange restent #FF6200) */
.btn-outline:not(.white) { color: var(--orange-deep); border-color: var(--orange-deep); }
.btn-outline:not(.white):hover { color: #fff; border-color: transparent; }
.pa-card .offer, .pa-card .note { color: var(--orange-deep); }
.map-route { color: var(--orange-deep); }
.nf-code { color: rgba(255,255,255,.6); opacity: 1; }
.pa-card .logo img { object-fit: contain; }
