/* MD Consulting — Copywriter Portfolio (extends Editorial Minimalism v1.4) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --cream: #FAF6F0;
  --ivory: #F2EBE0;
  --sage: #7FB5A0;
  --coral: #E8876A;
  --brown: #3D2B1F;
  --line: rgba(61,43,31,0.14);
  --line-strong: rgba(61,43,31,0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; background: var(--cream); }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--brown);
}

img, svg, video, iframe { max-width: 100%; }
h1, h2, h3, h4, p, li, figcaption, label { overflow-wrap: break-word; }
a, button, input, select, textarea { touch-action: manipulation; }

a, button { cursor: pointer; color: inherit; text-decoration: none; background: none; border: none; font: inherit; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; border-radius: 2px; }
button:focus-visible, a:focus-visible { outline-color: var(--coral); }
::selection { background: var(--coral); color: var(--cream); }

/* Type rules — never mix on same line */
.serif { font-family: 'Cormorant Garamond', serif; font-weight: 400; letter-spacing: -0.005em; }
.sans { font-family: 'DM Sans', sans-serif; }
.label { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 40px);
}
.hair { background: var(--line); height: 1px; width: 100%; }

.fade { opacity: 0; transform: translateY(24px); transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); }
.fade.in { opacity: 1; transform: none; }

.link-u { position: relative; display: inline-block; padding-bottom: 2px; }
.link-u::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--coral); transform-origin: left; transform: scaleX(0); transition: transform .45s cubic-bezier(.7,0,.2,1); }
.link-u:hover::after { transform: scaleX(1); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

@media (max-width: 900px) { .grid { gap: 16px; } }

/* ===== Top nav ===== */
.topnav { position: sticky; top: 0; z-index: 40; background: rgba(250,246,240,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topnav-inner { max-width: 1280px; margin: 0 auto; padding: 20px clamp(20px, 5vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-style: italic; }
.brand .sub { font-family: 'DM Sans', sans-serif; font-style: normal; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brown); opacity: .55; display: block; margin-top: 2px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.back-link .arrow { transition: transform .3s ease; }
.back-link:hover .arrow { transform: translateX(-4px); }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.cv-btn { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 9px 16px; border-radius: 20px; background: var(--brown); color: var(--cream); transition: background .3s ease, transform .3s ease; }
.cv-btn:hover { background: var(--coral); transform: translateY(-1px); }
@media (max-width: 900px) { .nav-actions { gap: 14px; } .cv-btn { padding: 8px 13px; font-size: 10.5px; } }

/* Bouton hamburger — visible uniquement en dessous de 820px */
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -10px; flex-shrink: 0; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; border-radius: 2px; background: var(--brown); transition: transform .3s cubic-bezier(.7,0,.2,1), opacity .2s ease; }
.topnav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.topnav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.topnav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .topnav-inner { padding-top: 14px; padding-bottom: 14px; }
  .brand { font-size: 18px; }
  .nav-actions {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px clamp(20px, 5vw, 40px) 18px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 36px -26px rgba(61,43,31,.55);
    max-height: 0; opacity: 0; visibility: hidden; overflow: hidden;
    transition: max-height .38s cubic-bezier(.2,.8,.2,1), opacity .25s ease, visibility .38s;
  }
  .topnav.nav-open .nav-actions { max-height: 66vh; opacity: 1; visibility: visible; overflow-y: auto; }
  .nav-actions > * { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav-actions > *:last-child { border-bottom: none; }
  .nav-actions .back-link { font-size: 12.5px; }
  .cv-btn { display: flex; justify-content: center; margin-top: 14px; padding: 15px 18px; font-size: 11.5px; border-radius: 3px; }
}

/* ===== Download link (explicit, for the two items where download is allowed) ===== */
.dl-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 11px 20px; border: 1px solid var(--brown); border-radius: 4px; }
.dl-link:hover { background: var(--brown); color: var(--cream); }
.dl-link .ico { font-size: 14px; }

/* ===== Social redirection row (Biolal) ===== */
.social-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.social-row a { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 20px; }
.social-row a:hover { border-color: var(--coral); color: var(--coral); }

/* ===== Multi-country strip ===== */
.country-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.country-strip span { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 20px; background: var(--ivory); border: 1px solid var(--line); opacity: .8; }

/* ===== Sub-brand grid (Chaabane) ===== */
.subbrand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
@media (max-width: 720px) { .subbrand-grid { grid-template-columns: repeat(2, 1fr); } }
.subbrand-grid span { font-size: 12.5px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--cream); text-align: center; }

/* ===== Honest note (no fabricated content) ===== */
.honest-note { border: 1px dashed var(--line-strong); border-radius: 8px; padding: 20px 24px; margin-top: 8px; background: var(--cream); }
.honest-note p { font-size: 14px; opacity: .78; margin-bottom: 0; }

/* ===== Index / Page Référence ===== */
.ref-hero { max-width: 1280px; margin: 0 auto; padding: clamp(52px, 9vw, 90px) clamp(20px, 5vw, 40px) clamp(36px, 6vw, 60px); }
.ref-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(40px, 6vw, 76px); font-weight: 400; line-height: 1.05; max-width: 900px; }
.ref-hero h1 em { font-style: italic; color: var(--coral); }
.ref-hero p { max-width: 560px; margin-top: 24px; font-size: 17px; line-height: 1.6; color: var(--brown); opacity: .82; }

