
/* =========================================================
   RestOptima vNext — PART 1/4
   Base & System (Variables, Reset, A11y, Utils, Mobile Readability)
   ========================================================= */

/* ---------- Variables (palette, typo, échelles) ---------- */
:root {
  /* Couleurs marque */
  --color-bg: #e8ecef;            /* arrière-plan global */
  --color-overlay: #dcdfe1;       /* panneaux/main area */
  --color-header: #35434c;        /* vert-gris du logo */
  --color-accent: #e26a4a;        /* corail (CTA/hover) */
  --color-text: #222;             /* texte par défaut */

  /* Typo & rayons */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 12px;

  /* Ombres */
  --shadow: 0 2px 6px rgba(0,0,0,0.08);

  /* Espacements */
  --space-1: .35rem;
  --space-2: .6rem;
  --space-3: .9rem;
  --space-4: 1.25rem;
  --space-5: 1.75rem;
  --space-6: 2.25rem;

  /* Échelles typographiques fluides */
  --font-scale-lg: clamp(1.1rem, 1.05rem + 0.5vw, 1.35rem);
  --font-scale-xl: clamp(1.28rem, 1.15rem + 0.9vw, 1.7rem);
  --font-scale-2xl: clamp(1.6rem, 1.3rem + 1.6vw, 2.2rem);
}

/* ---------- Reset minimal & bases ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
}
html { scroll-behavior: smooth; }

a { text-decoration: none; color: var(--color-header); }
a:hover { color: var(--color-accent); }

img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* ---------- Skip link (accessibilité clavier) ---------- */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 1rem; top: 1rem; width: auto; height: auto;
  padding: .5rem .75rem; background: #fff; color: var(--color-header);
  border-radius: var(--radius); box-shadow: var(--shadow); z-index: 1100;
}

/* ---------- Focus visible cohérent ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid rgba(226,106,74,.35);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------- Respect du réglage “réduire les animations” ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Utilitaires typographiques & spacing ---------- */
.section { scroll-margin-top: 92px; margin-bottom: 2rem; }
.center { text-align: center; }
.mt-2 { margin-top: .75rem; }
.mt-3 { margin-top: 1.25rem; }
.muted { color: #5d6a73; }
.lead { font-size: var(--font-scale-lg); color: #3b4851; max-width: 65ch; }

/* Utilitaire accessibilité (labels invisibles) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Lisibilité mobile : align-left + pas de césure agressive ---------- */
/* Sur desktop, tu peux garder le justifié dans la section Prose (Part 3/4).
   Sur ≤640px, on force une mise en drapeau à droite (ragged-right) plus lisible. */
@media (max-width: 640px) {
  .prose p,
  .ro-card-dek,
  .ro-card-title {
    text-align: left;
    text-align-last: auto;
    hyphens: manual;
    -webkit-hyphens: manual;
    -ms-hyphens: manual;
    word-break: normal;
  }
  /* Légère compaction des blocs texte pour utiliser mieux la largeur */
  .section { margin-bottom: 1.25rem; }
}

/* ---------- (Option utilitaire) Badge de catégorie court ---------- */
/* Gardé ici car très transversal (cards blog + featured). */
.card-badge {
  display: block;
  width: 182px; height: 28px;
  margin: 0 0 .35rem 0;
}

/* =========================================================
   RestOptima vNext — PART 2/4
   Layout, Header (mobile polish), Footer (allégé & moderne)
   ========================================================= */

/* ---------- Layout principal (3 colonnes adaptatives) ---------- */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  gap: 1.5rem;
  max-width: 1300px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.aside-left, .aside-right {
  position: sticky;
  top: 4.5rem;
  align-self: start;
}

.main {
  background-color: var(--color-overlay);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

/* Boîtes latérales */
.aside-block {
  background-color: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.aside-title { font-weight: 600; margin-bottom: 0.5rem; color: var(--color-header); }
.aside-list { list-style: none; padding: 0; margin: 0; }
.aside-list li { margin: 0.3rem 0; }
.aside-list a { color: var(--color-header); }
.aside-list a:hover { color: var(--color-accent); }

/* Colonne catégories */
.aside-intro {
  margin: 0 0 .6rem;
  font-size: .92rem;
  color: #5d6a73;
  line-height: 1.45;
}
.cat-link {
  display: block;
  padding: 4px;
  border-radius: var(--radius);
  transition: background-color .15s ease, box-shadow .15s ease;
}
.cat-link:hover {
  background-color: rgba(0,0,0,.03);
  box-shadow: 0 1px 0 rgba(0,0,0,.03) inset;
}
.cat-link:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(226,106,74,.28),
    0 0 0 4px rgba(226,106,74,.20);
  background-color: rgba(0,0,0,.02);
}
.cat-link[aria-current="page"] {
  position: relative;
  background-color: rgba(0,0,0,.02);
}
.cat-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: var(--cat-color, var(--color-header));
}

/* ---------- Header sticky ---------- */
.site-header {
  background-color: var(--color-header);
  color: #fff;
  padding: 0.6rem 1.4rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo + texte */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  aspect-ratio: 1/1;
  object-fit: contain;
  border-radius: 999px;
  box-shadow: 0 0 0 1.5px var(--color-bg);
  transition: box-shadow .18s ease;
}
.brand-text { line-height: 1; letter-spacing: -0.01em; }
.brand:hover, .brand:focus-visible { color: var(--color-accent); text-decoration: none; }
.brand:hover .brand-logo {
  box-shadow: 0 0 0 1.5px var(--color-accent), 0 0 10px rgba(226,106,74,.18);
}
.brand:focus-visible .brand-logo {
  box-shadow: 0 0 0 2px var(--color-accent);
  outline: none;
}

/* Navigation */
.nav { display: flex; gap: 1rem; }
.nav a {
  color: #fff;
  font-weight: 500;
  transition: color .18s ease;
}
.nav a:hover { color: var(--color-accent); }
.nav a:focus-visible {
  color: var(--color-accent);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Header – mobile polish ---------- */
@media (max-width: 640px) {
  .site-header { padding: 0.5rem 0.9rem; }
  .brand-logo { width: 32px; height: 32px; box-shadow: 0 0 0 1px var(--color-bg); }
  .brand-text { display: none; } /* gain d’espace */
  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
  }
  .nav {
    gap: .35rem;
    font-size: .95rem;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px; /* tap target */
    padding: 0 .55rem;
    border-radius: 10px;
    background: transparent;
    transition: background-color .15s ease, color .15s ease;
  }
  .nav a:active,
  .nav a:focus-visible {
    background: rgba(255,255,255,.12);
    color: #fff;
    outline: none;
  }
}

/* ---------- Footer redesign (clair, compact, cohérent) ---------- */
:root {
  --color-footer-bg: #f3f5f7; /* clair */
  --color-footer-fg: var(--color-header);
  --color-footer-accent: var(--color-accent);
}

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-fg);
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 0.6rem 0;
  text-align: center;
  font-size: .9rem;
  line-height: 1.3;
}

