/* ==========================================================================
   ASIRCOM — Association Suisse-Israël Romandie Communication
   Feuille de style principale
   ========================================================================== */

:root {
  --red: #c8322c;
  --red-dark: #a3241f;
  --ink: #1a1a1a;
  --ink-soft: #333333;
  --grey: #6f6f6f;
  --grey-light: #9a9a9a;
  --line: #e6e2dd;
  --bg: #ffffff;
  --bg-soft: #f7f5f2;
  --bg-dark: #141414;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --radius: 4px;
  --shadow: 0 6px 24px rgba(20, 20, 20, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

a { color: var(--red); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--red-dark); text-decoration: underline; }

img { max-width: 100%; display: block; }

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

.section { padding: 76px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #d8d6d2; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.lead { font-size: 1.22rem; color: var(--ink-soft); }

.muted { color: var(--grey); }

.divider { height: 3px; width: 56px; background: var(--red); border: 0; margin: 0 0 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid var(--red);
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: all .18s ease;
  text-decoration: none;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--red); }
.btn--ghost:hover { background: var(--red); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 24px; max-width: var(--wrap); margin: 0 auto;
}
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
}
.nav-links a:hover { color: var(--red); background: var(--bg-soft); text-decoration: none; }
.nav-links a.active { color: var(--red); font-weight: 600; }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; padding: 8px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(200,50,44,.08), transparent 60%),
    var(--bg);
}
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}
.card-link { font-weight: 600; font-size: .93rem; }

/* Section navigation cards on home */
.rubriques .card { display: flex; flex-direction: column; }
.rubriques .card .card-link { margin-top: auto; padding-top: 14px; }

/* ---------- Actu list ---------- */
.actu-item {
  padding: 26px 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 130px 1fr; gap: 26px; align-items: start;
}
.actu-item:first-child { padding-top: 0; }
.actu-date { color: var(--grey); font-size: .9rem; font-weight: 600; }
.actu-item h3 { margin: 0 0 .3em; font-size: 1.2rem; }
.actu-item p { margin: 0; color: var(--grey); }

/* Pill labels */
.pill {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 999px;
  background: rgba(200,50,44,.1); color: var(--red); margin-bottom: 10px;
}
.pill--grey { background: #ececec; color: var(--grey); }

/* ---------- Article / prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--red-dark); }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 24px;
  border-left: 3px solid var(--red);
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink);
}
.prose .source {
  font-size: .9rem; color: var(--grey); word-break: break-word;
  padding-top: 8px; border-top: 1px solid var(--line); margin-top: 24px;
}

/* Callout */
.callout {
  background: var(--bg-soft); border-left: 3px solid var(--red);
  border-radius: var(--radius); padding: 22px 26px; margin: 0 0 26px;
}
.callout p:last-child { margin-bottom: 0; }

/* Feature (3 axes) */
.axis { border-top: 3px solid var(--red); padding-top: 20px; }
.axis h3 { font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }

/* Support / besoins list */
.support-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.support-list li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px;
}
.support-list strong { color: var(--ink); font-family: var(--serif); font-size: 1.1rem; display: block; margin-bottom: 4px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: -8px; }
.form input, .form select, .form textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,50,44,.12);
}
.form textarea { min-height: 130px; resize: vertical; }
.form .form-note { font-size: .85rem; color: var(--grey); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #b7b5b1; padding: 60px 0 28px; }
.site-footer a { color: #d8d6d2; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand p { color: #8f8d89; max-width: 34ch; font-size: .95rem; }
.footer-logo { background:#fff; display:inline-block; padding:10px 12px; border-radius:var(--radius); margin-bottom:18px; }
.footer-logo img { height: 40px; }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid #3a3a3a; border-radius: var(--radius); color: #d8d6d2;
}
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid #2a2a2a; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .85rem; color: #7d7b77;
}

/* ---------- Page header (interior pages) ---------- */
.page-head { padding: 64px 0 30px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .2em; }
.page-head .lead { max-width: 62ch; }
.breadcrumb { font-size: .85rem; color: var(--grey); margin-bottom: 14px; }
.breadcrumb a { color: var(--grey); }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 14px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.tab {
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--grey); cursor: pointer; background:#fff;
}
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin: 12px 0 0; }
  .nav-links .nav-cta .btn { display: block; text-align: center; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .actu-item { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* deploy test — auto-deploy webhook */
