:root { --accent: #8C5E4B; }
/* Portfolio - page simple et moderne : présentation, sites réalisés, contact. Fond blanc, une couleur d'accent
   (--accent, ajoutée en tête de ce fichier à la publication : celle des documents du CRM), police embarquée
   (Manrope, licence SIL OFL) : aucune requête vers un service tiers, aucun cookie. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/manrope.woff2') format('woff2');
}

:root {
  --accent-soft: #f4ede8;
  --accent-line: #e6d8cf;
  --bg: #ffffff;
  --soft: #f5f4f2;
  --line: #e7e4e0;
  --text: #1b1918;
  --muted: #66615c;
  --faint: #9c958f;
  --radius: 12px;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 100; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 10px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { font-weight: 700; font-size: 18px; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 24px; }
.nav a { font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--text); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--text); background: var(--text); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--text); background: transparent; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Présentation */
/* Couleurs douces dérivées de l'accent (navigateurs récents ; sinon les valeurs de :root). */
@supports (background: color-mix(in srgb, red 10%, white)) {
  :root {
    --accent-soft: color-mix(in srgb, var(--accent) 9%, #fff);
    --accent-line: color-mix(in srgb, var(--accent) 22%, #fff);
  }
}
.hero {
  padding: clamp(36px, 5vw, 64px) 0 clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 55% 75% at 88% 35%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, #fbfaf8, #fff);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(32px, 5vw, 64px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
/* Aperçu des derniers sites : trois captures superposées. */
.hero-visual { position: relative; aspect-ratio: 5 / 4; }
.peek { position: absolute; width: 74%; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 28px 50px -28px rgba(27, 25, 24, 0.45); }
.peek img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.peek-1 { right: 0; top: 8%; z-index: 3; }
.peek-2 { left: 0; top: 0; z-index: 2; transform: rotate(-3deg); opacity: 0.95; }
.peek-3 { left: 10%; bottom: 0; z-index: 1; transform: rotate(2.5deg); opacity: 0.9; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 22ch; }
.intro { margin: 18px 0 0; max-width: 62ch; font-size: 1.08rem; color: var(--muted); }

/* Sections */
.section { padding: clamp(56px, 8vw, 88px) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.section-head h2::before { content: ''; width: 26px; height: 3px; border-radius: 2px; background: var(--accent); }
.count { font-size: 15px; color: var(--faint); }
.empty { color: var(--muted); }

/* Sites réalisés : 3 colonnes, 9 visibles, les suivants derrière « Voir plus » */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.grid.collapsed .extra { display: none; }
.card { display: block; }
.shot { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--soft); box-shadow: 0 1px 2px rgba(27, 25, 24, 0.04), 0 14px 28px -22px rgba(27, 25, 24, 0.35); transition: transform 0.35s ease, box-shadow 0.35s ease; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
a.card:hover .shot { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(27, 25, 24, 0.05), 0 24px 40px -24px rgba(27, 25, 24, 0.45); }
.card h3 { margin-top: 14px; font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
a.card:hover h3 { color: var(--accent); }
.card .meta { margin: 2px 0 0; font-size: 14px; color: var(--faint); }
.more { display: flex; justify-content: center; margin-top: 40px; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(28px, 5vw, 48px); border-radius: 18px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.contact h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact p { margin: 8px 0 0; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact .btn.ghost { background: #fff; }

/* Pages simples (merci, mentions légales) */
.simple { padding: clamp(64px, 10vw, 112px) 0; min-height: 65vh; }
.simple .wrap { max-width: 760px; }
.simple h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); }
.simple .lead { margin: 16px 0 0; font-size: 1.08rem; color: var(--muted); }
.mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 24px; background: var(--accent); color: #fff; font-size: 22px; font-weight: 700; }
.steps { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.steps li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps b { display: block; font-weight: 600; }
.steps span { display: block; color: var(--muted); font-size: 15px; }
.legal h2 { font-size: 1.1rem; margin: 30px 0 6px; }
.legal p { margin: 0 0 6px; color: var(--muted); }
.legal a { color: var(--accent); }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: 14px; color: var(--faint); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .site-header .wrap { height: 58px; }
  .contact-actions, .contact-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot, .btn { transition: none; }
}
