/* ============================================================
   BLV TECH — feuille de style commune (thème clair)
   Charte : BLV-TECH_charte-graphique.md (palette du logo couleur)
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f8;          /* fond secondaire, sections alternées */
  --ink: #1a1a45;              /* texte principal */
  --muted: #5b5b7a;            /* texte atténué (>= 4,5:1 sur blanc) */
  --muted-2: #6b6a8c;
  --indigo: #464194;           /* labels, liens, icônes — jamais en aplat large */
  --green: #6fb968;            /* barre du logo, boutons (texte marine dessus) */
  --green-hover: #63ad5c;
  --mint: #a6d3b4;             /* soulignements, halos */
  --line: rgba(70,65,148,0.18);
  --line-strong: rgba(70,65,148,0.28);
  --shadow: 0 2px 10px rgba(26,26,69,0.06);
  --shadow-lg: 0 12px 36px rgba(26,26,69,0.10);
  --radius: 16px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--indigo); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ── Fond : grille fine + halos (version claire) ── */
.bg-grid { position: relative; }
.bg-grid::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(70,65,148,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,65,148,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
.bg-grid::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(closest-side at 12% 18%, rgba(166,211,180,0.45), transparent 70%),
    radial-gradient(closest-side at 92% 85%, rgba(70,65,148,0.10), transparent 70%);
}
.bg-grid > * { position: relative; z-index: 1; }

/* ── En-tête ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 80px; }
.site-header .brand img { height: 54px; width: auto; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; position: relative; }
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--green); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.site-header .btn { padding: 10px 18px; font-size: 0.9rem; }
@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .site-header .brand img { height: 46px; }
}

/* Logo Claude dans les boutons et liens « Skills Claude » */
.claude-mark { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; }
.site-nav a .claude-mark { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; }

/* ── Typo ── */
.label {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--indigo);
}
h1, h2, h3 { font-family: 'DM Sans', Arial, sans-serif; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.08rem; }
.lead { font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--muted); }
.u-green {
  background-image: linear-gradient(transparent 72%, rgba(111,185,104,0.55) 72%, rgba(111,185,104,0.55) 92%, transparent 92%);
  padding: 0 2px;
}

/* ── Sections ── */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head .label { display: block; margin-bottom: 12px; }
.section-head h2 + p { margin-top: 14px; }
@media (max-width: 600px) { .section { padding: 64px 0; } }

/* ── Boutons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 12px; border: 1px solid transparent;
  font-family: 'DM Sans', Arial, sans-serif; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--green); color: var(--ink); box-shadow: 0 4px 16px rgba(111,185,104,0.30); }
.btn-primary:hover { background: var(--green-hover); box-shadow: 0 8px 24px rgba(111,185,104,0.38); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow); }
.btn-outline:hover { border-color: var(--indigo); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Pastilles ── */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 8px 18px; font-weight: 500; font-size: 0.92rem;
  background: #fff; border: 1px solid var(--line-strong); color: var(--ink);
}
.pill.main { background: var(--green); border-color: var(--green); }
a.pill { text-decoration: none; transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease; }
a.pill:hover { transform: translateY(-1px); border-color: var(--indigo); box-shadow: var(--shadow); }
a.pill.main:hover { border-color: var(--green-hover); background: var(--green-hover); }
.pill.sm { padding: 4px 12px; font-size: 0.78rem; }

/* ── Cartes ── */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
}
.icon-box {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(111,185,104,0.16); color: var(--indigo);
}
.icon-box svg { width: 21px; height: 21px; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ── Cartes de skills (catalogue) ── */
.skill-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; border-top: 3px solid var(--green); }
.skill-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); border-top-color: var(--green); }
.skill-card .top { display: flex; align-items: center; gap: 12px; }
.skill-card .name { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.skill-card .meta { font-size: 0.8rem; color: var(--muted); }
.skill-card p { font-size: 0.92rem; color: var(--muted); }
.skill-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-card .tag { font-size: 0.74rem; color: var(--indigo); background: rgba(70,65,148,0.07); border-radius: 999px; padding: 3px 10px; }
.skill-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; padding-top: 12px; border-top: 1px solid var(--line); }
.skill-card .foot .free { font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.skill-card .foot .free::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.skill-card .foot .go { color: var(--indigo); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.skill-card .foot .go svg { width: 16px; height: 16px; transition: transform .2s; }
.skill-card:hover .foot .go svg { transform: translateX(3px); }
.skill-card.soon { border-style: dashed; border-top-style: solid; border-top-color: var(--mint); box-shadow: none; background: transparent; }
.skill-card.soon:hover { transform: none; box-shadow: none; }

/* ── Formulaires ── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: 'Montserrat', sans-serif; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--indigo);
}
.field label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); font-family: 'DM Sans', sans-serif; }
.field input, .field textarea {
  background: #fff; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 12px 15px; color: var(--ink); font: inherit; font-size: 0.95rem; outline: none; resize: vertical; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #9a9ab4; }
.field input:focus, .field textarea:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(70,65,148,0.12); }
.field textarea { min-height: 110px; }

.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(26,26,69,0.25); border-top-color: var(--ink);
  border-radius: 50%; animation: spin .7s linear infinite; display: none;
}
.btn.loading .spinner { display: block; }
.btn.loading .btn-label { display: none; }

/* ── Fenêtre modale ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; padding: 16px;
  background: rgba(26,26,69,0.45); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  position: relative; width: 100%; max-width: 500px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: 20px; padding: 36px; border-top: 4px solid var(--green);
  box-shadow: 0 24px 80px rgba(26,26,69,0.25);
  transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--bg-soft); color: var(--muted); cursor: pointer; font-size: 17px;
}
.modal-close:hover { color: var(--ink); background: #e9e9f2; }
.modal h2 { font-size: 1.45rem; margin-bottom: 6px; }
.modal .sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 24px; }
@media (max-width: 600px) { .modal { padding: 28px 20px; } }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 28px; left: 50%; z-index: 200; max-width: calc(100vw - 32px);
  transform: translateX(-50%) translateY(16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; border-radius: 12px; padding: 13px 22px; font-size: 0.92rem;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 40px rgba(26,26,69,0.3);
  transition: opacity .3s, transform .3s; border-left: 4px solid var(--green);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-left-color: #e5534b; }

/* ── Pied de page ── */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 0.86rem; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.site-footer img { height: 28px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--indigo); }

/* ── Animations ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