.ref-grid { max-width: 1280px; margin: 0 auto; padding: 20px clamp(20px, 5vw, 40px) clamp(72px, 10vw, 120px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 28px); }
@media (max-width: 1100px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ref-grid { grid-template-columns: 1fr; } }

.ref-tile { display: block; border: 1px solid var(--line); border-radius: 6px; padding: 28px; background: var(--ivory); transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease; }
.ref-tile:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(61,43,31,0.08); }

.logo-box { width: 56px; height: 56px; border-radius: 6px; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; background: var(--cream); }
.logo-box span { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-style: italic; color: var(--coral); }
.logo-box.has-mark { background: var(--brown); border-color: var(--brown); }
.logo-box.has-mark span { color: var(--cream); }

.ref-tile .year { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: .55; margin-bottom: 6px; display: block; }
.ref-tile h3 { font-family: 'Cormorant Garamond', serif; font-size: 27px; font-weight: 400; margin-bottom: 10px; }
.ref-tile .desc { font-size: 13.5px; line-height: 1.55; opacity: .78; margin-bottom: 18px; }
.ref-tile .pills { display: flex; flex-wrap: wrap; gap: 6px; }

.pill { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 20px; color: var(--brown); opacity: .75; }
.pill.coral { border-color: var(--coral); color: var(--coral); opacity: 1; }
.pill.sage { border-color: var(--sage); color: #3f6e5c; opacity: 1; }

/* ===== Case / landing page ===== */
.case-hero { max-width: 1000px; margin: 0 auto; padding: clamp(46px, 8vw, 80px) clamp(20px, 5vw, 40px) 40px; }
.case-hero .year { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; opacity: .55; }
.case-hero h1 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.08; margin-top: 14px; }
.case-hero h1 em { font-style: italic; color: var(--coral); }
.case-hero .mission { max-width: 640px; margin-top: 20px; font-size: 17px; line-height: 1.65; opacity: .85; }
.case-hero .pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

.case-section { max-width: 1000px; margin: 0 auto; padding: clamp(38px, 6vw, 56px) clamp(20px, 5vw, 40px); }
.case-section .label { display: block; margin-bottom: 18px; color: var(--coral); }
.case-section h2 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 20px; max-width: 720px; }
.case-section p { font-size: 16px; line-height: 1.75; max-width: 680px; opacity: .88; margin-bottom: 16px; }
.case-section p:last-child { margin-bottom: 0; }

/* In-page content viewer — no download, reading only */
.viewer {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--ivory);
  overflow: hidden;
  margin-top: 8px;
}
.viewer-bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: rgba(61,43,31,0.03); }
.viewer-bar .dot-row { display: flex; gap: 6px; }
.viewer-bar .dot-row span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); display: block; }
.viewer-bar .title { margin-left: 8px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: .6; }
.viewer-body { padding: clamp(20px, 4vw, 36px); }
.viewer-body.tight { padding: 0; }
.viewer-img { width: 100%; height: auto; display: block; }

.quote-block { border-left: 2px solid var(--coral); padding: 4px 0 4px 24px; margin: 22px 0; }
.quote-block p { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 20px; line-height: 1.5; opacity: 1; }

.excerpt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .excerpt-grid { grid-template-columns: 1fr; } }
.excerpt-card { border: 1px solid var(--line); border-radius: 6px; padding: 22px; background: var(--cream); }
.excerpt-card .k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: .55; margin-bottom: 8px; display: block; }
.excerpt-card p { font-size: 14.5px; line-height: 1.6; opacity: .88; margin: 0; }

