/* CG Créations – feuille de style */

/* Polices hébergées sur le site (plus rapide, et aucune donnée envoyée à Google) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Kaushan Script'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/kaushan-script-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Kaushan Script'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/kaushan-script-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light dark;
  --rose: #D00070;
  --rose-fonce: #A8005A;
  --texte: #25292E;
  --texte-2: #3B4048;
  --gris: #5B616A;
  --bordure: #E6E7EA;
  --bordure-2: #DCDDE1;
  --fond-gris: #F6F6F7;
  --sombre: #25292E;
  --plus-sombre: #1C1F23;
  --footer-texte: #B9BEC6;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #FFFFFF; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--texte);
  background: #FFFFFF;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: var(--rose); }
a:hover { color: var(--rose-fonce); }
p, h1, h2, h3 { margin: 0; }
address { font-style: normal; }

.container { max-width: 1280px; margin: 0 auto; }

/* ---------- Typo ---------- */
.display .eyebrow { display: block; margin-bottom: 22px; line-height: 1.6; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--rose);
}
.display {
  font-weight: 900; font-size: clamp(42px, 7vw, 76px); line-height: 0.98;
  letter-spacing: -0.035em; text-transform: uppercase; color: var(--texte);
}
.display-md { font-size: clamp(36px, 5.5vw, 56px); }
.display-sm { font-size: clamp(30px, 4.5vw, 44px); line-height: 1; letter-spacing: -0.03em; }
.accent { color: var(--rose); }
.body-text { color: var(--texte-2); }
.center { display: flex; justify-content: center; }
.center-text { align-items: center; text-align: center; }

