/* ==========================================================================
   Antonin Seichepine - Portfolio
   Feuille de style partagée (tokens + composants + responsive)
   ========================================================================== */

/* Polices chargées via <link rel="preconnect"/stylesheet"> dans le <head> de
   chaque page (plus rapide qu'un @import, qui bloque le rendu). Bebas Neue +
   Inter sont chargées sur toutes les pages ; Cormorant Garamond (Guilbaud) et
   Source Sans 3 (Octy) ne sont chargées que sur les pages qui les utilisent. */

:root {
  /* Palette */
 --color-coral:     #ee747b;
 --color-rose:      #de545d;
 --color-green:     #3e6b49;
 --color-offwhite:  #ededeb;
 --color-nearblack: #2b2724;

  /* Variante accessible du corail : même famille de teinte, assombrie pour
     respecter un contraste AA (4.5:1+) partout où le corail sert de texte
     lisible ou de fond avec du texte clair (boutons, tags, liens). Le
     corail clair d'origine reste utilisé pour les grands titres décoratifs
     et les accents visuels, où il ne porte pas de lecture fonctionnelle. */
 --color-coral-text: var(--color-coral); /* revenu au corail clair d'origine, a la demande d'Antonin */
 --color-muted-text: #6e6861;

 --color-primary:        var(--color-coral);
 --color-primary-hover:  var(--color-rose);
 --color-accent:         var(--color-green);

 --color-surface:        var(--color-offwhite);
 --color-surface-dark:   var(--color-nearblack);

 --color-text:           var(--color-nearblack);
 --color-text-on-dark:   var(--color-offwhite);
 --color-text-muted:     rgba(43, 39, 36, 0.55);

 --color-border:         rgba(43, 39, 36, 0.12);
 --color-border-strong:  rgba(43, 39, 36, 0.28);

  /* Fonts */
 --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
 --font-body:    'Inter', 'Helvetica Neue', sans-serif;

  /* Radius / shadows / transitions */
 --radius-sm: 3px;
 --radius-md: 4px;
 --radius-lg: 8px;
 --radius-full: 9999px;
 --shadow-sm: 0 2px 6px rgba(43, 39, 36, 0.10);
 --shadow-md: 0 4px 16px rgba(43, 39, 36, 0.12);
 --transition-fast: 150ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---------- Accessibilité : lien d'évitement ---------- */
.skip-link {
  position: absolute; top: -100px; left: 12px; z-index: 1000;
  background: var(--color-nearblack); color: var(--color-offwhite);
  padding: 12px 20px; border-radius: var(--radius-sm); text-decoration: none;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Accessibilité : respect de prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--color-offwhite);
  color: var(--color-nearblack);
  font-family: var(--font-body);
 -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
::selection { background: var(--color-coral); color: var(--color-offwhite); }

/* ---------- Keyframes ---------- */
@keyframes spinCW { to { transform: rotate(360deg); } }
@keyframes spinCCW { to { transform: rotate(-360deg); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes marqB { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes bgFadeUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rayDeploy { 0% { transform: scale(.04) rotate(-38deg); opacity: 0; } 55% { opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes logoFrameIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes octyBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-22px) rotate(2deg); } }
@keyframes blobFloat { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(0,-16px) scale(1.04); } }
@keyframes msyRise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes msyPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes msyGlow { 0%, 100% { filter: drop-shadow(0 18px 40px rgba(207,45,30,.26)); } 50% { filter: drop-shadow(0 22px 62px rgba(207,45,30,.5)); } }

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 56px; }
.section { padding: 100px 56px; }
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .section { padding: 64px 24px; }
}

/* ---------- Nav ---------- */
.pnav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 56px; background: rgba(237,237,235,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43,39,36,.08);
}
.pnav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--color-nearblack); }
.pnav-mark { width: 30px; height: 30px; animation: spinCW 26s linear infinite; }
.pnav-mark img { width: 100%; height: 100%; display: block; }
.pnav-name { font-family: var(--font-display); font-size: 22px; letter-spacing: .06em; }
.pnav-links { display: flex; align-items: center; gap: 34px; }
.pnav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.pnav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-nearblack); margin: 5px 0; }
.dispo-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--color-green); font-size: 12px; white-space: nowrap; }
.dispo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-green); animation: blink 1.4s steps(1) infinite; }