.case-nav-footer { max-width: 1000px; margin: 0 auto; padding: clamp(40px, 6vw, 60px) clamp(20px, 5vw, 40px) clamp(64px, 9vw, 100px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; border-top: 1px solid var(--line); }

/* ===== Article / publication grid (Doctorat, UIR) ===== */
.article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 8px; }
@media (max-width: 720px) { .article-grid { grid-template-columns: 1fr; } }
.article-card { border: 1px solid var(--line); border-radius: 8px; background: var(--cream); overflow: hidden; display: flex; flex-direction: column; }
.article-card .thumb { aspect-ratio: 16/10; background: var(--ivory); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card .k { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; opacity: .55; }
.article-card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 20px; line-height: 1.25; }
.article-card p { font-size: 13.5px; line-height: 1.55; opacity: .82; margin: 0; }
.article-card .view-link { margin-top: auto; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 4px; }
.article-card .thumb.tall { aspect-ratio: 3/4; background: #fff; }
.article-card .thumb.contain img { object-fit: contain; }
.article-card .role-tag { display: inline-block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; border: 1px solid var(--line-strong); opacity: .75; width: fit-content; }
.article-card .thumb.no-visual { display: flex; align-items: center; justify-content: center; background: var(--brown); }
.article-card .thumb.no-visual span { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--cream); font-size: 15px; text-align: center; padding: 0 20px; opacity: .85; }

/* ===== Photo / press grid (conférences, journaux) ===== */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .photo-grid { grid-template-columns: 1fr; } }
.photo-grid figure { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--ivory); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/3; }
.photo-grid figcaption { font-size: 11px; padding: 8px 10px; opacity: .65; letter-spacing: .02em; }

.press-grid { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.press-grid .press-item { border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; background: var(--cream); display: flex; align-items: center; justify-content: center; height: 64px; }
.press-grid .press-item img { max-height: 32px; max-width: 130px; object-fit: contain; }

/* ===== Badge strip (distinctions / prix) ===== */
.badge-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.badge-strip .badge { border: 1px solid var(--line); border-radius: 8px; padding: 22px; background: var(--cream); }
.badge-strip .badge .logo-row { height: 34px; display: flex; align-items: center; margin-bottom: 14px; }
.badge-strip .badge .logo-row img { max-height: 100%; max-width: 100%; object-fit: contain; }
.badge-strip .badge h4 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 18px; margin-bottom: 6px; }
.badge-strip .badge p { font-size: 13px; opacity: .8; line-height: 1.5; margin: 0; }

.signature-block { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.signature-block img { height: 64px; width: auto; opacity: .9; }

/* --- Grille de logos marques/partenaires --- */
.brand-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.brand-grid .tile { width: 92px; height: 68px; background: #fff; border-radius: 6px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 8px; flex-shrink: 0; }
.brand-grid .tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-grid-label { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; opacity: .5; margin-top: 24px; margin-bottom: 4px; }
.brand-grid-label:first-child { margin-top: 4px; }

/* --- Bande défilante de wordmarks (fallback quand le logo réel n'est pas disponible) --- */
.wordmark-strip { overflow: hidden; margin-top: 18px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.wordmark-strip .track { display: flex; gap: 46px; width: max-content; animation: wordmark-scroll 28s linear infinite; }
.wordmark-strip:hover .track { animation-play-state: paused; }
.wordmark-strip .track span { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-style: italic; white-space: nowrap; opacity: .55; }
@keyframes wordmark-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wordmark-strip .track { animation: none; overflow-x: auto; } }

/* ============ v2 : carrousel, parallax, maquettes, formulaire ============ */

/* --- Carrousel horizontal (scroll-snap, sans JS lourd) --- */
.carousel-wrap { position: relative; margin-top: 22px; }
.carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 18px; scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-track { background: var(--line); border-radius: 3px; }
.carousel::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.carousel > figure {
  flex: 0 0 clamp(240px, 68vw, 380px); scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #fff;
}
.carousel > figure img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.carousel > figure figcaption {
  font-family: 'DM Sans', sans-serif; font-size: 12px; line-height: 1.55;
  padding: 12px 14px; border-top: 1px solid var(--line); opacity: .78;
}
.carousel-hint {
  font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; opacity: .45; margin-top: 2px;
}

/* --- Bande parallax (fenêtre fixe, image qui défile au scroll) --- */
.parallax-strip {
  height: clamp(260px, 42vh, 420px); overflow: hidden; position: relative;
  border: 1px solid var(--line); border-radius: 3px; margin-top: 22px; background: var(--ivory);
}
.parallax-strip img {
  position: absolute; top: 0; left: 0; width: 100%; will-change: transform;
}
.parallax-strip::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 -40px 50px -30px rgba(61,43,31,.28), inset 0 40px 50px -30px rgba(61,43,31,.18);
}

/* --- Maquette : cadre navigateur soigné --- */
.mockup { border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: #fff; margin-top: 22px; box-shadow: 0 18px 44px -28px rgba(61,43,31,.45); }
.mockup-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--ivory); border-bottom: 1px solid var(--line); }
.mockup-bar .dots { display: flex; gap: 6px; }
.mockup-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); opacity: .5; }
.mockup-bar .url {
  font-family: 'DM Sans', sans-serif; font-size: 11.5px; letter-spacing: .02em; opacity: .6;
  background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 4px 14px; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.mockup-scroll { max-height: 480px; overflow-y: auto; }
.mockup-scroll img { width: 100%; display: block; }
.mockup-note { font-family: 'DM Sans', sans-serif; font-size: 12px; opacity: .6; margin-top: 10px; }

/* --- Grille de maquettes côte à côte --- */
.mockup-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 22px; }
.mockup-duo .mockup { margin-top: 0; }
.mockup-duo .mockup-scroll { max-height: 380px; }

