/* AgenceSEO.ch — page d'accueil 2026. Genere depuis le prototype valide. */
/* ==========================================================================
   AgenceSEO.ch — système de design
   Style : Trust & Authority · Palette : rouge de marque + anthracite
   ========================================================================== */

:root {
  /* Couleur */
  --brand:        #E4121F;   /* rouge de marque, ratio 4,6:1 sur blanc */
  --brand-deep:   #B00D17;   /* survol et texte sur fond clair */
  --brand-wash:   #FDF2F3;   /* fond très pâle, teinte de marque */
  --ink:          #0E1116;   /* titres */
  --ink-2:        #3B434F;   /* corps de texte, 9,4:1 sur blanc */
  --ink-3:        #616B7A;   /* texte secondaire, 5,1:1 sur blanc */
  --surface:      #FFFFFF;
  --surface-2:    #F6F7F9;
  --surface-dark: #0E1116;
  --line:         #E3E7EC;
  --line-strong:  #CBD2DB;

  /* Typographie — échelle fluide */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --t-display: clamp(2.5rem, 1.4rem + 4.2vw, 4.5rem);
  --t-h2:      clamp(1.75rem, 1.2rem + 2.1vw, 2.75rem);
  --t-h3:      clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --t-lead:    clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --t-body:    1.0625rem;
  --t-small:   0.9375rem;
  --t-micro:   0.8125rem;

  /* Espace — trame de 8 px */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* Divers */
  --container: 1180px;
  --radius:    14px;
  --radius-sm: 10px;
  --shadow-1:  0 1px 2px rgba(14,17,22,.05), 0 2px 8px rgba(14,17,22,.04);
  --shadow-2:  0 4px 12px rgba(14,17,22,.07), 0 16px 40px rgba(14,17,22,.07);
  --ease:      cubic-bezier(.2,.7,.3,1);
  --z-header:  50;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.12;
  text-wrap: balance;
}

p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skiplink {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  transition: top .18s var(--ease);
}
.skiplink:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s5);
}

