/* ============================================================
   Atelier Jérôme — feuille de style partagée
   Tronc commun à toutes les pages : variables, en-tête, pied de
   page, bandeau cookies. Le CSS propre à une page reste dans son
   fichier, après le chargement de celle-ci.
   ============================================================ */

/* ── Polices, hébergées ici ──────────────────────────────────────────
   Servies depuis ce serveur et non depuis Google : le bandeau cookies
   promet qu'aucune donnée ne part chez un tiers, or charger une police
   depuis fonts.gstatic.com transmet l'adresse IP du visiteur à Google
   avant tout consentement. Licences OFL dans assets/fonts/.
   `unicode-range` fait que le navigateur ne télécharge « latin-ext »
   que si la page contient réellement un de ses caractères.
   ──────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-600-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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-700-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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-800-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-800-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/space-grotesk-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/space-grotesk-400-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/space-grotesk-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/space-grotesk-500-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/space-grotesk-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/space-grotesk-600-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-grotesk-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-grotesk-700-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;
}


/* ── remise à zéro ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── variables (thème clair) ──────────────────────────────────────
   Palette « tiède ». Le fond a quitté le blanc bleuté (#F7F9FD) et les
   surfaces le blanc pur (#FFFFFF) : aucun support réel n'est blanc pur,
   et c'est ce qui donnait à la page son air de gabarit sorti d'usine.
   Les gris passent du bleu au taupe, les ombres du bleu au brun.
   Le bleu de la marque, lui, n'a pas bougé — les documents imprimés
   (carte de visite, flyer, signature) l'utilisent tel quel.
   ─────────────────────────────────────────────────────────────────── */
:root {
  --bg: #F5F1EA;
  --surface: #FCFAF6;
  --surface2: #EDE8DE;
  --hairline: rgba(45,35,25,0.09);
  --hairline2: rgba(45,35,25,0.14);
  --blue: #1A6BFF;
  --blue-hi: #4D90FF;
  --blue-deep: #0A45C9;
  --blue-dim: rgba(26,107,255,0.07);
  --blue-mid: rgba(26,107,255,0.16);
  --ink: #1A2231;
  --ink2: #45505F;
  /* 4,68:1 sur le fond de page — au-dessus du seuil AA de 4,5:1.
     Le taupe « juste » à l'œil (#77796F) tombait à 3,93, soit moins
     lisible que le gris bleuté d'avant. Assombri de deux crans. */
  --muted: #6B6D62;
  --muted-lo: #A9A79B;
  --nav-bg: rgba(252,250,246,0.78);
  --nav-border: rgba(255,255,255,0.7);
  --cta-bg: #1A2231;
  --cta-fg: #FCFAF6;
  --shadow-sm: 0 1px 2px rgba(45,35,25,0.07);
  --shadow-md: 0 3px 10px rgba(45,35,25,0.08);
  --shadow-blue: 0 4px 14px rgba(26,107,255,0.20);
  --font-display: 'Plus Jakarta Sans','SF Pro Display','Inter',system-ui,sans-serif;
  --font-body: 'Space Grotesk',sans-serif;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.22,1,0.36,1);
  --r-sm: 8px;
  --r-xl: 24px;
  --green: #5A7A47;   /* olive : le vert vif jurait avec le fond chaud */
  --green-dim: rgba(90,122,71,0.10);
  --green-mid: rgba(90,122,71,0.22);
  --glass: rgba(255,255,255,0.75);
  --shadow-xs: 0 1px 2px rgba(45,35,25,0.07);
  --shadow-lg: 0 10px 22px rgba(45,35,25,0.09);
  --content-w: 1080px;   /* redéfini par les pages plus étroites */
}