/* --- Bloc SEO / copywriting : paires clé-valeur --- */
.seo-table { margin-top: 20px; border-top: 1px solid var(--line); }
.seo-row { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.seo-row .k { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .55; padding-top: 3px; }
.seo-row .v { font-family: 'DM Sans', sans-serif; font-size: 14.5px; line-height: 1.72; }
.seo-row .v code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--ivory); padding: 2px 7px; border-radius: 3px; overflow-wrap: anywhere; }
@media (max-width: 600px) { .seo-row { grid-template-columns: 1fr; gap: 6px; } }

/* --- Formulaire de contact --- */
.contact-section { background: var(--ivory); border-top: 1px solid var(--line); padding: clamp(56px, 9vw, 100px) 0; margin-top: 40px; }
.contact-inner { max-width: 760px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.contact-form { margin-top: 30px; display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.field input, .field textarea, .field select {
  font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--brown);
  background: var(--cream); border: 1px solid var(--line-strong); border-radius: 3px;
  padding: 13px 15px; width: 100%; transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sage); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.65; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.submit-btn {
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  background: var(--brown); color: var(--cream); padding: 15px 34px; border-radius: 3px;
  justify-self: start; transition: background .2s ease, transform .2s ease;
}
.submit-btn:hover { background: var(--coral); transform: translateY(-1px); }
.form-note { font-family: 'DM Sans', sans-serif; font-size: 12.5px; opacity: .55; line-height: 1.7; }

/* --- Page de remerciement --- */
.thanks-wrap { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 60px 24px; }
.thanks-mark { width: 74px; height: 74px; border-radius: 50%; border: 1px solid var(--sage); display: grid; place-items: center; margin: 0 auto 30px; color: var(--sage); font-size: 30px; }

/* --- Bandeau logo client discret dans un case --- */
.brand-strip { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; padding: 20px 24px; background: var(--ivory); border: 1px solid var(--line); border-radius: 3px; }
.brand-strip img { height: 34px; width: auto; object-fit: contain; }
.brand-strip .sep { width: 1px; height: 28px; background: var(--line-strong); }
.brand-strip span { font-family: 'DM Sans', sans-serif; font-size: 12.5px; opacity: .65; line-height: 1.6; }

/* --- Mention partenaire (DN Consulting) --- */
.partner-note {
  display: flex; align-items: center; gap: 14px; margin-top: 24px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; line-height: 1.7; opacity: .8;
  border-left: 2px solid var(--sage); padding: 6px 0 6px 18px;
}
.partner-note img { height: 26px; width: auto; object-fit: contain; flex-shrink: 0; }

/* --- Bouton "recevoir la ressource" sur les cartes module/article --- */
.resource-btn {
  margin-top: auto; font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; padding-top: 4px; color: var(--coral);
  border-bottom: 1px solid transparent; align-self: start; transition: border-color .2s ease;
}
.resource-btn:hover { border-bottom-color: var(--coral); }

/* --- Modale "recevoir la ressource" --- */
.resource-modal-overlay {
  position: fixed; inset: 0; background: rgba(61,43,31,0.55); backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center; padding: 24px; z-index: 100;
}
.resource-modal-overlay.open { display: flex; }
.resource-modal {
  background: var(--cream); border-radius: 5px; max-width: 440px; width: 100%;
  padding: clamp(28px, 5vw, 42px); position: relative; box-shadow: 0 20px 60px rgba(61,43,31,0.25);
  max-height: calc(100vh - 48px); overflow-y: auto;
}
.resource-modal-close {
  position: absolute; top: 18px; right: 18px; font-size: 20px; line-height: 1; color: var(--brown);
  opacity: .5; transition: opacity .2s ease;
}
.resource-modal-close:hover { opacity: 1; }
.resource-modal .label { color: var(--coral); }
.resource-modal h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 24px; margin: 10px 0 8px; }
.resource-modal .resource-name { font-family: 'DM Sans', sans-serif; font-size: 13px; opacity: .65; line-height: 1.6; margin-bottom: 22px; }
.resource-modal .contact-form { margin-top: 0; gap: 16px; }
.resource-modal .submit-btn { justify-self: stretch; text-align: center; }
.resource-modal .form-error { display: none; margin-top: 4px; color: var(--coral); font-size: 13px; }
.resource-modal .resource-success { display: none; text-align: center; padding: 10px 0 4px; }
.resource-modal .resource-success .mark {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--sage); color: var(--sage);
  display: grid; place-items: center; margin: 0 auto 18px; font-size: 22px;
}
.resource-modal .resource-success p { font-family: 'DM Sans', sans-serif; font-size: 14px; line-height: 1.7; opacity: .8; }