/* Grille interne : nav + bas */
.footer-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin-bottom: .25rem;
}

/* Liens légaux (1 ligne desktop, 2 colonnes mobile) */
.footer-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-list a {
  color: var(--color-footer-fg);
  text-decoration: none;
  opacity: .9;
  line-height: 1.2;
}
.footer-list a:hover,
.footer-list a:focus {
  color: var(--color-footer-accent);
  opacity: 1;
  outline: none;
}

/* Ligne du bas compacte */
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: .8;
  font-size: .85rem;
}

/* Responsive : footer allégé sur mobile */
@media (max-width: 640px) {
  .footer-grid {
    flex-direction: column;
    gap: .35rem;
  }
  .footer-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem .75rem;
  }
}


/* =========================================================
   RestOptima vNext — PART 3/4
   Components: Buttons, Hero, Cards, Social, Accordion, Forms, Prose
   ========================================================= */

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .15s ease;
  min-height: 40px;
}
.btn:focus-visible { outline: 3px solid rgba(226,106,74,.35); outline-offset: 2px; }
@media (max-width: 640px) {
  .btn { min-height: 44px; padding: .55rem .9rem; }
}

.btn-accent { background-color: var(--color-accent); color: #fff; }
.btn-accent:hover { background-color: #c6593d; }

.btn-accent-outline {
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}
.btn-accent-outline:hover { background-color: var(--color-accent); color: #fff; }

.btn-ghost {
  background: #fff;
  border: 1px solid #cfd6db;
  color: #2a343a;
  border-radius: var(--radius);
  height: 40px;
  padding: 0 .8rem;
}
.btn-ghost:hover { border-color: #bec7cd; box-shadow: var(--shadow); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(0deg, var(--color-overlay), #fff);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.25rem;
}
.hero h1 {
  margin: 0 0 .4rem;
  color: var(--color-header);
  letter-spacing: -0.01em;
}

/* Hero with background image */
.hero--image {
  --hero-img: none;
  --matte-color: 232,236,239; /* #e8ecef */
  --matte-top: .60; --matte-mid: .40; --matte-bottom: .05;
  --hero-vignette: radial-gradient(120% 100% at 50% 65%, rgba(0,0,0,.06), transparent 62%);
  --hero-gradient: linear-gradient(to top, rgba(0,0,0,.12), rgba(0,0,0,.04) 42%, transparent 72%);
  position: relative; color: #fff;
  min-height: clamp(180px, 24vh, 300px);
  padding: .9rem 1rem;
  overflow: hidden;
}
.hero--image::before,
.hero--image::after { content:""; position:absolute; inset:0; pointer-events:none; }
.hero--image::before {
  background: var(--hero-img);
  background-size: cover; background-position: center 40%; z-index: 0;
}
.hero--image::after {
  z-index: 1;
  background:
    var(--hero-vignette),
    var(--hero-gradient),
    linear-gradient(
      to top,
      rgba(var(--matte-color), var(--matte-bottom)) 10%,
      rgba(var(--matte-color), var(--matte-mid))    55%,
      rgba(var(--matte-color), var(--matte-top))    80%
    );
}
.hero--image > * { position: relative; z-index: 2; text-shadow: none; }
.hero--image h1 {
  margin: 0 0 .3rem; color: var(--color-text);
  letter-spacing: -0.01em; line-height: 1.12;
}
.hero--image .lead { margin: 0; color: var(--color-bg); font-weight: 700; font-style: italic; max-width: 66ch; }
@media (min-width: 900px) {
  .hero--image { display: grid; place-items: center start; padding: 1rem 1.2rem; }
  .hero--image > * { max-width: 58ch; }
}
@media (max-width: 400px) {
  .hero--image { min-height: clamp(160px, 22vh, 260px); padding: .75rem .9rem; }
  .hero--image h1 { margin-bottom: .25rem; line-height: 1.1; }
}

/* ---------- Cards (generic + blog featured) ---------- */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr);
}
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem; transition: transform .15s ease, box-shadow .15s ease; position: relative;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.card:focus-within { outline: 3px solid rgba(226,106,74,.28); }

.cards-blog {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.cards-featured {
  list-style: none; padding: 0; margin: 0 0 2rem;
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
.cards-featured > li { list-style: none; margin: 0; }

.card-link {
  display: block; color: inherit; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.card-link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); background-color: #fff; }
.card-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(226,106,74,.28), 0 0 0 4px rgba(226,106,74,.18), var(--shadow);
}

.card-post-horizontal {
  display: flex; align-items: flex-start; gap: 1rem;
}
.card-post-content { flex: 1 1 auto; min-width: 0; }
.card-post-content h3 { margin: .15rem 0 .35rem; color: var(--color-header); }
.card-post-content p { margin: .4rem 0 0; color: #2a343a; line-height: 1.55; }

/* Thumb à droite */
.card-post-media {
  --thumb-w: 156px; --thumb-h: 98px;
  flex: 0 0 var(--thumb-w); align-self: center;
}
.card-post-media img {
  display: block; width: var(--thumb-w); height: var(--thumb-h);
  object-fit: cover; border-radius: 10px; box-shadow: var(--shadow);
}
/* Mobile: option 1 — masquer */
@media (max-width: 640px) { .card-post-media { display: none; } }
/* (Option 2 dans le brief: réduire au lieu de masquer — à activer si souhaité)
@media (max-width: 640px) {
  .card-post-media { --thumb-w: 120px; --thumb-h: 76px; display: block; }
  .card-link { padding: 1rem; }
}
*/

/* Titre/links sur cards génériques blog */
.card-post h3 { margin: .25rem 0 .35rem; line-height: 1.25; }
.card-post h3 a { color: var(--color-text); text-decoration: none; }
.card-post h3 a:hover { color: var(--color-accent); }
.card-post h3 a:focus-visible { text-decoration: underline; }

/* Ligne meta (blog list + blog detail) */
.card-post .meta, .post-header .meta {
  display: inline-flex; align-items: center; gap: .5rem;
  color: #6b7780; font-size: .92rem; margin-bottom: .35rem;
}
.meta .meta-badge { display: inline-block; height: 22px; width: auto; vertical-align: middle; }

.read-more { font-weight: 600; white-space: nowrap; }
.read-more:hover { text-decoration: underline; }

/* ---------- Social inline (LinkedIn, Bluesky, Instagram) ---------- */
:root{
  --brand-linkedin: #0A66C2;
  --brand-bluesky: #0285FF;
  --ig-grad: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  --ro-social-text: var(--color-text, #17212a);
}
.ro-social-inline{
  margin:.8rem 0 0; padding:0; list-style:none;
  display:flex; flex-wrap:wrap; gap:clamp(10px, 2vw, 16px);
}
.ro-social-mini{
  --pad:10px;
  display:inline-flex; align-items:center; gap:10px;
  text-decoration:none; color:var(--ro-social-text);
  padding:var(--pad) calc(var(--pad) + 2px);
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px; background:#fff; box-shadow:var(--shadow);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ro-social-mini:where(:hover,:focus-visible){
  transform:translateY(-1px); box-shadow:0 10px 18px rgba(0,0,0,.08);
  border-color:rgba(0,0,0,.10); outline:none;
}
.ro-social-mini-icon{
  display:grid; place-items:center; width:34px; height:28px; padding:0 6px;
  border-radius:8px; background:#eef1f3;
}
.ro-social-mini-label{ font-weight:600; font-size:.98rem; line-height:1; }
.ro-logo-white{ filter:brightness(0) invert(1); }
.ro-social--linkedin .ro-social-mini-icon{ background:var(--brand-linkedin); }
.ro-social--bluesky  .ro-social-mini-icon{ background:var(--brand-bluesky); }
.ro-ig-bg{ background:var(--ig-grad) !important; }
@media (max-width:540px){
  .ro-social-inline{ flex-direction:column; gap:10px; }
  .ro-social-mini{ width:100%; justify-content:flex-start; }
}

/* ---------- Accordion / Expander ---------- */
.ro-implication-onecard{ display:grid; gap:8px; }

.ro-accordion{
  border:1px solid rgba(0,0,0,.06);
  border-radius:var(--radius);
  background:#fff; overflow:hidden; box-shadow:var(--shadow);
}
.ro-accordion--thin .ro-accordion-summary{
  list-style:none; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:8px 12px; min-height:40px; cursor:pointer; background:#fff;
}
.ro-accordion-summary::-webkit-details-marker{ display:none; }

.ro-accordion-text{
  display:flex; align-items:baseline; gap:10px; min-width:0;
}
.ro-accordion-text .t1{ font-weight:700; white-space:nowrap; }
.ro-accordion-text .t2{ color:var(--color-muted,#607080); font-size:.95rem; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }

.ro-accordion-caret::before{
  content:"›"; display:inline-block; transform:rotate(90deg);
  transition:transform .15s ease, opacity .15s ease; opacity:.88;
  font-size:1.30rem; line-height:1;
}
.ro-accordion[open] .ro-accordion-summary{ border-bottom:1px solid rgba(0,0,0,.06); }
.ro-accordion[open] .ro-accordion-caret::before{ transform:rotate(-90deg); }

.ro-accordion-panel{ padding:12px 12px 14px; background:#fff; }
.ro-accordion-panel a{ text-decoration:underline; }

@media (max-width: 540px){
  .ro-accordion--thin .ro-accordion-summary{ align-items:flex-start; padding:10px 12px; min-height:auto; }
  .ro-accordion-text{ flex-direction:column; align-items:flex-start; gap:2px; }
  .ro-accordion-text .t1, .ro-accordion-text .t2{ white-space:normal; text-overflow:initial; overflow:visible; }
  .ro-accordion-text .t2{ font-size:.98rem; }
  .ro-accordion-caret::before{ margin-top:2px; }
}
/* Hover/focus color on subtitle */
.ro-accordion-summary .t2{ transition: color .15s ease; }
.ro-accordion-summary:hover .t2,
.ro-accordion-summary:focus-visible .t2,
.ro-accordion[open] .ro-accordion-summary .t2{ color: var(--color-accent); }

/* ---------- Forms (inputs, select, checkbox RGPD) ---------- */
.input {
  appearance: none;
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 .75rem;
  border: 1px solid #cfd6db; border-radius: var(--radius);
  background: #fff; font: inherit; color: var(--color-text);
  transition: box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}
.input:focus { outline: 2px solid rgba(226,106,74,.35); border-color: #e6a091; }

.input--search {
  padding-left: 2.2rem; width: 260px;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%236b7780' stroke-width='2' fill='none'/%3E%3Cline x1='16.65' y1='16.65' x2='21' y2='21' stroke='%236b7780' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: .65rem 50%; background-size: 18px;
}

.select {
  -webkit-appearance: none; appearance: none; width: 100%;
  padding: .6rem .95rem; padding-right: 2.4rem;
  border: 1px solid var(--border, #d8dee4); border-radius: 10px; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2335434c' d='M5.8 7.5L10 11.7l4.2-4.2.8.8-5 5-5-5 .8-.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 14px 14px;
  font: inherit; line-height: 1.3; color: #22313a;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.select:hover { border-color: #c6ced6; }
.select:focus { outline: none; border-color: #5aa0ff; box-shadow: 0 0 0 3px rgba(90,160,255,.15); }
.field .error + .select, .field .select.is-error { border-color: #d93025; box-shadow: 0 0 0 3px rgba(217,48,37,.08); }

.grid { display: grid; gap: .75rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

input, textarea {
  width: 100%; padding: .6rem .7rem;
  border-radius: var(--radius); border: 1px solid #cfd6db; background: #fff;
  font: inherit; color: var(--color-text);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid rgba(226,106,74,.35); border-color: #e6a091; background: #fff; }

.checkbox-label { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: .6rem; user-select: none; }
.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 22px; height: 22px; }
.checkbox-label span { position: relative; display: inline-block; color: #35434c; }
.checkbox-label span::before {
  content: ""; position: absolute; left: -28px; top: 2px;
  width: 18px; height: 18px; border: 1px solid var(--border, #d8dee4);
  border-radius: 5px; background: #fff; transition: all .15s ease;
}
.checkbox-label input[type="checkbox"]:checked + span::before {
  background: #2a7; border-color: #2a7; box-shadow: inset 0 0 0 2px #fff;
}
.checkbox-label input[type="checkbox"]:focus-visible + span::before {
  outline: 3px solid rgba(90,160,255,.35); outline-offset: 2px;
}
.checkbox-label:hover span::before { border-color: #c6ced6; }

.field.field--checkbox { width: 100%; }
.field.field--checkbox .checkbox-label{
  display: flex; align-items: flex-start; gap: .6rem; width: 100%; padding-left: 1.8rem;
}
.field.field--checkbox .checkbox-label input[type="checkbox"]{
  accent-color: #2a7; width: 18px; height: 18px; margin-top: .2rem; flex: 0 0 auto;
}
.field.field--checkbox .checkbox-label span{
  flex: 1 1 auto; color: #35434c; line-height: 1.45;
}
.field.field--checkbox .checkbox-label:hover input[type="checkbox"]{ filter: brightness(0.95); }

/* ---------- Prose (rythme, listes, quotes, images) ---------- */
/* Desktop: on garde le look éditorial, justification tolérée si souhaitée */
#qui-sommes-nous .prose { color: #2a343a; line-height: 1.6; }

.prose h1, .prose h2, .prose h3 { color: var(--color-header); letter-spacing: -0.01em; }
.prose h1 { margin: .4rem 0 .6rem; font-size: var(--font-scale-2xl); }
.prose h2 { margin: 1.1rem 0 .4rem; font-size: var(--font-scale-xl); }
.prose h3 { margin: .9rem 0 .35rem;  font-size: var(--font-scale-lg); }

.prose p {
  margin: .6rem 0;
  text-align: justify; text-justify: inter-word;
  hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto;
  line-height: 1.7;
}
.prose p + p { margin-top: .55rem; }

.prose ul, .prose ol {
  margin: .35rem 0 .8rem 1.2rem;
  padding-left: 1rem;
  line-height: 1.65;
  list-style-position: outside;
}
.prose li { margin: .25rem 0; }

.prose a { color: var(--color-header); text-decoration: underline; }
.prose a:hover { color: var(--color-accent); }

.prose blockquote {
  margin: .9rem 0; padding: .7rem .9rem;
  border-left: 4px solid var(--color-accent);
  background: #fff6f3; border-radius: 8px; color: #2a343a;
}

.prose img { border-radius: 10px; display: block; margin: .6rem 0; }

/* Légaux/charte confort */
.ro-legal, .ro-charte { line-height: 1.7; }
.ro-legal h2, .ro-charte h2 { margin-top: 1.2rem; margin-bottom: .4rem; }


/* =========================================================
   RestOptima vNext — PART 4/4
   Blog Filters + Responsive + Print
   ========================================================= */

/* ---------- Blog filters bar ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  margin: .6rem 0 1rem;
}
.results-count { color: #5d6a73; font-size: .95rem; }

.filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: .25rem 0 1rem;
  flex-wrap: wrap;
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #fff;
  border: 1px solid #d6dde2;
  border-radius: 999px;
  padding: .25rem .55rem;
  font-size: .9rem;
  color: #2a343a;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.chip b { font-weight: 600; color: var(--color-header); }
.chip a {
  color: #6b7780;
  text-decoration: none;
  font-weight: 600;
}
.chip a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Responsive search */
@media (max-width: 640px) {
  .filters { gap: .5rem; }
  .input--search { width: 100%; }
}

/* ---------- Pagination ---------- */
.center.mt-3 {
  display:flex;
  gap:.5rem;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}
.center.mt-3 span {
  font-size:.95rem;
  color:#35434c;
}

/* ---------- Responsive harmonization ---------- */
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .aside-left, .aside-right { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .main { padding: 1rem; }
  .section { margin-bottom: 1.2rem; }
  .prose { font-size: .98rem; line-height: 1.65; }
  .hero, .hero--image { border-radius: 0; } /* plein écran mobile */
  .btn, .input, .select { width: 100%; }
  .footer-grid, .footer-list { gap: .4rem; }
}

/* ---------- Print styles ---------- */
@media print {
  .site-header, .aside-left, .aside-right, .site-footer,
  .btn, .ro-expander-summary, .filters, .filters-bar { display: none !important; }
  .layout, .main { box-shadow: none; background: #fff; }
  a { color: #000; text-decoration: underline; }
  body { color: #000; font-size: 12pt; line-height: 1.5; }
  img { max-width: 100%; border: 0; }
}

/* =========================================================
   End of RestOptima vNext CSS
   ========================================================= */

/* =========================================================
   RESTOPTIMA — PATCH CONSOLIDÉ (rendu inchangé)
   ========================================================= */

/* --- Variable de gouttière mobile --- */
:root { --gutter-mobile: 16px; }

/* --- Index : “Pour aller plus loin” cohérent --- */
.cards--singlefull { display:block; list-style:none; padding:0; margin:0 0 1.25rem 0; }
.cards--singlefull > li.card { width:100%; }

/* --- Header : halo corail + séparateurs nav --- */
.brand .brand-logo { box-shadow: 0 0 0 1.5px var(--color-bg); transition: box-shadow .18s ease, transform .12s ease; }
@media (hover:hover){
  .brand:hover .brand-logo { box-shadow: 0 0 0 2px var(--color-accent), 0 0 12px rgba(226,106,74,.22); transform: translateY(-1px); }
}
.nav { gap:.9rem; }
.nav a{ position:relative; padding:0 .6rem; }
.nav a:not(:first-child)::before{
  content:""; position:absolute; left:-.45rem; top:50%; transform:translateY(-50%);
  height:1.1em; width:1px; background:var(--color-accent); opacity:.95;
}

/* --- Mobile : edge-to-edge global + gouttière pour le texte --- */
@media (max-width:640px){
  .layout{ padding:0; }
  .main{ padding:0; border-radius:0; }
  .card-link,.card,.ro-intro,.category-intro{ border-radius:0; }

  .post-header,
  .prose,
  .category-intro,
  .ro-intro,
  .filters,
  .feedback,
  form,
  .ro-social-inline,
  .section > h1,
  .section > h2,
  .section > h3 {
    padding-left: var(--gutter-mobile);
    padding-right: var(--gutter-mobile);
  }

  /* Blog/detail : règle globale (sera affinée plus bas) */
  .section > .prose {
    padding-left: var(--gutter-mobile) !important;
    padding-right: var(--gutter-mobile) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Image de couverture */
  .post-header + img[loading="lazy"]{
    display:block;
    margin-left:var(--gutter-mobile);
    margin-right:var(--gutter-mobile);
    border-radius:10px;
  }

  /* “À la Une” — CTA pleine largeur */
  #a-la-une .center{ padding-left:var(--gutter-mobile); padding-right:var(--gutter-mobile); }
  #a-la-une .center .btn{
    width:100%;
    min-height:44px;
    padding:.6rem 1rem;
    border-radius:10px;
    font-weight:600;
  }

  /* “Soutenir RestOptima” aligné comme Contact */
  .section[aria-labelledby="support-title"] > *,
  .section[aria-labelledby="support-title"] .btn,
  .section[aria-labelledby="support-title"] p.muted {
    padding-left:var(--gutter-mobile);
    padding-right:var(--gutter-mobile);
  }

  /* Légaux/charte — annule le full-width par défaut du thème sur le CTA accent */
  .ro-legal .mt-3 .btn-accent{
    width:auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
    min-height:44px;
    padding:.6rem 1rem;
    border-radius:10px;
    font-weight:600;
  }
}

/* --- Mobile : align-left pour tout le texte éditorial --- */
@media (max-width:640px){
  .prose p, .prose li, .muted, .card-post-content p,
  .category-intro__text, .ro-legal p, .ro-charte p {
    text-align:left !important;
    text-align-last:auto !important;
    hyphens:manual !important;
    -webkit-hyphens:manual !important;
    -ms-hyphens:manual !important;
    word-break:normal !important;
  }
}

/* --- Feedback : boutons côte à côte --- */
.feedback .btn{
  width:auto !important;
  display:inline-flex; align-items:center; justify-content:center;
  white-space:nowrap;
}
.feedback .btn + .btn{ margin-left:.5rem; }

/* --- Footer : ligne compacte centrée --- */
.site-footer{
  background:#f3f5f7;
  color:var(--color-header);
  border-top:1px solid rgba(0,0,0,.08);
  padding:.6rem 0;
  text-align:center;
  font-size:.92rem;
  line-height:1.3;
}
.footer-grid{ display:flex; justify-content:center; align-items:center; margin:0; }
.footer-inline{ display:inline-flex; align-items:baseline; gap:.6rem; flex-wrap:wrap; }
.footer-inline, .footer-inline *{ font-size:.88rem; line-height:1.3; }
.footer-inline small{ opacity:.9; }
.footer-inline a{ color:inherit; text-decoration:none; opacity:.9; }
.footer-inline a:hover, .footer-inline a:focus{ color:var(--color-accent); opacity:1; outline:none; }
@media (max-width:360px){
  .footer-inline, .footer-inline *{ font-size:.80rem; }
  .footer-inline{ gap:.4rem; }
}

/* --- Accessibilité header (touch targets) --- */
@media (max-width:640px){ .nav a{ min-height:44px; } }

/* --- CTA “À la Une” (desktop aussi) --- */
.cards-featured + .center .btn{
  min-height:44px;
  padding:.6rem 1rem;
  border-radius:10px;
  font-weight:600;
}

/* --- Blog/list : alignements précis --- */
@media (max-width:640px){
  .section > h1 + p.muted{ padding-left:var(--gutter-mobile); padding-right:var(--gutter-mobile); }
  .filters-bar{ padding-left:var(--gutter-mobile); padding-right:var(--gutter-mobile); }
  .filters-bar .results-count, .filters-bar .filter-chips{
    padding-left:0 !important; padding-right:0 !important;
  }
}
.filters-bar .results-count{ padding-left:0 !important; padding-right:0 !important; }

/* --- Sidebar “Aller plus loin” --- */
.aside-head{ margin:0 0 .5rem 0; padding-inline:2px; font-weight:700; color:var(--color-header,#35434c); letter-spacing:.005em; }
.aside-linklist{ display:grid; gap:10px; margin:0; padding:0; }
.aside-linkcard{
  position:relative; display:grid; gap:4px; padding:12px 12px 12px 14px;
  min-height:104px; background:#fff; color:var(--color-text,#17212a);
  border:1px solid rgba(0,0,0,.06); border-radius:var(--radius,12px); box-shadow:var(--shadow);
  text-decoration:none; transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease, background-color .14s ease;
}
.aside-linkcard::before{
  content:""; position:absolute; left:-1px; top:8px; bottom:8px; width:0; background:var(--color-accent,#e26a4a);
  border-radius:2px; transition:width .14s ease, opacity .14s ease; opacity:0;
}
.aside-linkcard:hover::before, .aside-linkcard:focus-visible::before{ width:3px; opacity:1; }
.aside-linkcard:hover{
  transform:translateY(-1px); box-shadow:0 10px 20px rgba(0,0,0,.08);
  border-color:rgba(0,0,0,.10); background:#fff;
}
.aside-linkcard:focus-visible{
  outline:none; box-shadow:0 0 0 2px rgba(226,106,74,.20), 0 0 0 4px rgba(226,106,74,.12), var(--shadow);
}
.aside-linkcard strong{ font-size:.98rem; line-height:1.15; color:var(--color-header,#35434c); font-weight:700; }
.aside-linkcard .muted{ font-size:.93rem; color:var(--color-muted,#607080); line-height:1.35; }
@media (hover:none){ .aside-linkcard{ min-height:108px; } }
@media (prefers-reduced-motion:reduce){
  .aside-linkcard, .aside-linkcard::before{ transition:none !important; }
}
.aside-block .aside-head{ margin-bottom:.55rem; }
.aside-block .aside-linkcard{ border-radius:var(--radius); }
.bg-app-dark .aside-linkcard{ background:#fdfdfd; }

/* --- Services (Qui sommes-nous) --- */
#qui-sommes-nous .cards,
.cards-services {
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:1.25rem !important;
}
#qui-sommes-nous .card{
  padding:1.15rem 1.25rem;
  border:1px solid #d6dde2; background:#fff;
}
#qui-sommes-nous .card.ro-service,
#qui-sommes-nous .cards-services .card{
  background:#fff; border:1px solid #d6dde2; border-radius:var(--radius);
  box-shadow:var(--shadow); padding:1.15rem 1.25rem; color:#2a343a;
}
#qui-sommes-nous .card p.muted{ margin:0 0 .25rem; color:#5d6a73; }
#qui-sommes-nous .card h3{
  margin:0 0 .35rem; color:var(--color-header); font-weight:700; letter-spacing:-0.01em; line-height:1.25;
}
/* Expandeur service */
#qui-sommes-nous .ro-expander{ margin-top:.75rem; border-top:1px solid #ccd5db; padding-top:.75rem; overflow:hidden; }
#qui-sommes-nous .ro-expander-summary{
  display:block; width:100%; margin:0; padding:.55rem .9rem;
  border:1px solid #cfd6db; border-radius:10px; background:#fff; cursor:pointer; user-select:none;
  text-align:center; font-weight:600; line-height:1.25; position:relative;
  transition:box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}
#qui-sommes-nous .ro-expander-summary::-webkit-details-marker{ display:none; }
#qui-sommes-nous .ro-expander-summary:hover{ box-shadow:var(--shadow); border-color:#bec7cd; }
#qui-sommes-nous .ro-expander[open] .ro-expander-summary{ border-color:#e6a091; box-shadow:0 8px 24px rgba(0,0,0,.07); }
#qui-sommes-nous .ro-expander-summary::after{
  content:""; position:absolute; right:12px; top:50%; transform:translateY(-50%) rotate(45deg);
  width:10px; height:10px; border-right:2px solid currentColor; border-bottom:2px solid currentColor;
  opacity:.8; transition:transform .18s ease, opacity .18s ease;
}
#qui-sommes-nous .ro-expander[open] .ro-expander-summary::after{ transform:translateY(-50%) rotate(-135deg); }
#qui-sommes-nous .ro-expander-summary .label-open{ display:none; }
#qui-sommes-nous .ro-expander[open] .ro-expander-summary .label-open{ display:inline; }
#qui-sommes-nous .ro-expander[open] .ro-expander-summary .label-closed{ display:none; }
#qui-sommes-nous .ro-expander-panel{ padding:.9rem .2rem 0; animation:ro-fade .2s ease; }
@media (max-width:640px){ #qui-sommes-nous .ro-expander-summary{ padding:.6rem .9rem; } }

/* --- Intros de section (fond blanc + style carte) --- */
.ro-intro{
  background:#fff; border:1px solid #d6dde2; border-radius:var(--radius); box-shadow:var(--shadow);
  padding:var(--space-4); margin:0 0 var(--space-4);
}
.ro-intro p{ margin:.5rem 0; color:#2a343a; }
.ro-intro strong{ color:var(--color-header); }
.category-intro{
  margin:0 0 1rem 0; padding:1rem 1rem; background:#fff;
  border:1px solid #d6dde2; border-left:4px solid var(--color-accent);
  border-radius:12px; box-shadow:var(--shadow);
}
.category-intro__title{
  margin:0 0 .25rem 0; font-size:clamp(1.1rem, 1.2vw + .9rem, 1.5rem); line-height:1.2; color:#35434C; font-weight:700;
}
.category-intro__text{ margin:0; color:#2a2a2a; line-height:1.5; }
@media (max-width:640px){
  .ro-intro, .category-intro{ border-radius:0; }
}

/* --- Normalisation couleurs de texte --- */
.prose{ color:#2a343a; }
.prose p, .prose li{ color:inherit; }
.prose .muted{ color:#5d6a73; }
.prose .meta, .card-post .meta, .post-header .meta{ color:#6b7780; }
.ro-legal, .ro-charte{ color:#2a343a; }
.ro-legal p, .ro-charte p, .ro-legal li, .ro-charte li{ color:inherit; }
.ro-intro, .ro-intro p, .category-intro__text, .card-post-content p{ color:#2a343a; }
.site-footer{ color:var(--color-header); }
.site-footer .footer-list a{ color:var(--color-header); }
.site-footer .footer-list a:hover, .site-footer .footer-list a:focus{ color:var(--color-accent); }

/* --- Alignement “Votre avis” + contenu article (mobile) --- */
@media (max-width:640px){
  /* Section article : applique la gouttière au conteneur… */
  .section.article-detail,
  .section[aria-labelledby="article-title"] {
    padding-left: var(--gutter-mobile);
    padding-right: var(--gutter-mobile);
  }
  /* …mais enlève la double gouttière sur la prose */
  .section.article-detail .prose,
  .section.article-detail > .prose,
  .section[aria-labelledby="article-title"] .prose,
  .section[aria-labelledby="article-title"] > .prose,
  .post-header + .prose,
  .post-content .prose,
  .article .prose {
    padding-left:0 !important; padding-right:0 !important;
    margin-left:0 !important; margin-right:0 !important;
  }

  /* “Votre avis” : pas de double padding */
  .feedback{ padding-left:var(--gutter-mobile); padding-right:var(--gutter-mobile); }
  .feedback > h2{ padding-left:0 !important; padding-right:0 !important; margin-left:0; }
  .feedback p, .feedback .btn{ margin-left:0 !important; margin-right:0 !important; }
}

/* --- Légaux/charte : bloc boutons (mobile) — largeur naturelle + alignement --- */
@media (max-width:640px){
  .ro-legal .mt-3,
  .ro-charte .mt-3{
    padding-left:var(--gutter-mobile) !important;
    padding-right:var(--gutter-mobile) !important;
    margin-left:0 !important; margin-right:0 !important;
  }
  .ro-legal .mt-3 .btn,
  .ro-charte .mt-3 .btn{
    width:auto !important;
    min-width:auto !important;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
    max-width:100%;
  }
  .ro-legal .mt-3 .btn + .btn,
  .ro-charte .mt-3 .btn + .btn{ margin-left:.5rem; }
}

/* =========================================================
   PATCH — Tips Checkout Popup (onglets + curseur)
   ========================================================= */

/* Onglet actif : corail, texte blanc */
#tips-checkout-popup .btn-ghost.btn-accent {
  background-color: var(--color-accent) !important;
  color: #fff !important;
  border-color: var(--color-accent) !important;
}

/* Hover sur l’onglet actif : léger assombrissement */
#tips-checkout-popup .btn-ghost.btn-accent:hover {
  background-color: #c6593d !important;
}

/* Tous les onglets : curseur main et transition douce */
#tips-checkout-popup #tab-once,
#tips-checkout-popup #tab-recurring {
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* =========================================================
   PATCH — Header & Footer (vue smartphone)
   ========================================================= */

@media (max-width: 640px) {
  /* --- HEADER --- */
  .site-header {
    padding: .45rem .45rem; /* réduit la hauteur globale */
  }

  /* Réduction taille du texte dans la navigation */
  .nav a {
    font-size: .9rem;
    padding: 0 .4rem; /* réduit l'espacement horizontal */
  }

  /* Réduction de l'écart entre les séparateurs */
  .nav a:not(:first-child)::before {
    left: -.3rem; /* plus proche du texte */
    height: 1em;  /* un peu plus court */
    opacity: .85;
  }

  /* Marque / logo : un poil plus petit */
  .brand-text {
    font-size: .95rem;
  }

  /* --- FOOTER --- */
  .site-footer {
    font-size: .82rem;
    line-height: 1.25;
    padding: .45rem 0;
  }

  .footer-inline {
    gap: .45rem;
    flex-wrap: wrap;
  }

  .footer-inline small,
  .footer-inline a {
    font-size: .8rem;
  }
}

/* Ultra petits écrans (<360px) : réduction maximale */
@media (max-width: 360px) {
  .nav a {
    font-size: .85rem;
    padding: 0 .3rem;
  }

  .footer-inline,
  .footer-inline * {
    font-size: .75rem !important;
  }
}