/* ── variables (thème sombre) ──────────────────────────────────────
   Réchauffé lui aussi : le noir bleuté devient un charbon chaud, sinon
   le passage clair → sombre donne l'impression de changer de site.
   ─────────────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg: #14110D;
  --surface: #1D1913;
  --surface2: #262019;
  --hairline: rgba(245,241,234,0.08);
  --hairline2: rgba(245,241,234,0.14);
  --blue-dim: rgba(26,107,255,0.12);
  --blue-mid: rgba(26,107,255,0.24);
  --ink: #F2EDE4;
  --ink2: #D3CCC0;
  --muted: #8E877C;
  --muted-lo: #5C564D;
  --nav-bg: rgba(29,25,19,0.78);
  --nav-border: rgba(245,241,234,0.08);
  --cta-bg: #F2EDE4;
  --cta-fg: #14110D;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.45);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.45);
  --shadow-blue: 0 6px 20px rgba(26,107,255,0.35);
  --green-dim: rgba(52,210,127,0.10);
  --green-mid: rgba(52,210,127,0.20);
  --glass: rgba(255,255,255,0.05);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.55);
}

/* ── socle ── */
html { scroll-behavior:smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .5s var(--ease), color .5s var(--ease);
}

/* ── le grain ─────────────────────────────────────────────────────
   Nappe de bruit fixe par-dessus toute la page : c'est elle qui fait
   la différence entre « écran » et « matière ». Le motif est généré
   par le navigateur (filtre SVG feTurbulence en ligne) — aucun fichier
   à charger, aucune requête, environ 1 ko de CSS.
   `pointer-events:none` est indispensable : sans lui, cette couche
   couvrirait la page entière et plus aucun lien ne serait cliquable.
   En thème sombre, `multiply` noircirait tout : on repasse en normal
   et on baisse l'opacité, le grain se voit davantage sur fond foncé.
   ─────────────────────────────────────────────────────────────────── */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .18; mix-blend-mode: multiply;
  background-image: 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='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::after { mix-blend-mode: normal; opacity: .14; }
@media print { body::after { display: none; } }

/* ── navigation ── */
/* Logo empilé : « ATELIER » en petit au-dessus de « JÉRÔME » en gras.
   Les deux lignes sont des enfants (.brand-pre / .brand-name), d'où le
   flex vertical. Sans flex-direction:column le verrou saute et les deux
   mots repassent côte à côte. */
.nav-logo { font-family:var(--font-display); color:var(--ink); text-decoration:none; display:inline-flex; flex-direction:column; justify-content:center; gap:3px; letter-spacing:0; line-height:1; }
.brand-pre  { font-size:9px; font-weight:600; letter-spacing:3.4px; color:var(--muted); }
.brand-name { font-size:19px; font-weight:800; letter-spacing:.4px; color:var(--ink); display:inline-flex; align-items:baseline; }
.brand-name .dot { width:5px; height:5px; border-radius:50%; background:var(--blue); display:inline-block; margin-left:5px; animation:brand-dot 3s ease-in-out infinite; }
@keyframes brand-dot { 0%,100%{opacity:1;} 50%{opacity:.25;} }
.nav-right { display:flex; align-items:center; gap:2px; }
.nav-links { display:flex; gap:2px; }
.nav-links a { color:var(--muted); font-size:13px; font-weight:500; text-decoration:none; letter-spacing:0.2px; padding:8px 15px; border-radius:var(--r-pill); transition:color .25s var(--ease),background .25s var(--ease); }
.nav-links a:hover, .nav-links a.active { color:var(--ink); background:var(--surface2); }
.nav-cta {
  background: var(--cta-bg) !important; color: var(--cta-fg) !important;
  padding: 9px 18px !important; margin-left: 6px; border-radius: var(--r-pill) !important;
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background .25s var(--ease) !important;
}
.nav-cta:hover { background:var(--blue) !important; color:#fff !important; }
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--hairline2); background: transparent;
  color: var(--muted); cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease), color .25s var(--ease);
  margin-left: 6px;
}
.theme-toggle:hover { background:var(--surface2); color:var(--ink); }
.icon-sun { display:none; }
[data-theme="dark"] .icon-moon { display:none; }
[data-theme="dark"] .icon-sun { display:inline; }
.nav-mobile-toggle { display:none; width:36px; height:36px; border-radius:50%; border:1px solid var(--hairline2); background:transparent; color:var(--muted); cursor:pointer; font-size:18px; align-items:center; justify-content:center; transition:background .25s var(--ease); margin-left:6px; }
.nav-mobile-toggle:hover { background:var(--surface2); color:var(--ink); }
nav { position:fixed; top:14px; left:50%; transform:translateX(-50%); z-index:200; width:calc(100% - 36px); max-width:1140px; height:58px; display:flex; align-items:center; justify-content:space-between; padding:0 10px 0 24px; background:var(--nav-bg); backdrop-filter:blur(24px) saturate(180%); -webkit-backdrop-filter:blur(24px) saturate(180%); border:1px solid var(--nav-border); border-radius:var(--r-pill); box-shadow:var(--shadow-sm); transition:background .5s var(--ease),border-color .5s var(--ease); }

