:root {
  --blue: #000091;
  --blue-dark: #06005c;
  --blue-soft: #f5f5ff;
  --red: #e1000f;
  --red-soft: #fff4f4;
  --ink: #161616;
  --muted: #666666;
  --line: #dddddd;
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --focus: #fdd000;
  --container: 1180px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .08);
  --anchor-offset: 230px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}
[id] { scroll-margin-top: var(--anchor-offset); }
body {
  margin: 0;
  font-family: "Google Sans Flex", "Google Sans Flex Variable", Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 999;
  background: var(--blue);
  color: #fff;
  padding: .75rem 1rem;
  transform: translateY(-140%);
}
.skip-link:focus { transform: translateY(0); }

/* Header : version institutionnelle simple, sans recherche, menu ni contact */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.header-main {
  min-height: 156px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  padding: .5rem 0;
}
.brand-block {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand-logo img {
  width: 300px;
  height: 140px;
  max-width: min(300px, 82vw);
  max-height: 140px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-text {
  border-left: 1px solid var(--line);
  padding-left: 1rem;
  min-width: 0;
}
.brand-text strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: .01em;
}
.brand-text small {
  display: block;
  margin-top: .35rem;
  color: var(--muted);
  font-size: .88rem;
}
.header-tools {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-bottom: none;
}
.tool-link, .tool-button, .menu-button {
  min-height: 48px;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
.menu-button { border-right: 0; color: var(--ink); }
.menu-button span {
  width: 18px;
  height: 2px;
  display: block;
  background: var(--ink);
  margin: 3px 0;
}
.menu-button { flex-direction: row; }
.menu-button em { font-style: normal; }

.search-panel {
  background: var(--blue-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.search-inner { padding: 1.25rem 0; }
.search-inner label,
.institutional-search label {
  display: block;
  margin-bottom: .55rem;
  font-weight: 800;
}
.search-line {
  display: flex;
  min-height: 54px;
  max-width: 760px;
}
.search-line input {
  flex: 1;
  min-width: 0;
  padding: 0 1rem;
  border: 2px solid var(--ink);
  border-right: 0;
  background: #fff;
}
.search-line button {
  border: 2px solid var(--blue);
  background: var(--blue);
  color: #fff;
  padding: 0 1.25rem;
  font-weight: 800;
  cursor: pointer;
}
.search-line.compact { min-height: 48px; }
.search-line.compact button { background: var(--ink); border-color: var(--ink); }
.search-help { color: var(--muted); margin: .6rem 0 0; }

.primary-nav {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.nav-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.nav-grid a {
  min-height: 48px;
  padding: 0 1.1rem;
  display: inline-flex;
  align-items: center;
  border-right: 1px solid var(--line);
  text-decoration: none;
  font-weight: 300;
}
.nav-grid a:first-child { border-left: 1px solid var(--line); }
.nav-grid a:hover { background: var(--blue-soft); color: var(--blue); }

.section { padding: 4.5rem 0; }
.section-muted { background: var(--bg-soft); }
.breadcrumb {
  display: flex;
  gap: .5rem;
  align-items: center;
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--blue); }
.hero { padding-top: 2rem; background: linear-gradient(180deg, #fff 0%, #fff 55%, var(--blue-soft) 55%); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 3rem;
  align-items: center;
}
.kicker {
  margin: 0 0 .8rem;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .85rem;
}
h1, h2, h3 { line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 4.85rem); max-width: 980px; letter-spacing: -.04em; }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: 1.25rem; }
.lead {
  max-width: 780px;
  margin: 1.35rem 0 0;
  color: #3a3a3a;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.1rem;
  text-decoration: none;
  border: 2px solid currentColor;
  font-weight: 400;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { color: var(--blue); background: #fff; }
.btn-secondary:hover { background: var(--blue-soft); }
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-card img { width: 100%; padding: 1rem 2rem 0; object-fit: contain; }
.quick-card {
  border-top: 4px solid var(--blue);
  padding: 1.25rem;
  background: #fff;
}
.quick-card h2 { font-size: 1.45rem; }
.quick-card p { color: var(--muted); }
.quick-card a { color: var(--blue); font-weight: 900; }

.two-columns, .split, .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: start;
}
.split.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.section-title p:not(.kicker) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}
.institutional-search {
  border-top: 4px solid var(--blue);
  background: var(--bg-soft);
  padding: 1.5rem;
}
.tags {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.tags button {
  border: 1px solid var(--blue);
  color: var(--blue);
  background: #fff;
  padding: .55rem .75rem;
  font-weight: 800;
  cursor: pointer;
}
.tags button:hover, .tags button.is-active { background: var(--blue); color: #fff; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.online-services-grid {
  align-items: stretch;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-card:nth-child(even) { border-top-color: var(--red); }
.service-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 145, 0) 48%, rgba(0, 0, 145, .16) 100%);
  pointer-events: none;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}
.service-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 1.25rem;
  min-height: 290px;
}
/* Les anciennes icônes ont été retirées : les cartes utilisent maintenant des photos réelles. */
.card-number {
  font-weight: 900;
  color: var(--blue);
  font-size: .95rem;
}
.service-card:nth-child(even) .card-number { color: var(--red); }
.service-card p { color: var(--muted); margin: 0; }
.service-card a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.service-card a::after { content: " →"; }
.service-card.is-hidden { display: none; }

/* Rubrique Qui sommes-nous */
.about-section {
  background: #fff;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 3rem;
  align-items: stretch;
}
.about-lead {
  font-size: 1.16rem;
  color: #3a3a3a !important;
}
.about-proof {
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  background: var(--blue-soft);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-proof strong {
  display: block;
  color: var(--blue);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.about-proof p {
  margin: .75rem 0 0;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.03em;
}
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.founder-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  background: #fff;
  padding: 1.35rem;
}
.founder-card:nth-child(even) { border-left-color: var(--red); }
.founder-card:nth-child(even) .card-number { color: var(--red); }
.founder-role {
  margin: .35rem 0 1rem;
  color: var(--blue);
  font-weight: 900;
}
.founder-card p:not(.founder-role) { color: var(--muted); }

.reason-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.reason-list article,
.engagement-panel,
.faq-list details,
.figures-grid article {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.25rem;
}
.reason-list article { border-left: 4px solid var(--blue); }
.reason-list article:nth-child(even) { border-left-color: var(--red); }
.reason-list p { color: var(--muted); margin-bottom: 0; }

.steps-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: .85rem;
}
.steps-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
}
.steps-list span {
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  font-size: 1.25rem;
}
.steps-list li:nth-child(even) span { background: var(--red); }
.steps-list div { padding: 1.1rem 1.25rem; }
.steps-list p { margin: .4rem 0 0; color: var(--muted); }

