@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

:root {
  /* Les logos sont noirs sur fond transparent : le site reste volontairement en thème clair. */
  color-scheme: light;
  --ink: #0a0a0a;
  --muted: #55595f;
  --bg: #f6f6f4;
  --surface: #fff;
  --line: #dcdcd8;
  --red: #d90d0d;
  --pink: #d6119b;
  --teal: #0b8f8a;
  --teal-bright: #36d0cc;
  --error: #b3261e;
  --ok: #0f6b3f;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

main { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Accroche */
.hero { padding-block: clamp(48px, 9vw, 96px) clamp(32px, 5vw, 56px); }
.hero h1 {
  margin: 0 0 .25em;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.hero p { max-width: 62ch; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.125rem); }

/* Activités */
.activities { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  --accent: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover, .card:focus-within { transform: translateY(-3px); box-shadow: 0 12px 28px rgb(0 0 0 / .09); }
.card--logistics { --accent: var(--red); }
.card--retro { --accent: var(--pink); }
.card--digital { --accent: var(--teal); }

.card h2 { display: flex; align-items: center; height: 84px; margin: 0 0 16px; }
.card h2 img { width: 100%; max-width: 270px; }
.card > p { margin: 0 0 20px; }

.partners { display: grid; gap: 16px; margin: 0 0 24px; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; }
.partners li { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.partners img { width: 88px; }

.card__link { margin-top: auto; color: var(--accent); font-weight: 600; text-decoration: none; }
/* Toute la carte est cliquable. */
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.card:hover .card__link { text-decoration: underline; }

/* Contact */
.contact {
  scroll-margin-top: 16px;
  margin-block: clamp(48px, 8vw, 88px);
  padding: clamp(24px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact h2 { margin: 0 0 24px; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }

form { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field--wide, .form-footer { grid-column: 1 / -1; }
label { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 600; }
abbr { color: var(--error); text-decoration: none; }

input, textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  border: 1px solid #8a8d91;
  border-radius: 8px;
}
textarea { display: block; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 0; border-color: var(--ink); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-footer { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.privacy { margin: 0; flex: 1 1 280px; color: var(--muted); font-size: .875rem; }

button {
  min-height: 48px;
  padding: 11px 32px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
button:hover { background: #333; }
button[disabled] { opacity: .6; cursor: progress; }

.status { margin: 0 0 24px; padding: 12px 16px; border-radius: 8px; border-left: 4px solid; }
.status--ok { background: #e8f5ee; color: var(--ok); }
.status--error { background: #fbeceb; color: var(--error); }
/* Sans JavaScript, contact.php redirige vers l'ancre du message à afficher. */
#contact-envoye, #contact-erreur { display: none; }
#contact-envoye:target, #contact-erreur:target { display: block; }

.site-footer { padding: 0 16px 32px; text-align: center; font-size: .875rem; color: var(--muted); }

/* Mentions légales */
.legal { max-width: 760px; padding-block: 32px 64px; overflow-wrap: anywhere; }
.legal h1 { margin: 24px 0 32px; font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 700; line-height: 1.15; }
.legal h2 { margin: 32px 0 8px; font-size: 1.125rem; font-weight: 600; }
.legal p { margin: 0 0 12px; }

@media (max-width: 960px) {
  .activities { grid-template-columns: minmax(0, 1fr); }
  .card h2 { height: auto; min-height: 56px; }
}
@media (max-width: 600px) {
  form { grid-template-columns: minmax(0, 1fr); }
  .form-footer button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover, .card:focus-within { transform: none; }
}

/* Page agence digitale */
.agency__back { margin: 32px 0 0; }
.back { font-weight: 600; text-decoration: none; }
.split { display: grid; gap: clamp(32px, 6vw, 72px); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.split > img { justify-self: center; width: 100%; max-width: 440px; }
.agency__hero { padding-block: clamp(32px, 5vw, 56px); }
.agency__logo { width: min(300px, 100%); margin-bottom: 24px; }
.agency h1 { margin: 0 0 16px; font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.agency h2 { margin: 0 0 16px; font-size: clamp(1.625rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.agency__lead { margin: 0 0 24px; color: var(--muted); font-size: clamp(1.0625rem, 1.8vw, 1.25rem); }
.agency__section { margin-block: clamp(48px, 8vw, 88px); }
.agency__prose { max-width: 72ch; }
.agency__prose p { margin: 0 0 16px; }

.btn {
  display: inline-block;
  padding: 11px 32px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}
.btn:hover { background: #333; }

.features { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features article { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.features img { width: 56px; margin-bottom: 12px; }
.features h3 { margin: 0 0 8px; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.features p { margin: 0; color: var(--muted); font-size: .9375rem; }

.skills { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.skills li { padding: 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .9375rem; }

@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .split, .features { grid-template-columns: minmax(0, 1fr); }
  .split > img { max-width: 300px; }
  /* Le texte passe avant l'illustration sur téléphone. */
  .split > img:first-child { order: 1; }
}