.ed-link { color: var(--color-nearblack); text-decoration: none; position: relative; font-size: 14px; font-weight: 500; }
.ed-link::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--color-coral); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.ed-link:hover::after { transform: scaleX(1); }
.ed-link.active { color: var(--color-coral); }
.ed-link.active::after { transform: scaleX(1); }

@media (max-width: 860px) {
  .pnav { padding: 18px 24px; }
  .pnav-brand,
  .pnav-toggle {
    position: relative;
    z-index: 2;
  }
  .pnav-toggle { display: block; min-width: 44px; min-height: 44px; }
  .pnav-toggle span { transition: transform .2s ease, opacity .2s ease; }
  .pnav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .pnav-toggle.open span:nth-child(2) { opacity: 0; }
  .pnav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .pnav-links { position: fixed; top: 70px; left: 0; right: 0; min-height: 0; background: var(--color-offwhite); flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; padding: 12px 24px 24px; display: flex; overflow: hidden; border-top: 1px solid rgba(43,39,36,.08); border-bottom: 2px solid var(--color-nearblack); box-shadow: 0 22px 46px rgba(43,39,36,.14); z-index: 1; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-14px); clip-path: inset(0 0 100% 0); transition: opacity .24s ease, transform .28s cubic-bezier(.2,.7,.2,1), clip-path .32s cubic-bezier(.2,.7,.2,1), visibility 0s linear .32s; }
  .pnav-links.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); clip-path: inset(0 0 0 0); transition-delay: 0s; }
  .pnav-links .ed-link, .pnav-links .dispo-pill { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: flex-start; font-family: var(--font-body); font-size: 18px; font-weight: 600; letter-spacing: 0; border-bottom: 1px solid rgba(43,39,36,.1); opacity: 0; transform: translateY(-8px); transition: opacity .22s ease, transform .26s cubic-bezier(.2,.7,.2,1); }
  .pnav-links.open .ed-link,
  .pnav-links.open .dispo-pill { opacity: 1; transform: translateY(0); }
  .pnav-links.open .ed-link:nth-child(1) { transition-delay: .04s; }
  .pnav-links.open .ed-link:nth-child(2) { transition-delay: .07s; }
  .pnav-links.open .ed-link:nth-child(3) { transition-delay: .10s; }
  .pnav-links.open .ed-link:nth-child(4) { transition-delay: .13s; }
  .pnav-links.open .ed-link:nth-child(5) { transition-delay: .16s; }
  .pnav-links.open .dispo-pill { transition-delay: .19s; }
  .pnav-links .ed-link::after { display: none; }
  .pnav-links .ed-link.active { color: var(--color-coral); }
  .pnav-links .dispo-pill { margin-top: 18px; border-bottom: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
  .dispo-pill { order: 99; }
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px; background: var(--color-coral-text); color: var(--color-offwhite);
  text-decoration: none; font-family: var(--font-body); font-weight: 600; font-size: 16px; letter-spacing: .01em;
  padding: 16px 28px; border-radius: var(--radius-sm); transition: background .15s ease, transform .15s ease; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--color-nearblack); transform: translateY(-2px); }