/* ============ Responsive : ajustements mobile & tablette ============ */

/* --- Tablette : les grilles de maquettes ne descendent pas sous une colonne trop étroite --- */
@media (max-width: 900px) {
  .badge-strip { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .mockup-duo { grid-template-columns: 1fr; }
  .mockup-duo .mockup-scroll { max-height: 60vh; }
}

/* --- Téléphone : typographie, respirations et blocs qui débordaient --- */
@media (max-width: 720px) {
  .ref-hero h1 { font-size: clamp(30px, 8.5vw, 44px); }
  .ref-hero p { font-size: 16px; }
  .case-hero h1 { font-size: clamp(27px, 7.6vw, 40px); }
  .case-hero .mission { font-size: 16px; }
  .case-section h2 { font-size: clamp(23px, 6.4vw, 32px); }
  .case-section p { font-size: 15.5px; }

  .ref-tile { padding: 22px; }
  .ref-tile h3 { font-size: 24px; }
  .logo-box { width: 48px; height: 48px; margin-bottom: 18px; }

  .quote-block { padding-left: 18px; }
  .quote-block p { font-size: 18px; }

  .carousel > figure { flex-basis: 78vw; }
  .mockup-scroll { max-height: 62vh; }
  .press-grid .press-item { flex: 1 1 132px; height: 58px; }
  .brand-strip { gap: 16px; padding: 18px; }
  .brand-strip .sep { display: none; }
  .signature-block { flex-wrap: wrap; gap: 16px; }
  .honest-note { padding: 18px 20px; }
  .wordmark-strip .track span { font-size: 22px; }
  .partner-note { align-items: flex-start; flex-wrap: wrap; }

  /* Le pied de page prev/suivant tenait sur une seule ligne trop longue */
  .case-nav-footer { flex-direction: column; align-items: flex-start; }
}

/* --- Formulaires : 16px pour éviter le zoom automatique iOS, cibles tactiles confortables --- */
@media (max-width: 700px) {
  .field input, .field textarea, .field select { font-size: 16px; padding: 14px 15px; }
  .field textarea { min-height: 150px; }
  .submit-btn { justify-self: stretch; width: 100%; text-align: center; padding: 17px 24px; }
  .social-row a, .dl-link { padding: 12px 18px; }
  .thanks-mark { width: 64px; height: 64px; font-size: 26px; margin-bottom: 24px; }
}

/* --- Très petits écrans (≈320px) --- */
@media (max-width: 380px) {
  .brand { font-size: 16.5px; }
  .brand-grid .tile { width: 78px; height: 60px; }
}
@media (max-width: 340px) {
  .subbrand-grid { grid-template-columns: 1fr; }
}

/* --- Cibles tactiles : les liens de texte font 12–13px, donc trop bas pour
       le doigt. On élargit la zone cliquable sans déplacer le soulignement. --- */
@media (max-width: 700px) {
  .resource-btn, .article-card .view-link { position: relative; }
  .case-section .link-u::before,
  .case-nav-footer .link-u::before,
  .thanks-wrap .link-u::before,
  .article-card .view-link::before,
  .resource-btn::before {
    content: ''; position: absolute; left: 0; right: 0; top: 50%;
    height: 40px; transform: translateY(-50%);
  }
  .case-nav-footer { gap: 22px; }
  .thanks-wrap .link-u { margin: 3px 0; }
}