/* ── navigation repliée ── */
@media (max-width:900px) {
  .nav-links { display:none; }
  .nav-links.mobile-open { display:flex; flex-direction:column; position:fixed; top:80px; left:18px; right:18px; background:var(--surface); border:1px solid var(--hairline2); border-radius:20px; padding:12px; z-index:199; box-shadow:0 8px 32px rgba(0,0,0,0.12); }
  .nav-links.mobile-open a { padding:10px 16px; border-radius:var(--r-pill); }
  .nav-mobile-toggle { display:flex; }
}

/* ── pied de page ── */
/* Largeur figée volontairement : le pied de page fait 1080px sur toutes les
   pages, y compris celles dont le contenu est plus étroit (brief 860, faq 780,
   mentions légales 720). Utiliser var(--content-w) le ferait rétrécir. */
footer { border-top: 1px solid var(--hairline); padding: 48px 24px; max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-logo { font-family:var(--font-display); color:var(--ink); display:inline-flex; flex-direction:column; gap:2px; letter-spacing:0; line-height:1; }
.footer-logo .brand-pre  { font-size:9px; letter-spacing:3.4px; }
.footer-logo .brand-name { font-size:17px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 12px; color: var(--muted-lo); }

/* ── apparition au défilement ── */
.reveal { opacity:0; transform:translateY(20px); transition:opacity .7s var(--ease),transform .7s var(--ease); }
.reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── bandeau cookies ── */
#rgpd-banner{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:9999;width:calc(100% - 40px);max-width:720px;background:var(--surface);border:1px solid var(--hairline2);border-radius:var(--r-lg);padding:20px 24px;box-shadow:var(--shadow-md);display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;animation:rgpdUp .4s var(--ease) forwards;}
@keyframes rgpdUp{from{opacity:0;transform:translateX(-50%) translateY(20px);}to{opacity:1;transform:translateX(-50%) translateY(0);}}
.rgpd-text{display:flex;align-items:flex-start;gap:12px;flex:1;min-width:220px;}
.rgpd-icon{font-size:20px;flex-shrink:0;margin-top:2px;}
.rgpd-text div{font-size:13px;color:var(--ink2);line-height:1.6;}
.rgpd-text strong{color:var(--ink);display:block;margin-bottom:2px;font-size:14px;}
.rgpd-link{color:var(--blue);text-decoration:none;font-weight:500;margin-left:4px;}
.rgpd-actions{display:flex;gap:10px;flex-shrink:0;}
.rgpd-btn{padding:9px 20px;border-radius:999px;font-family:var(--font-body);font-size:13px;font-weight:600;cursor:pointer;border:none;transition:all .2s;}
.rgpd-refuse{background:var(--surface2);color:var(--muted);border:1px solid var(--hairline2);}
.rgpd-accept{background:var(--blue);color:#fff;}
@media(max-width:540px){#rgpd-banner{flex-direction:column;}.rgpd-actions{width:100%;}.rgpd-btn{flex:1;text-align:center;}}
@media (max-width:540px) { .service-item-grid { grid-template-columns:1fr; } }

/* ── navigation au clavier ──
   Sans ceci, tabuler dans le site ne montre nulle part où l'on se
   trouve. `:focus-visible` ne s'affiche qu'au clavier, jamais à la
   souris, donc l'apparence à la souris est inchangée. */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.nav-links a:focus-visible, .nav-cta:focus-visible,
.footer-links a:focus-visible { outline-offset: 2px; }

/* ── pied de page empilé sur petit écran ── */
@media (max-width: 640px) {
  footer { flex-direction: column; align-items: flex-start; }
}