.btn-primary:hover .btn-sun { transform: rotate(90deg); }
.btn-primary:active { transform: scale(.97); }
.btn-sun { width: 18px; height: 18px; display: block; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 12px; background: transparent; color: var(--color-nearblack);
  text-decoration: none; font-family: var(--font-body); font-weight: 600; font-size: 16px; letter-spacing: .01em;
  padding: 16px 28px; border-radius: var(--radius-sm); border: 1px solid var(--color-nearblack);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.btn-secondary:hover { background: var(--color-coral-text); color: var(--color-offwhite); border-color: var(--color-coral-text); transform: translateY(-2px); }
.btn-secondary:active { transform: scale(.97); }

/* ---------- Hero words ---------- */
.hword { display: inline-block; transition: color .2s ease, transform .3s cubic-bezier(.2,.7,.2,1); cursor: default; }
.hword:hover { color: var(--color-coral); transform: translateY(-6px) rotate(-1.5deg); }

/* ---------- Tools marquee ---------- */
.tools-band { border-top: 2px solid var(--color-nearblack); border-bottom: 2px solid var(--color-nearblack); padding: 16px 0; overflow: hidden; }
.tools-track { display: flex; width: max-content; animation: marqB 30s linear infinite; }
.tool-w { display: inline-flex; align-items: center; gap: 20px; padding: 0 22px; font-family: var(--font-display); font-size: 38px; letter-spacing: .03em; color: var(--color-nearblack); white-space: nowrap; transition: color .18s ease; }
.tool-w:hover { color: var(--color-coral); }
.tool-dot { width: 9px; height: 9px; border-radius: 9999px; background: var(--color-coral); display: block; flex: none; }
@media (max-width: 700px) { .tool-w { font-size: 26px; } }

/* ---------- Works rows ---------- */
.wrow { position: relative; overflow: hidden; display: block; color: var(--color-nearblack); text-decoration: none; border-bottom: 2px solid var(--color-nearblack); transition: color .35s ease; }
.wrow .wfill { position: absolute; inset: 0; background: var(--color-coral-text); transform: translateY(101%); transition: transform .5s cubic-bezier(.5,0,.1,1); z-index: 0; }
.wrow:hover .wfill { transform: translateY(0); }
.wrow:hover { color: #fff; }
.wrow:hover .wrole, .wrow:hover .wdesc { color: #fff !important; }
.wrow:hover .wtitle { color: var(--color-nearblack) !important; }
.wrow:hover .wthumb-img { transform: scale(1.07); }
.wrow:hover .wgo { opacity: 1; transform: translateX(0); color: #fff; }
.wrow:hover .waccent { opacity: 1; }
.wrow:hover .sun-peek { filter: brightness(0) invert(1); }
.wcontent { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 36px 56px; display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: center; }
.waccent { position: absolute; top: 50%; left: -104px; transform: translateY(-50%); width: 150px; height: 300px; display: flex; align-items: center; justify-content: center; opacity: .9; pointer-events: none; transition: opacity .35s ease; }
.wrole { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #5EA26F; transition: color .3s ease; display: block; margin-bottom: 10px; }
.wtitle { font-family: var(--font-display); font-size: 76px; line-height: .9; transition: color .3s ease; color: var(--color-nearblack); display: block; }
.wdesc { font-size: 15px; line-height: 1.5; color: var(--color-nearblack); max-width: 520px; transition: color .3s ease; display: block; margin-top: 6px; }
.wgo { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--color-coral-text); opacity: 0; transform: translateX(-14px); transition: opacity .3s ease, transform .35s ease; display: inline-block; }
.wthumb { position: relative; aspect-ratio: 16/11; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.wthumb-img { width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
@media (max-width: 860px) {
  .wcontent { grid-template-columns: 1fr; padding: 28px 24px; gap: 20px; }
  .wtitle { font-size: 48px; }
  .waccent { display: none; }
}

/* ---------- Cards / rows ---------- */
.cblock { transition: transform .2s ease; }
.cblock:hover { transform: translateY(-3px); }
.crow { transition: transform .2s ease, border-color .2s ease; }
.crow:hover { transform: translateY(-3px); border-color: var(--color-coral); }
.crow:hover .crow-arr { transform: translate(3px,-3px); }
.crow-arr { transition: transform .25s ease; display: inline-block; }

/* ---------- Filter buttons (page Projets) ---------- */
.fbtn { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 10px 20px; border-radius: 9999px; border: 1px solid rgba(43,39,36,.28); background: transparent; color: #4a443f; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.fbtn:hover { border-color: var(--color-nearblack); color: var(--color-nearblack); }
.fbtn.on { background: var(--color-coral-text); color: var(--color-offwhite); border-color: var(--color-coral-text); }

/* ---------- Creation tiles ---------- */
.ctile { position: relative; overflow: hidden; border: 1px dashed rgba(43,39,36,.32); border-radius: 8px; background: rgba(43,39,36,.035); min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s ease; }
.ctile:hover { transform: translateY(-4px); border-color: var(--color-coral); }
.ctile:hover .ctile-sun { animation-duration: 8s; opacity: .18; }
.ctile-sun { position: absolute; top: -18%; right: -14%; width: 62%; opacity: .09; animation: spinCW 44s linear infinite; pointer-events: none; }

/* ---------- Case study bento shots ---------- */
.gshot { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.gshot:hover { transform: translateY(-5px); }
.gshot:hover img { transform: scale(1.04); }
.gshot img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gnext { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.gnext:hover { transform: translateY(-4px); box-shadow: 0 26px 54px rgba(24,31,57,.3); }
.gnext:hover .gnext-arr { transform: translate(4px,-4px); }
.gnext-arr { transition: transform .25s ease; display: inline-block; }

/* ---------- Guilbaud brand accents (used only inside guilbaud.html) ---------- */
.glink { color: #ecc367; text-decoration: none; position: relative; }
.glink::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: #ecc367; transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.glink:hover::after { transform: scaleX(1); }

/* ---------- Octy brand accents ---------- */
.oaxe { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.oaxe:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(74,21,8,.28); }
.oexp { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.oexp:hover { transform: translateY(-8px) rotate(-4deg) scale(1.06); }
.olink { color: #4a1508; text-decoration: none; position: relative; }
.olink::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: #4a1508; transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.olink:hover::after { transform: scaleX(1); }
.otool { transition: transform .2s ease, background .2s ease, color .2s ease; }
.otool:hover { transform: translateY(-3px); background: #4a1508; color: #fbe9d2; }

/* ---------- MSY brand accents ---------- */
.msy-shot { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.msy-shot:hover { transform: translateY(-5px); }
.msy-shot:hover img { transform: none; }
.msy-shot img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.msy-didrow { transition: transform .25s ease, border-color .25s ease; }
.msy-didrow:hover { transform: translateY(-4px); border-color: var(--color-coral); }
.msy-chip { transition: background .2s ease, color .2s ease, border-color .2s ease; }
.msy-chip:hover { background: var(--color-coral); color: #f7f3ec; border-color: var(--color-coral); }
.msy-link { color: var(--color-coral); text-decoration: none; position: relative; }
.msy-link::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--color-coral); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.msy-link:hover::after { transform: scaleX(1); }
.msy-hero-logo { animation: msyRise 1s cubic-bezier(.2,.7,.2,1) both, msyPulse 4.6s ease-in-out 1.1s infinite, msyGlow 4.6s ease-in-out 1.1s infinite; }

/* ---------- Footer ---------- */
.pfoot { padding: 34px 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 2px solid var(--color-nearblack); font-size: 13px; letter-spacing: .04em; color: #6a635c; }
.pfoot img { width: 20px; height: 20px; }
.pfoot span:first-child { display: flex; align-items: center; gap: 10px; }
.pfoot-legal { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; letter-spacing: normal; }
.pfoot-legal .ed-link { font-size: 13px; }
.pfoot-cookies { background: none; border: none; padding: 0; font-family: inherit; font-size: 13px; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pfoot-cookies:hover { color: var(--color-coral-text); }
@media (max-width: 700px) { .pfoot { padding: 24px; text-align: left; } }

/* ---------- Bannière cookies ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; max-width: 620px; margin: 0 auto;
  background: var(--color-nearblack); color: var(--color-offwhite); border-radius: 12px;
  padding: 24px 28px; box-shadow: 0 24px 60px rgba(0,0,0,.28); z-index: 900;
  display: flex; flex-direction: column; gap: 18px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 14px; line-height: 1.55; color: #e4dfd9; }
.cookie-banner a { color: var(--color-coral); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-banner .btn-primary, .cookie-banner .btn-secondary { padding: 10px 20px; font-size: 14px; }
.cookie-banner .btn-secondary { border-color: rgba(237,237,235,.5); color: var(--color-offwhite); }
.cookie-banner .btn-secondary:hover { background: var(--color-offwhite); color: var(--color-nearblack); border-color: var(--color-offwhite); }
@media (max-width: 560px) { .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 20px; } }

/* ---------- Responsive type scale for big display headings ---------- */
.h-hero { font-family: var(--font-display); font-weight: 400; }
@media (max-width: 1100px) {
  h1, .h-hero { font-size: 88px !important; }
}
@media (max-width: 640px) {
  h1, .h-hero { font-size: clamp(48px, 16vw, 58px) !important; }
  h2 { font-size: clamp(38px, 12vw, 44px) !important; }
}

/* ---------- Logo decoratif bas de page (CTA) ---------- */
@media (max-width: 780px) {
  .cta-bg-logo { width: 240px !important; opacity: 1 !important; }
}
@media (max-width: 480px) {
  .cta-bg-logo { display: none; }
}

/* ---------- Responsive hardening for inline page layouts ---------- */
@media (max-width: 1023px) {
  html,
  body {
    overflow-x: clip;
  }

  .wrap { max-width: 100%; }
  .pnav-links { gap: 22px; }
  .pfoot { justify-content: flex-start; }

  .g-hero-grid, .o-hero-grid, .m-hero-grid, .apropos-hero {
    gap: 40px !important;
  }

  .g-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas:
      "mac mac"
      "dev dev"
      "tote card" !important;
    grid-auto-rows: minmax(190px, auto) !important;
  }

  section p.h-hero[style*="font-size:46px"] {
    font-size: 32px !important;
  }

  section p.h-hero[style*="font-size:78px"] {
    font-size: 52px !important;
  }

  .h-hero[style*="font-size:64px"] {
    font-size: 48px !important;
  }

  .h-hero[style*="font-size:60px"] {
    font-size: 44px !important;
  }

  .h-hero[style*="font-size:70px"] {
    font-size: 48px !important;
  }

  .h-hero[style*="font-size:56px"] {
    font-size: 40px !important;
  }
}

@media (max-width: 900px) {
  .pnav {
    z-index: 1000;
  }

  .pnav-links {
    z-index: 999;
  }

  body > header div[style*="position:absolute"][style*="animation:spin"],
  body > section div[style*="position:absolute"][style*="animation:spin"] {
    width: clamp(78px, 24vw, 112px) !important;
    top: 14px !important;
    right: 14px !important;
    bottom: auto !important;
    left: auto !important;
    opacity: 1 !important;
    z-index: 0 !important;
  }

  body > section div[style*="position:absolute"][style*="animation:spin"] {
    width: clamp(70px, 22vw, 104px) !important;
    top: 18px !important;
    right: 14px !important;
  }

  body > header > div[style*="position:relative"],
  body > section > div[style*="position:relative"] {
    position: relative;
    z-index: 2;
  }

  header div[style*="letter-spacing:.18em"],
  header div[style*="letter-spacing: .18em"],
  section span[style*="letter-spacing:.16em"],
  section span[style*="letter-spacing: .16em"],
  section span[style*="letter-spacing:.14em"],
  section span[style*="letter-spacing: .14em"],
  section span[style*="letter-spacing:.12em"],
  section span[style*="letter-spacing: .12em"],
  section div[style*="letter-spacing:.12em"],
  section div[style*="letter-spacing: .12em"] {
    font-size: 11px !important;
    letter-spacing: .12em !important;
    line-height: 1.35 !important;
  }

  header div[style*="letter-spacing:.18em"],
  header div[style*="letter-spacing: .18em"] {
    gap: 8px !important;
    flex-wrap: wrap;
    max-width: calc(100% - 118px);
    margin-bottom: 26px !important;
  }

  body > header,
  body > section {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  body > header {
    padding-top: 112px !important;
    padding-bottom: 56px !important;
    overflow: hidden !important;
  }

  body > section {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  section[data-group="cases"],
  section[aria-label="Outils"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .h-hero,
  h1,
  h2,
  .wtitle {
    overflow-wrap: anywhere;
  }

  h1,
  .h-hero {
    line-height: .9 !important;
  }

  p {
    max-width: 68ch;
  }

  .btn-primary,
  .btn-secondary,
  .fbtn,
  .pfoot-cookies {
    min-height: 44px;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
    text-align: center;
  }

  .coord-grid,
  .social-cv-grid,
  .skills-grid,
  .pourqui-grid,
  .prestation-row,
  .steps-grid,
  .faq-row,
  .g-hero-grid,
  .g-meta-grid,
  .g-process-grid,
  .g-charte-grid,
  .g-suite-grid > div,
  .o-hero-grid,
  .o-meta-grid,
  .o-stats-grid,
  .o-axes-grid,
  .o-antiaxe-grid,
  .o-charte-grid,
  .o-method-grid,
  .o-result-grid,
  .o-suite-grid,
  .o-logos-grid,
  .m-hero-grid,
  .m-meta-grid,
  .m-histoire-grid,
  .m-did-grid,
  .m-charte-grid,
  .m-press-grid,
  .apropos-hero {
    grid-template-columns: 1fr !important;
  }

  .g-hero-grid > div:last-child,
  .o-hero-grid > div:last-child,
  .m-hero-grid > div:last-child {
    justify-content: center !important;
    min-height: 260px !important;
  }

  .g-hero-grid > div:last-child img[src*="guilbaud-logo-hero"],
  .m-hero-grid > div:last-child img[src*="msy-logo-hero"] {
    width: min(70vw, 280px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .o-hero-grid > div:last-child img[src*="octy-logo-hero"] {
    width: min(86vw, 380px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .apropos-hero > div:last-child {
    overflow: hidden;
    isolation: isolate;
  }

  .apropos-hero > div:last-child > div:first-child {
    width: 110px !important;
    top: 14px !important;
    right: 14px !important;
    opacity: 1 !important;
    z-index: 1 !important;
  }

  .o-expr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .creations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .wcontent {
    grid-template-columns: 1fr !important;
  }

  .wthumb {
    max-width: 520px;
  }

  .ctile {
    min-height: 0 !important;
  }

  .gshot,
  .msy-shot,
  .oaxe {
    max-width: 100%;
  }

  iframe {
    width: 100% !important;
  }

  div[style*="height:600px"],
  div[style*="height:520px"] {
    height: min(62vh, 520px) !important;
    min-height: 360px;
  }

  .apropos-hero > div:last-child > div:last-child {
    height: min(72vw, 460px) !important;
  }

  section[style*="background-color:#2B2724"] p[style*="font-size:52px"],
  section[style*="background:var(--color-nearblack)"] > div > span[style*="font-size:60px"] + p {
    font-size: clamp(28px, 8.2vw, 38px) !important;
    line-height: 1.08 !important;
  }

  section div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:14px"],
  section div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:16px"],
  header div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:14px"],
  header div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:16px"] {
    justify-content: center !important;
  }

  section[style*="background-color:#2B2724"] .ed-link[style*="font-size:15px"] {
    display: inline-flex !important;
    align-items: center;
    min-height: 36px;
    font-size: 13px !important;
    transform: none !important;
    margin-top: 10px;
  }

  section div[style*="Disponible en alternance"] {
    align-items: center !important;
  }

  section[style*="background:var(--color-nearblack)"] > div > span[style*="font-size:60px"],
  section[style*="background:var(--color-nearblack)"] > div > span[style*="font-size:60px"] + p,
  section[style*="background:var(--color-nearblack)"] > div > span[style*="font-size:60px"] + p + span {
    text-align: center;
  }

  section[style*="background:var(--color-nearblack)"] > div > span[style*="font-size:60px"] {
    margin-left: auto;
    margin-right: auto;
  }

  .m-lookbook {
    column-count: 2 !important;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  body > header,
  body > section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  body > header {
    padding-top: 96px !important;
    padding-bottom: 46px !important;
  }

  body > section {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }

  .pnav {
    padding: 14px 20px;
  }

  .pnav-links {
    top: 62px;
    padding: 10px 20px 22px;
  }

  .pnav-name {
    font-size: 20px;
  }

  .pnav-mark {
    width: 28px;
    height: 28px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 360px;
    padding: 14px 20px;
    font-size: 15px;
    margin-left: auto;
    margin-right: auto;
  }

  section div[style*="Disponible en alternance"] > span {
    align-self: center;
  }

  .fbtn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .wcontent {
    padding: 24px 20px;
  }

  .wtitle {
    font-size: clamp(38px, 13vw, 48px) !important;
  }

  .wthumb {
    width: 100%;
    max-width: none;
  }

  .tool-w {
    gap: 14px;
    padding: 0 16px;
  }

  .creations-grid,
  .g-bento {
    grid-template-columns: 1fr !important;
  }

  .g-bento {
    grid-template-areas:
      "mac"
      "dev"
      "tote"
      "card" !important;
    grid-auto-rows: minmax(220px, auto) !important;
  }

  .o-expr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .m-lookbook {
    column-count: 1 !important;
  }

  div[style*="min-width:300px"] {
    min-width: 0 !important;
  }

  div[style*="padding:52px"],
  a[style*="padding:52px"] {
    padding: 32px 24px !important;
  }

  div[style*="padding:44px 40px"],
  div[style*="padding:40px 44px"],
  div[style*="padding:34px 36px"],
  div[style*="padding:34px"],
  a[style*="padding:34px"] {
    padding: 28px 22px !important;
  }

  div[style*="height:600px"],
  div[style*="height:520px"] {
    height: 420px !important;
    min-height: 320px;
  }

  .o-result-grid figure:first-child {
    padding: 34px 16px 28px !important;
  }

  .o-result-grid figure:first-child img[src*="octy-mockup-phones"] {
    width: 112% !important;
    max-width: none !important;
    transform: translateX(-2%);
  }

  .o-result-grid + div div[style*="height:600px"] {
    height: 650px !important;
    overflow: hidden;
  }

  .o-result-grid + div iframe[src*="octy-landing"] {
    width: 430px !important;
    max-width: none !important;
    height: 932px !important;
    transform: scale(calc((100vw - 40px) / 430));
    transform-origin: top left;
    border: 0;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }

  .cookie-banner .btn-primary,
  .cookie-banner .btn-secondary {
    max-width: none;
  }
}

@media (max-width: 430px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  body > header,
  body > section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body > header {
    padding-top: 88px !important;
  }

  h1,
  .h-hero {
    font-size: clamp(42px, 15vw, 54px) !important;
    letter-spacing: 0 !important;
  }

  h2 {
    font-size: clamp(34px, 11vw, 42px) !important;
    letter-spacing: 0 !important;
  }

  p {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .pnav {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pnav-links {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pfoot {
    padding: 24px 16px;
  }

  .o-expr-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .ctile > div[style*="padding:20px"] {
    padding: 14px !important;
  }

  div[style*="height:600px"],
  div[style*="height:520px"] {
    height: 360px !important;
    min-height: 280px;
  }

  body > header div[style*="position:absolute"][style*="animation:spin"],
  body > section div[style*="position:absolute"][style*="animation:spin"] {
    width: 76px !important;
    top: 12px !important;
    right: 12px !important;
    opacity: 1 !important;
  }

  body > section div[style*="position:absolute"][style*="animation:spin"] {
    width: 72px !important;
    top: 14px !important;
    right: 12px !important;
  }

  header div[style*="letter-spacing:.18em"],
  header div[style*="letter-spacing: .18em"],
  section span[style*="letter-spacing:.16em"],
  section span[style*="letter-spacing: .16em"],
  section span[style*="letter-spacing:.14em"],
  section span[style*="letter-spacing: .14em"],
  section span[style*="letter-spacing:.12em"],
  section span[style*="letter-spacing: .12em"],
  section div[style*="letter-spacing:.12em"],
  section div[style*="letter-spacing: .12em"] {
    font-size: 10px !important;
    letter-spacing: .1em !important;
  }

  header div[style*="letter-spacing:.18em"],
  header div[style*="letter-spacing: .18em"] {
    max-width: calc(100% - 102px);
  }

  .g-hero-grid > div:last-child,
  .o-hero-grid > div:last-child,
  .m-hero-grid > div:last-child {
    min-height: 220px !important;
  }

  .g-hero-grid > div:last-child img[src*="guilbaud-logo-hero"],
  .m-hero-grid > div:last-child img[src*="msy-logo-hero"] {
    width: min(68vw, 230px) !important;
  }

  .o-hero-grid > div:last-child img[src*="octy-logo-hero"] {
    width: min(88vw, 340px) !important;
  }

  .o-result-grid + div div[style*="height:600px"] {
    height: 610px !important;
  }

  .o-result-grid + div iframe[src*="octy-landing"] {
    transform: scale(calc((100vw - 32px) / 430));
  }
}

@media (max-width: 360px) {
  .pnav-name {
    font-size: 18px;
  }

  .btn-primary,
  .btn-secondary {
    max-width: none;
  }

  .o-expr-grid {
    grid-template-columns: 1fr !important;
  }
}
