/* =========================================================
   site.css — habillage inspiré de la structure de capcolor.fr
   (cartes blanches arrondies, bandeau d'accroche, tuiles de
   marques) aux couleurs ColorMarket : rouge, noir, blanc.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&text=ColorMarket&display=swap');

:root {
  --red: #d7202c;
  --red-dark: #b01822;
  --ink: #1b1d21;
  --ink-soft: #2a2d33;
  --text: #2b2f36;
  --bg: #f3f4f6;
  --white: #fff;
  --radius: 26px;
  --radius-sm: 12px;
  --container: 1240px;
  --font: 'Roboto Condensed', 'Arial Narrow', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-weight: 300; font-size: 1.15rem; line-height: 1.5;
  color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 700; line-height: 1.08; color: var(--ink); text-wrap: balance; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--container) + 48px); margin-inline: auto; padding-inline: 24px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; font: 700 1.05rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); border-radius: var(--radius-sm); background: transparent; color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--ink); color: #fff; }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--ink); color: #fff; transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand__logo { width: auto; height: 54px; flex: none; }
/* Même écriture que le logo : « Color » gras, « Market » normal */
.brand__name { font-family: Montserrat, var(--font); font-size: 1.55rem; font-weight: 400; letter-spacing: -.02em; line-height: 1; }
.brand__name b { font-weight: 700; }
.site-footer__logo { display: block; width: auto; height: clamp(110px, 12vw, 150px); }
.audience { display: flex; gap: 6px; margin-left: 8px; }
.audience a { text-decoration: none; font-weight: 700; padding: .45em 1em; border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 1rem; transition: background .2s, border-color .2s; }
.audience a:hover { background: var(--red); border-color: var(--red); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.site-nav__list { display: flex; gap: 22px; font-weight: 400; }
.site-nav__list a { text-decoration: none; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav__list a:hover { border-color: var(--red); }
.site-nav__phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.7rem; padding: 8px; cursor: pointer; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,22,26,.78), rgba(20,22,26,.55) 55%, rgba(20,22,26,.85)); }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(48px, 8vw, 96px) clamp(120px, 16vw, 220px); }
.hero__title { font-size: clamp(3rem, 9vw, 6.4rem); text-transform: uppercase; color: #fff; margin-bottom: .35em; letter-spacing: -.01em; }
.hero__title span { display: block; color: var(--red); }
.hero__lead { max-width: 46ch; font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Bandeau d'accroche */
.pitch { position: relative; z-index: 3; background: var(--red); color: #fff; padding-block: clamp(56px, 8vw, 96px) clamp(28px, 4vw, 48px); text-align: center; }
.pitch__kicker { font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .3em; }
.pitch__title { font-size: clamp(2.1rem, 5vw, 3.4rem); color: var(--ink); }
.pitch .btn { margin-top: 8px; border-color: #fff; color: #fff; }
.pitch .btn:hover { background: #fff; color: var(--red); }
.pitch__photo { margin: clamp(32px, 5vw, 56px) auto 0; max-width: 820px; border-radius: var(--radius); overflow: hidden; }
.pitch__photo img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: center 30%; }
/* Scotch de peintre : porte les taches, se décolle au défilement (js/main.js) */
.tape { display: none; overflow-x: clip; position: relative; z-index: 4; height: clamp(40px, 4vw, 66px); pointer-events: none; }
.js .tape { display: block; }
.tape--top { position: absolute; left: 0; width: 100%; bottom: calc(100% - 1px); }
.tape--bottom { margin-top: -1px; }
.tape__sheet { position: absolute; inset: 0; filter: drop-shadow(0 1px 1px rgba(70, 50, 20, .1)); }
/* Papier crêpé mat, grain fin (bruit SVG) et léger reflet */
.tape__clip { position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 40%, rgba(120,95,50,.05)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .55' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .34 0 0 0 0 .2 .32 0 0 0 -.11'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), #efe6cf; }
.tape__clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Partie décollée : le ruban replié sur lui-même (dos plus clair), pliure douce, ombre légère */
.tape__flap { position: absolute; left: 0; top: 0; height: 100%; width: 0; opacity: 0; transform-origin: 0 50%; will-change: transform, width;
  filter: drop-shadow(2px 3px 4px rgba(70, 50, 20, .12)); }
.tape__under { position: absolute; left: 0; right: 0; top: -4%; bottom: -4%;
  clip-path: polygon(0 3.8%, 100% 0, 100% 100%, 0 96.2%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .55' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .34 0 0 0 0 .2 .32 0 0 0 -.11'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(90deg, #e7dcc0, #f7f1e2 22%, #f3ebd8 70%, #ece2c8);
  -webkit-mask-image: linear-gradient(90deg, #000 80%, rgba(0,0,0,.35));
  mask-image: linear-gradient(90deg, #000 80%, rgba(0,0,0,.35)); }
.tape__curl { position: absolute; top: 0; bottom: 0; left: -6px; width: 12px; border-radius: 50% / 10%;
  background: linear-gradient(90deg, rgba(130,100,50,.22), #e6dbbd 30%, #fcf9f0 55%, #ece2c8 80%, rgba(130,100,50,.12)); }
.cards { position: relative; z-index: 1; margin-top: 8px; }

/* Cartes blanches */
.card { background: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 64px); margin-bottom: 28px; }
.card__kicker { color: var(--red); font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.4rem); text-transform: uppercase; margin-bottom: .1em; }
.card__title { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
.chips { display: flex; flex-wrap: wrap; gap: 14px 16px; margin: 24px 0 32px; }
.chips a { display: inline-block; padding: .55em 1.1em; border: 1.5px solid var(--red); border-radius: var(--radius-sm); text-decoration: none; font-weight: 400; color: var(--ink); transition: background .2s, color .2s; }
.chips a:hover { background: var(--red); color: #fff; }
.card p:last-child { margin-bottom: 0; }
.card__text { max-width: 78ch; }

/* Bienvenue */
.welcome { padding-block: 24px 28px; }
.welcome__head { text-align: center; }
.welcome__head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.welcome__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.welcome__photos figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.welcome__photos img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.welcome__wide { grid-column: 1 / -1; }
.welcome__wide img { aspect-ratio: 16 / 8; }

/* Marques */
.brands { background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 56px); margin-bottom: 28px; }
.brands__title { text-align: center; font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1em; }
.brands__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.brands__tile { background: var(--bg); color: var(--ink); border-radius: var(--radius-sm); min-height: 130px; display: grid; place-items: center; padding: 18px 24px; text-align: center; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -.01em; }
.brands__tile img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; }
.brands__tile--serif { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-style: italic; }

/* Magasin */
.store { padding-block: clamp(56px, 8vw, 96px); background: #fff; }
.store__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.store__title { color: var(--red); font-size: clamp(2.1rem, 5vw, 3.2rem); }
.store h3 { font-size: 1.25rem; margin: 1.4em 0 .2em; }
.store address { font-style: normal; font-size: 1.3rem; }
.store a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.store__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store__map { border-radius: var(--radius); overflow: hidden; min-height: 360px; background: var(--bg); }
.store__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }

/* Contact */
.contact { padding-block: clamp(48px, 7vw, 88px); }
.js .contact { padding-bottom: calc(clamp(32px, 5vw, 64px) + clamp(40px, 4vw, 66px)); } /* place pour le scotch du pied de page */
.contact__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.contact-form__title { font-size: 1.8rem; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form__field { margin-bottom: 16px; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.contact-form input[type=text], .contact-form input[type=tel], .contact-form input[type=email], .contact-form select, .contact-form textarea {
  width: 100%; font: 400 1.05rem var(--font); padding: .7em .9em; border: 1.5px solid #cdd2d9; border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid rgba(215,32,44,.3); border-color: var(--red); }
.contact-form__consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 300 !important; font-size: .95rem; margin-bottom: 16px !important; }
.contact-form__consent input { margin-top: 5px; accent-color: var(--red); }
.contact-form__trap { position: absolute; left: -9999px; }
.contact-form__status { margin: 14px 0 0; font-weight: 700; }
.contact-form__status.is-error { color: var(--red-dark); }
.contact-form__status.is-success { color: #1a7a3c; }
.contact__infos { display: grid; gap: 18px; font-style: normal; }
.contact__info { display: flex; gap: 14px; text-decoration: none; align-items: flex-start; }
.contact__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; }
.contact__label { display: block; font-weight: 700; color: var(--ink); }

/* Pied de page */
.site-footer { position: relative; background: var(--ink); color: #c4c9d1; padding-block: 48px 90px; font-size: 1rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; align-items: center; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 .4em; }

/* Barre d'appel mobile */
.callbar { display: none; position: fixed; inset: auto 0 0 0; z-index: 90; background: var(--ink); padding: 8px; gap: 8px; box-shadow: 0 -6px 20px rgba(0,0,0,.25); }
.callbar a { flex: 1; text-align: center; text-decoration: none; font-weight: 700; padding: .8em; border-radius: var(--radius-sm); color: #fff; border: 2px solid rgba(255,255,255,.4); }
.callbar a:first-child { background: var(--red); border-color: var(--red); }

/* Apparition douce */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .tape { display: none; } .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Tablette / mobile */
@media (max-width: 1180px) {
  .audience { display: none; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); padding: 8px 24px 24px; display: none; border-top: 1px solid rgba(255,255,255,.12); }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-nav__phone { padding: 14px 0; }
  .site-nav__audience { display: flex !important; gap: 8px; padding-top: 16px; }
}
.site-nav__audience { display: none; }
@media (max-width: 800px) {
  body { font-size: 1.08rem; }
  .store__grid, .contact__grid { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
  .welcome__photos { grid-template-columns: 1fr; }
  .callbar { display: flex; }
  .pitch__photo img { aspect-ratio: 4 / 3; }
  }
@media (max-width: 480px) {
  .brand__name { font-size: 1.3rem; } .brand__logo { height: 46px; }
  .brands__grid { grid-template-columns: 1fr 1fr; }
  .brands__tile { min-height: 100px; }
}