.stack { display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 36px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; font-family: inherit; font-weight: 800; font-size: 13px;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  padding: 16px 22px; line-height: 1.3; transition: background .15s, color .15s;
}
.btn-primary { background: var(--rose); color: #FFFFFF; border: 0; }
.btn-primary:hover { background: var(--rose-fonce); color: #FFFFFF; }
.btn-outline { background: #FFFFFF; border: 1.5px solid var(--rose); color: var(--texte); padding: 14.5px 26px; }
.btn-outline:hover { background: var(--rose); color: #FFFFFF; }
.btn-sm { letter-spacing: 0.02em; padding: 14px 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 6px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

/* ---------- En-tête ---------- */
.site-header {
  background: #FFFFFF; border-bottom: 1px solid var(--bordure);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  padding: 14px 24px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 20px;
}
.brand img { height: 72px; width: auto; }
.socials img { height: 22px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; }
.main-nav a { color: var(--texte); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.is-current { color: var(--rose); border-bottom-color: var(--rose); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.socials { display: flex; gap: 4px; align-items: center; }
.socials a { display: flex; align-items: center; justify-content: center; width: 32px; height: 44px; }
.socials img { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; background: #FFFFFF; }
.hero-text { flex: 1 1 480px; display: flex; align-items: center; justify-content: flex-start; padding: 80px 48px 80px max(24px, calc((100vw - 1280px) / 2 + 24px)); }
.hero-text-inner { max-width: 560px; width: 100%; display: flex; flex-direction: column; gap: 22px; }
.lead { margin-top: 8px; font-size: 18px; color: var(--texte-2); max-width: 460px; }
.tagline { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-media { flex: 0 1 560px; position: relative; min-height: 640px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 25%; }
.hero-badge {
  position: absolute; right: 0; bottom: 0; background: var(--rose); color: #FFFFFF;
  text-decoration: none; padding: 22px 28px; font-weight: 800; font-size: 16px;
  line-height: 1.2; text-transform: uppercase; max-width: 240px;
}
.hero-badge:hover { background: var(--rose-fonce); color: #FFFFFF; }

/* ---------- Services ---------- */
.services { border-bottom: 1px solid var(--bordure); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.service {
  padding: 40px 28px; text-align: center; border-right: 1px solid var(--bordure);
  display: flex; flex-direction: column; gap: 10px;
}
.service:last-child { border-right: 0; }
.service h3 { font-size: 15px; font-weight: 800; text-transform: uppercase; }
.service p { font-size: 14px; color: var(--gris); }

/* ---------- Sections ---------- */
.section { padding: 88px 24px; }
.section-grey { background: var(--fond-gris); padding: 80px 24px; }
.cover-img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }

.workwear-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px; align-items: stretch;
}
.workwear-grid .stack { padding: 12px 8px; }
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.checklist li { display: flex; gap: 10px; align-items: center; }
.checklist li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpolyline points='6 10.5 9 13 14 7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* ---------- Portfolio ---------- */
.portfolio-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; }
.filter {
  font-family: inherit; font-size: 13px; font-weight: 700; padding: 10px 14px; min-height: 40px;
  cursor: pointer; border: 1px solid var(--bordure-2); background: #FFFFFF; color: var(--texte);
}
.filter:hover { border-color: var(--rose); }
.filter[aria-pressed="true"] { border-color: var(--rose); background: var(--rose); color: #FFFFFF; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.work { margin: 0; position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #FFFFFF; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work:hover img { transform: scale(1.04); }
.work.is-logo img { object-fit: contain; padding: 36px 36px 64px; }
.work.is-logo:hover img { transform: none; }
.work figcaption { position: absolute; left: 0; bottom: 0; background: #FFFFFF; padding: 10px 14px; display: flex; flex-direction: column; }
.work-title { font-size: 14px; font-weight: 800; text-transform: uppercase; line-height: 1.3; }
.work-tech { font-size: 12px; color: var(--gris); }
#more-btn { min-height: 48px; }

/* ---------- Clients (défilement) ---------- */
.clients { padding: 56px 24px; border-bottom: 1px solid var(--bordure); }
.marquee {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { margin: 0; padding: 0; list-style: none; display: flex; gap: 56px; width: max-content; align-items: center; animation: cg-scroll 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.client { flex: 0 0 auto; width: 150px; height: 90px; display: flex; align-items: center; justify-content: center; }
.client img { width: auto; height: auto; max-width: 150px; max-height: 80px; object-fit: contain; }
@keyframes cg-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: stretch; }
.about-img { min-height: 480px; object-position: 60% 50%; }
.why { background: var(--fond-gris); padding: 36px 32px; display: flex; flex-direction: column; gap: 22px; }
.why-item { display: flex; flex-direction: column; gap: 4px; }
.why-item strong { font-weight: 700; }
.why-item span { font-size: 14px; color: var(--gris); }

/* ---------- Contact & pied de page ---------- */
.contact { background: var(--sombre); color: #FFFFFF; padding: 44px 24px; }
.contact-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.contact-title { display: flex; flex-direction: column; gap: 2px; }
.contact-title h2 { font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1.2; }
.script { font-family: 'Kaushan Script', cursive; font-size: 30px; line-height: 1.2; }
.contact-info { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; font-weight: 500; }
.contact-info a { color: #FFFFFF; text-decoration: none; }
.contact-info a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer { background: var(--plus-sombre); color: var(--footer-texte); padding: 18px 24px; font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--footer-texte); }
.site-footer a:hover { color: #FFFFFF; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  html { scroll-padding-top: 20px; }
  .site-header { position: static; }
  .header-inner { justify-content: center; }
  .main-nav { justify-content: center; gap: 6px 18px; }
  .main-nav a { padding: 10px 0 4px; }
  .service { border-right: 0; border-bottom: 1px solid var(--bordure); }
  .service:last-child { border-bottom: 0; }
}
@media (max-width: 1100px) {
  .hero-media { flex-basis: 100%; min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .hero-text { padding: 48px 16px; }
  .hero-media { flex-basis: 100%; min-height: 0; aspect-ratio: 4 / 5; }
  .section, .section-grey { padding: 56px 16px; }
  .clients, .contact { padding-left: 16px; padding-right: 16px; }
  .cover-img { min-height: 340px; }
  .about-img { min-height: 340px; }
  .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .work figcaption { padding: 8px 10px; }
  .work-title { font-size: 12px; }
  .work.is-logo img { padding: 20px 20px 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .work img { transition: none; }
}

/* ---------- Pages simples (404, confidentialité) ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 72px 24px 88px; display: flex; flex-direction: column; gap: 18px; }
.page h2 { font-size: 20px; font-weight: 800; margin-top: 18px; }
.page p, .page li { color: var(--texte-2); }
.page ul { margin: 0; padding-left: 20px; }
.simple-header .header-inner { justify-content: space-between; }

/* ---------- Mode sombre du téléphone ----------
   Certains navigateurs (Samsung Internet notamment) assombrissent d'office
   les sites qui ne proposent pas leur propre version sombre. Le site déclare
   donc une « version sombre » identique à la version claire : le navigateur
   n'y touche plus et le fond reste blanc. */
@media (prefers-color-scheme: dark) {
  html, body { background: #FFFFFF; color: #25292E; }
  .site-header, .hero, .work, .work figcaption, .filter, .btn-outline { background-color: #FFFFFF; }
  .section-grey, .why { background-color: #F6F6F7; }
  .contact { background-color: #25292E; color: #FFFFFF; }
  .site-footer { background-color: #1C1F23; color: #B9BEC6; }
  .display, .main-nav a, .filter, .btn-outline, .tagline, .work-title { color: #25292E; }
  .eyebrow, .accent, .main-nav a.is-current { color: #D00070; }
  .btn-primary, .filter[aria-pressed="true"], .hero-badge { background-color: #D00070; color: #FFFFFF; }
}

/* ---------- Cartes « services » de l'accueil (cliquables) ---------- */
.service { position: relative; }
.service h3 a { color: var(--texte); text-decoration: none; }
.service h3 a::after { content: ""; position: absolute; inset: 0; }
.service h3 a:focus-visible { outline: none; }
.service:focus-within { outline: 3px solid var(--rose); outline-offset: -3px; }
.service-more { margin-top: auto; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--rose); }
.service:hover { background: var(--fond-gris); }
.service:hover .service-more { text-decoration: underline; }

/* ---------- Pages services ---------- */
.page-hero { padding: 64px 24px; border-bottom: 1px solid var(--bordure); }
.page-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: stretch; }
.page-hero-img { min-height: 440px; max-height: 560px; }
.breadcrumb { font-size: 13px; color: var(--gris); }
.breadcrumb a { color: var(--gris); }
.breadcrumb a:hover { color: var(--rose); }
.section-tight { padding-top: 48px; padding-bottom: 48px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--bordure); padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; background: #FFFFFF; }
.card h3 { font-size: 16px; font-weight: 800; text-transform: uppercase; }
.card p { font-size: 15px; color: var(--gris); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { background: #FFFFFF; padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; }
.step-num { font-size: 40px; font-weight: 900; line-height: 1; color: var(--rose); }
.step h3 { font-size: 16px; font-weight: 800; text-transform: uppercase; }
.step p { font-size: 15px; color: var(--gris); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 48px; align-items: start; }
.info-grid .checklist { font-size: 16px; gap: 14px; }
.info-grid .checklist li { align-items: flex-start; }
.info-grid .checklist li::before { margin-top: 3px; }
.checklist a { color: var(--rose); }

.faq-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 48px; align-items: start; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--bordure); }
.faq-item { border-bottom: 1px solid var(--bordure); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; font-weight: 700; color: var(--rose); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary h3 { font-size: 16px; font-weight: 700; }
.faq-item p { padding: 0 0 20px; color: var(--texte-2); }

.service-links { display: flex; flex-wrap: wrap; gap: 10px; }
.service-link { background: #FFFFFF; border: 1px solid var(--bordure-2); color: var(--texte); text-decoration: none; font-weight: 700; font-size: 14px; padding: 12px 16px; }
.service-link:hover { border-color: var(--rose); color: var(--rose); }

/* ---------- Pied de page ---------- */
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 48px; padding: 28px 0 24px; }
.footer-title { color: #FFFFFF; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-col address { line-height: 1.8; }
.footer-bottom { border-top: 1px solid #33373D; padding-top: 16px; }

@media (max-width: 600px) {
  .page-hero { padding: 40px 16px; }
  .page-hero-img { min-height: 300px; }
}
.pos-40-30 { object-position: 40% 30%; }
.pos-50-50 { object-position: 50% 50%; }
.pos-60-50 { object-position: 60% 50%; }
.info-grid .checklist li { display: block; position: relative; padding-left: 30px; }
.info-grid .checklist li::before { position: absolute; left: 0; top: 0; margin-top: 3px; }

/* Mosaïque de photos en haut des pages services */
.hero-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-self: center; }
.hero-mosaic img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-mosaic img.tile-logo { object-fit: contain; background: #FFFFFF; border: 1px solid var(--bordure); padding: 18px; box-sizing: border-box; }