.engagement-panel {
  background: var(--blue);
  color: #fff;
  border: 0;
  min-height: 360px;
}
.engagement-panel h2 { color: #fff; }
.engagement-panel p { font-size: 1.15rem; }
.engagement-panel ul { margin: 1.5rem 0 0; padding-left: 1.1rem; }
.engagement-panel li + li { margin-top: .65rem; }
.accordion {
  border-top: 1px solid var(--line);
}
.accordion button {
  width: 100%;
  min-height: 58px;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 1rem 3rem 1rem 1rem;
  font-weight: 900;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.accordion button::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 1.5rem;
}
.accordion button[aria-expanded="true"]::after { content: "−"; }
.accordion div {
  background: var(--blue-soft);
  border-bottom: 1px solid var(--line);
  padding: .9rem 1rem;
}
.accordion p { margin: 0; color: #3a3a3a; }

.figures { background: var(--blue); color: #fff; }
.figures .kicker, .figures .section-title p { color: #fff; }
.figures-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.figures-grid article { background: #fff; color: var(--ink); min-height: 150px; }
.figures-grid strong {
  display: block;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}
.figures-grid span { display: block; margin-top: .75rem; color: var(--muted); }

.faq-list { display: grid; gap: .75rem; }
.faq-list details { padding: 0; overflow: hidden; }
.faq-list summary {
  padding: 1rem;
  cursor: pointer;
  font-weight: 900;
  color: var(--blue);
}
.faq-list p { margin: 0; padding: 0 1rem 1rem; color: var(--muted); }

.contact-section { background: linear-gradient(90deg, var(--blue-soft), #fff); }
.contact-list {
  margin-top: 1.5rem;
  border-left: 4px solid var(--blue);
  padding-left: 1rem;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.contact-form label { display: grid; gap: .45rem; margin-bottom: 1rem; font-weight: 800; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 2px solid var(--ink);
  background: #fff;
  padding: .8rem;
}
.form-note { color: var(--muted); font-size: .9rem; margin: 1rem 0 0; }

.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 2.5rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}
.footer-grid nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-grid a { color: #fff; }
.legal { grid-column: 1 / -1; color: #d1d1d1; font-size: .9rem; border-top: 1px solid #3a3a3a; padding-top: 1rem; }
.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.back-top.is-visible { opacity: 1; pointer-events: auto; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) {
  :root { --anchor-offset: 150px; }
  .cards-grid, .figures-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .two-columns, .split, .contact-grid, .split.reverse, .about-grid { grid-template-columns: 1fr; }
  .hero { background: #fff; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 24px, var(--container)); }
  .header-main { min-height: 132px; gap: .8rem; justify-content: center; }
  .brand-logo img { width: min(300px, 82vw); height: 126px; max-height: 126px; }
  .brand-text { display: none; }
  .header-tools, .search-panel, .primary-nav { display: none !important; }
  .section { padding: 3rem 0; }
  .search-line { flex-direction: column; }
  .search-line input { border-right: 2px solid var(--ink); min-height: 48px; }
  .search-line button { min-height: 48px; }
  .notice-inner { grid-template-columns: 1fr; }
  :root { --anchor-offset: 118px; }
  .cards-grid, .figures-grid, .reason-list, .founders-grid { grid-template-columns: 1fr; }
  .service-content { min-height: auto; }
  .steps-list li { grid-template-columns: 48px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 420px) {
  .brand-logo img { width: min(280px, 86vw); height: 116px; max-height: 116px; }
}

/* V4 : menu restauré, slogan près du logo et gestion cookies */
.header-main-with-nav {
  min-height: 156px;
  justify-content: space-between;
}
.brand-logo {
  max-width: min(100%, 760px);
}
.brand-slogan {
  display: block;
  border-left: 4px solid var(--blue);
  padding-left: 1rem;
  max-width: 390px;
}
.brand-slogan strong {
  display: block;
  color: var(--blue);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.brand-slogan small {
  display: block;
  margin-top: .45rem;
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.35;
}
.burger-button {
  display: none;
  width: 48px;
  height: 48px;
  border: 0px solid var(--line);
  background: #fff;
  cursor: pointer;
  padding: .75rem;
}
.burger-button span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.burger-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.btn-ghost {
  color: var(--blue);
  background: #fff;
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--blue-soft); }
.footer-cookie-link {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: rgba(22, 22, 22, .18);
  padding: 1rem;
}
.cookie-box {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
  padding: 1.25rem;
}
.cookie-eyebrow {
  margin: 0 0 .35rem;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .06em;
}
.cookie-copy h2,
.cookie-modal-card h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}
.cookie-copy p:not(.cookie-eyebrow) {
  margin: .6rem 0 0;
  color: #3a3a3a;
  max-width: 780px;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .7rem;
}
.cookie-actions .btn,
.cookie-modal-actions .btn { min-height: 44px; }
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.cookie-modal[hidden], .cookie-banner[hidden] { display: none !important; }
.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .44);
}
.cookie-modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 2rem));
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
  padding: 1.25rem;
}
.cookie-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.cookie-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  padding: 1rem;
  margin-top: .75rem;
  background: #fff;
}
.cookie-category strong,
.cookie-category h3 { display: block; font-size: 1.05rem; }
.cookie-category small,
.cookie-category p { display: block; margin-top: .3rem; color: var(--muted); }
.cookie-category input[type="checkbox"] {
  width: 28px;
  height: 28px;
  accent-color: var(--blue);
  flex: 0 0 auto;
}
.cookie-category-required {
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
}
.cookie-required {
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .7rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .header-main-with-nav {
    min-height: 104px;
    justify-content: space-between;
  }
  .brand-logo {
    gap: .65rem;
    max-width: calc(100% - 62px);
  }
  .brand-logo img {
    width: min(180px, 46vw);
    height: auto;
    max-height: 86px;
  }
  .brand-slogan {
    border-left-width: 3px;
    padding-left: .65rem;
    max-width: 180px;
  }
  .brand-slogan strong { font-size: .9rem; }
  .brand-slogan small { display: none; }
  .burger-button { display: block; flex: 0 0 auto; }
  .header-tools, .search-panel { display: none !important; }
  .primary-nav {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    border-top: 0;
    transition: max-height .25s ease;
  }
  .primary-nav.is-open {
    max-height: 420px;
    border-top: 1px solid var(--line);
  }
  .nav-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-grid a,
  .nav-grid a:first-child {
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 50px;
  }
  .cookie-box {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 1rem;
  }
  .cookie-actions,
  .cookie-modal-actions {
    justify-content: stretch;
  }
  .cookie-actions .btn,
  .cookie-modal-actions .btn {
    width: 100%;
  }
  .cookie-category {
    align-items: flex-start;
  }
}

/* Popup mentions légales */
.legal-modal-card {
  width: min(920px, 100%);
}
.legal-notice {
  display: grid;
  gap: .75rem;
  color: #1e1e1e;
  line-height: 1.65;
}
.legal-notice h3 {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-size: 1.18rem;
}
.legal-notice h3:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.legal-notice p {
  margin: 0;
}
.legal-notice a {
  color: var(--blue);
}
.legal-intro {
  border-left: 4px solid var(--red);
  background: #fff4f4;
  padding: .9rem 1rem;
}

/* Version engagements développée : style cartes outils pratiques */
.commitments-section {
  background: #fff;
}
.commitments-title {
  max-width: 820px;
}
.commitments-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}
.commitment-card {
  position: relative;
  min-height: 245px;
  padding: 1.35rem 1.2rem 1.45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.commitment-card:nth-child(even) {
  border-top-color: var(--red);
}
.commitment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.commitment-card h3 {
  margin-top: 1rem;
  color: var(--ink);
  font-size: 1.22rem;
  letter-spacing: -.02em;
}
.commitment-card p {
  margin: .75rem 0 0;
  color: var(--muted);
}
.commitment-card-wide {
  grid-column: span 2;
}
.commitment-icon {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 50%;
}
.commitment-icon-red {
  background: var(--red-soft);
  color: var(--red);
}
.commitment-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Image encadrée FAQ */
.faq-visual-frame {
  margin-top: 1.5rem;
  position: relative;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-visual-frame img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.faq-visual-frame span {
  display: block;
  padding: 1rem;
  color: var(--ink);
  font-weight: 500;
  background: #fff;
}

@media (max-width: 1040px) {
  .commitments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .commitments-grid {
    grid-template-columns: 1fr;
  }
  .commitment-card-wide {
    grid-column: auto;
  }
  .commitment-card {
    min-height: auto;
  }
}


/* Version contact final : téléphone, image encadrée et bouton WhatsApp */
.contact-visual-frame {
  margin-top: 1.5rem;
  position: relative;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.contact-visual-frame img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.contact-visual-frame span {
  display: block;
  padding: 1rem;
  color: var(--ink);
  font-weight: 400;
  background: #fff;
}
.whatsapp-float {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 70;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .72rem .95rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
  font-weight: 400;
}
.whatsapp-float:hover {
  filter: brightness(.95);
}
.whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .whatsapp-float {
    left: 12px;
    bottom: 12px;
    width: 54px;
    height: 54px;
    min-height: 54px;
    justify-content: center;
    padding: 0;
  }
  .whatsapp-float span { display: none; }
  .whatsapp-float svg { width: 30px; height: 30px; }
}