.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tint { background: var(--surface-2); }
.section--dark { background: var(--surface-dark); color: #C3CAD4; }
.section--dark h2, .section--dark h3 { color: #FFFFFF; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: var(--s4);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.lead { font-size: var(--t-lead); color: var(--ink-2); max-width: 62ch; }

.section-head { max-width: 44rem; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: var(--t-h2); margin-bottom: var(--s4); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--brand-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink-3); }
.btn--onDark { background: #fff; color: var(--ink); }
.btn--onDark:hover { background: #E9ECF1; color: var(--ink); }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: var(--t-body); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__bar {
  display: flex; align-items: center; gap: var(--s5);
  min-height: 76px;
}
.header__logo img { width: 176px; }
.nav { margin-left: auto; }
.nav__list {
  display: flex; align-items: center; gap: var(--s1);
  list-style: none; margin: 0; padding: 0;
}
.nav__link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.header__cta { flex: none; }
.burger { display: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 6vw, 88px) clamp(48px, 6vw, 96px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.hero h1 { font-size: var(--t-display); font-weight: 800; letter-spacing: -.032em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__lead { margin-top: var(--s5); font-size: var(--t-lead); max-width: 34rem; }
.hero__points {
  list-style: none; margin: var(--s6) 0 0; padding: 0;
  display: grid; gap: var(--s3);
}
.hero__points li {
  display: grid; grid-template-columns: 22px 1fr; gap: var(--s3);
  align-items: start;
  font-size: var(--t-small); color: var(--ink-2);
}
.hero__points svg { width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }

/* ---------- Carte formulaire ---------- */
.leadcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: clamp(24px, 3vw, 34px);
  position: relative;
}
.leadcard::before {
  content: "";
  position: absolute; inset: -1px -1px auto -1px; height: 4px;
  background: linear-gradient(90deg, var(--brand), #FF6A4D);
  border-radius: var(--radius) var(--radius) 0 0;
}
.leadcard__title { font-size: var(--t-h3); margin-bottom: var(--s2); }
.leadcard__sub { font-size: var(--t-small); color: var(--ink-3); margin-bottom: var(--s5); }
.field { margin-bottom: var(--s4); }
.field label {
  display: block;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field .req { color: var(--brand); }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  font: inherit;
  font-size: var(--t-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input::placeholder { color: #98A2B0; }
.field input:hover { border-color: var(--ink-3); }
.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(228,18,31,.16);
}
.leadcard__note {
  margin-top: var(--s4);
  font-size: var(--t-micro);
  line-height: 1.55;
  color: var(--ink-3);
}
.leadcard__steps {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  margin-top: var(--s5); padding-top: var(--s5);
  border-top: 1px solid var(--line);
  font-size: var(--t-micro); color: var(--ink-3);
}
.leadcard__steps span { display: inline-flex; align-items: center; gap: 6px; }
.leadcard__steps svg { width: 15px; height: 15px; color: var(--brand); flex: none; }

/* ---------- Bandeau logos ---------- */
.clients { padding-block: var(--s7); border-block: 1px solid var(--line); }
.clients__label {
  text-align: center;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s5);
}
.clients__row {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: clamp(24px, 4vw, 56px);
}
.clients__row img {
  height: 46px; width: auto;
  /* les PNG sources ont un fond blanc opaque : « multiply » le neutralise
     sur fond clair, sans quoi le filtre transforme les logos en carrés gris */
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.35);
  opacity: 1;
  transition: opacity .2s var(--ease), filter .2s var(--ease);
}
.clients__row img:hover { filter: none; opacity: 1; }

/* ---------- Statistiques ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s5);
}
.stat {
  padding: var(--s6) var(--s5);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
}
.stat__n {
  display: block;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: #fff;
  margin-bottom: var(--s3);
}
.stat__d { font-size: var(--t-small); color: #C3CAD4; }
.stat__src { display: block; margin-top: var(--s2); font-size: var(--t-micro); color: #8A94A2; }

/* ---------- Grilles de cartes ---------- */
.grid { display: grid; gap: var(--s5); align-items: stretch; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  display: flex; flex-direction: column;
  height: 100%;
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }

/* Carte entièrement cliquable : elle ne doit pas hériter du style des liens */
a.card { text-decoration: none; color: inherit; position: relative; }
a.card h3 { transition: color .18s var(--ease); }
a.card:hover { border-color: var(--brand); }
a.card:hover h3 { color: var(--brand-deep); }
a.card h3::after {
  content: "→";
  margin-left: 8px;
  color: var(--brand);
  opacity: 0;
  transform: translateX(-4px);
  display: inline-block;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
a.card:hover h3::after { opacity: 1; transform: translateX(0); }
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  margin-bottom: var(--s5);
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { font-size: var(--t-h3); margin-bottom: var(--s3); }
.card p { font-size: var(--t-small); color: var(--ink-2); }
.card__link {
  margin-top: auto; padding-top: var(--s5);
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--t-small); font-weight: 600;
  color: var(--brand-deep); text-decoration: none;
}
.card__link:hover { color: var(--ink); }
.card__link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.card__link:hover svg { transform: translateX(3px); }

/* ---------- Méthode ---------- */
.steps { counter-reset: step; }
.step__n {
  counter-increment: step;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: var(--t-small); font-weight: 700;
  margin-bottom: var(--s5);
}
.step__n::before { content: "0" counter(step); }

/* ---------- Offres ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s5); align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  padding: clamp(26px, 2.6vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.plan--featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-2);
  position: relative;
}
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 5px 14px;
  background: var(--brand); color: #fff;
  border-radius: 999px;
  font-size: var(--t-micro); font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}
.plan__name {
  font-size: var(--t-micro); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: var(--s3);
}
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: var(--s2); }
.plan__price b { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.plan__price span { font-size: var(--t-small); color: var(--ink-3); }
.plan__for { font-size: var(--t-small); color: var(--ink-3); margin-bottom: var(--s5); }
.plan__list { list-style: none; margin: 0 0 var(--s6); padding: 0; display: grid; gap: 10px; }
.plan__list li {
  display: grid; grid-template-columns: 19px 1fr; gap: 10px;
  align-items: start;
  font-size: var(--t-small); color: var(--ink-2);
}
.plan__list svg { width: 19px; height: 19px; color: var(--brand); margin-top: 2px; }
.plan .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: 22px 4px;
  font-size: var(--t-body);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color .18s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-deep); }
.faq summary svg {
  width: 20px; height: 20px; flex: none;
  color: var(--ink-3);
  transition: transform .22s var(--ease), color .18s var(--ease);
}
.faq details[open] summary { color: var(--brand-deep); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--brand); }
.faq__body { padding: 0 4px 24px; font-size: var(--t-small); max-width: 68ch; }

/* ---------- Appel final ---------- */
.finalcta {
  background: var(--surface-dark);
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,420px);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.finalcta h2 { color: #fff; font-size: var(--t-h2); margin-bottom: var(--s4); }
.finalcta__intro p { color: #C3CAD4; font-size: var(--t-lead); }
/* la carte reste sur fond clair : elle ne doit pas hériter des couleurs du bloc sombre */
.finalcta .leadcard { box-shadow: none; color: var(--ink-2); }
.finalcta .leadcard h3 { color: var(--ink); }
.finalcta .leadcard .leadcard__sub { color: var(--ink-3); font-size: var(--t-small); }

/* ---------- Pied de page ---------- */
.footer { padding-block: var(--s8) var(--s6); background: var(--surface-2); border-top: 1px solid var(--line); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: var(--s7);
}
.footer__logo img { width: 168px; margin-bottom: var(--s4); }
.footer p { font-size: var(--t-small); color: var(--ink-3); max-width: 34ch; }
.footer h4 {
  font-size: var(--t-micro); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); margin-bottom: var(--s4);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: var(--t-small); color: var(--ink-2); text-decoration: none; }
.footer ul a:hover { color: var(--brand-deep); text-decoration: underline; }
.footer__bottom {
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5);
  align-items: center; justify-content: space-between;
  font-size: var(--t-micro); color: var(--ink-3);
}
.footer__bottom a { color: var(--ink-3); }

/* ---------- Adaptation ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger {
    display: grid; place-items: center;
    margin-left: auto;
    width: 46px; height: 46px;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
  .burger svg { width: 22px; height: 22px; color: var(--ink); }
  .hero__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .finalcta { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .grid--3, .plans { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .header__cta { display: none; }
}

@media (max-width: 560px) {
  .container { padding-inline: var(--s4); }
  .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .clients__row { gap: var(--s5); }
  .clients__row img { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Retour de formulaire et anti-spam ---------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.flash {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--s3);
  align-items: start;
  padding: var(--s4) var(--s5);
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-size: var(--t-small);
}
.flash svg { width: 24px; height: 24px; }
.flash p { margin: 0; }
.flash--ok { background: #F0FAF3; border-color: #A8DCBB; color: #14532D; }
.flash--ok svg { color: #15803D; }
.flash--ko { background: var(--brand-wash); border-color: #F3B7BC; color: #7A0912; }
.flash--ko svg { color: var(--brand-deep); }
.flash a { color: inherit; }

/* ---------- Menu mobile ---------- */
.mobilenav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(14, 17, 22, .45);
}
.mobilenav[data-ouvert="true"] { display: block; }

.mobilenav__panneau {
  position: absolute;
  inset: 0 0 auto 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: var(--s4) var(--s5) var(--s6);
  box-shadow: var(--shadow-2);
  max-height: 100dvh;
  overflow-y: auto;
}
.mobilenav__tete {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; margin-bottom: var(--s4);
}
.mobilenav__tete img { width: 156px; }
.mobilenav__fermer {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.mobilenav__fermer svg { width: 22px; height: 22px; color: var(--ink); }
.mobilenav ul { list-style: none; margin: 0 0 var(--s5); padding: 0; }
.mobilenav ul a {
  display: block;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-body);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.mobilenav ul a:hover { color: var(--brand-deep); }

@media (min-width: 1081px) {
  .mobilenav { display: none !important; }
}

@media (prefers-reduced-motion: no-preference) {
  .mobilenav[data-ouvert="true"] .mobilenav__panneau {
    animation: cem-descendre .22s var(--ease);
  }
  @keyframes cem-descendre {
    from { transform: translateY(-12px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
  }
}

/* ==========================================================================
   Gabarit de page interieure
   ========================================================================== */

.pagehero {
  padding-block: clamp(40px, 5vw, 72px) clamp(28px, 3.5vw, 48px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.pagehero h1 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
  max-width: 20ch;
}
.pagehero .lead { margin-top: var(--s5); }

.ariane { font-size: var(--t-micro); color: var(--ink-3); margin-bottom: var(--s4); }
.ariane a { color: var(--ink-3); text-decoration: none; }
.ariane a:hover { color: var(--brand-deep); text-decoration: underline; }
.ariane span { margin-inline: 6px; }

/* Contenu WordPress rendu dans le systeme */
.pagebody { padding-block: clamp(40px, 5vw, 80px); }
.pagebody > .container > *:not(.outils-grille):not(.outilcard):not(.appzone) { max-width: 68ch; }
.pagebody h2 { font-size: var(--t-h2); margin: var(--s8) 0 var(--s4); }
.pagebody h3 { font-size: var(--t-h3); margin: var(--s6) 0 var(--s3); }
.pagebody p { margin-bottom: var(--s4); }
.pagebody ul, .pagebody ol { margin: 0 0 var(--s5); padding-left: 1.3em; }
.pagebody li { margin-bottom: 8px; }

/* ==========================================================================
   Grille des outils gratuits
   ========================================================================== */

.outils-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
  align-items: stretch;
  max-width: none;
}
@media (max-width: 980px) { .outils-grille { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 660px)  { .outils-grille { grid-template-columns: 1fr; } }

.outilcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(24px, 2.6vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.outilcard:hover { border-color: var(--brand); box-shadow: var(--shadow-2); color: inherit; }
.outilcard__icone {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  margin-bottom: var(--s5);
}
.outilcard__icone svg { width: 23px; height: 23px; }
.outilcard h3 { font-size: var(--t-h3); margin-bottom: var(--s3); }
.outilcard p { font-size: var(--t-small); color: var(--ink-2); margin: 0; }
.outilcard__lien {
  margin-top: auto; padding-top: var(--s5);
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--t-small); font-weight: 600;
  color: var(--brand-deep);
}
.outilcard__lien svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.outilcard:hover .outilcard__lien svg { transform: translateX(3px); }

/* Conteneur d'application : les outils gardent leur interface propre,
   mais dans une boite cadree par le systeme. */
.appzone {
  margin-block: clamp(28px, 3.5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  max-width: none;
}
.appzone > * { max-width: none !important; }

/* Fenêtre surgissante Elementor : son déclencheur est l'ancien en-tête du
   constructeur, absent de ces gabarits, et sa feuille de style a été retirée
   avec le reste des ressources Elementor. Sans cette règle, son contenu se
   déverserait en clair sous le pied de page. */
.elementor-location-popup { display: none !important; }
