/* Pages légales (FR / EN / AR) — même habillage que le site (style Lovable d'origine,
   thème neutre de la page mère), sans dépendance au build React. Le texte juridique est
   dans la page ; ce fichier ne fait que le mettre en forme. Polices auto-hébergées (RGPD). */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/static/fonts/inter-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/static/fonts/inter-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(/static/fonts/inter-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(/static/fonts/inter-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url(/static/fonts/montserrat-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url(/static/fonts/montserrat-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url(/static/fonts/montserrat-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url(/static/fonts/montserrat-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --vert-profond: 186 80% 13%;
  --vert-vegetal: 142 21% 47%;
  --creme: 45 44% 96%;
  --anthracite: 195 8% 20%;
  --muted: 195 8% 30%;
  --card: 45 35% 94%;
  --surface: 45 32% 93%;
  --border: 186 18% 84%;
  --accent: 142 21% 47%;
  --accent-2: 142 28% 60%;
  --orange: 28 68% 54%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: "Inter", Arial, sans-serif; background: hsl(var(--creme)); color: hsl(var(--anthracite)); line-height: 1.7; }
a { color: hsl(var(--vert-profond)); text-underline-offset: 3px; }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }

/* En-tête translucide, comme la barre du site */
header.bar { position: sticky; top: 0; z-index: 50; background: hsl(var(--creme) / .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid hsl(var(--border) / .5); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand img { height: 44px; width: auto; display: block; }
.menu { display: flex; gap: 28px; }
.menu a { color: hsl(var(--muted)); text-decoration: none; transition: color .3s; }
.menu a:hover { color: hsl(var(--vert-profond)); }
.end { display: flex; align-items: center; gap: 14px; }
.langs { display: flex; direction: ltr; padding: 2px; border: 1px solid hsl(var(--border)); border-radius: 999px; background: hsl(var(--card)); }
.langs a { min-width: 36px; padding: 6px 10px; border-radius: 999px; text-align: center; text-decoration: none; font: 600 13px/1.2 "Montserrat", Arial, sans-serif; color: hsl(var(--muted)); }
.langs a[aria-current] { background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--accent-2))); color: #fff; }
.btn { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 10px; text-decoration: none; color: #fff;
  font: 600 14px/1 "Montserrat", Arial, sans-serif; background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--accent-2)));
  box-shadow: 0 0 40px -10px hsl(var(--accent) / .5); transition: opacity .2s; }
.btn:hover { opacity: .9; }

/* En-tête de page : halos flous, grille fine, titre en dégradé */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.halo { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.halo-1 { top: 10%; left: 18%; width: 360px; height: 360px; background: hsl(var(--vert-vegetal) / .2); animation: pulse 4s ease-in-out infinite; }
.halo-2 { bottom: 0; right: 20%; width: 300px; height: 300px; background: hsl(var(--vert-profond) / .08); animation: pulse 4s ease-in-out 1s infinite; }
.grid { position: absolute; inset: 0; opacity: .2; pointer-events: none;
  background-image: linear-gradient(hsl(var(--border)) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--border)) 1px, transparent 1px);
  background-size: 60px 60px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(to top, hsl(var(--creme)), transparent); }
@keyframes pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .halo { animation: none; } html { scroll-behavior: auto; } }
.hero-in { position: relative; z-index: 1; }
.hero-in > * { max-width: 860px; }
.badge { display: inline-block; padding: 7px 16px; border-radius: 999px; border: 1px solid hsl(var(--accent) / .3); background: hsl(var(--accent) / .06);
  color: hsl(var(--vert-profond)); font-size: 14px; margin-bottom: 20px; }
h1, h2, h3 { font-family: "Montserrat", Arial, sans-serif; color: hsl(var(--vert-profond)); }
h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.15; font-weight: 700; margin: 0 0 16px; }
.grad { background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--accent-2))); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px hsl(var(--accent) / .25); }
.lead { color: hsl(var(--muted)); margin: 0 0 6px; font-size: 17px; }

/* Sommaire (fixe sur ordinateur) + sections en cartes */
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 72px; }
.toc { position: sticky; top: 100px; padding: 22px; border-radius: 16px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); }
.toc-title { margin: 0 0 10px; font: 600 13px/1.2 "Montserrat", Arial, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: hsl(var(--vert-profond)); }
.toc ol { margin: 0; padding-inline-start: 20px; }
.toc li { margin: 6px 0; color: hsl(var(--muted)); }
.toc a { color: hsl(var(--muted)); text-decoration: none; font-size: 15px; }
.toc a:hover { color: hsl(var(--vert-profond)); text-decoration: underline; }
.content { display: grid; gap: 24px; }
.card { position: relative; padding: 32px; border-radius: 16px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); transition: border-color .3s, box-shadow .3s; }
.card:hover { border-color: hsl(var(--accent) / .5); box-shadow: 0 0 40px -18px hsl(var(--accent) / .45); }
.card h2 { font-size: 24px; font-weight: 700; margin: 0 0 14px; }
.card h3 { font-size: 17px; font-weight: 600; margin: 22px 0 6px; }
.card p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
dl { margin: 8px 0 0; display: grid; grid-template-columns: minmax(160px, 34%) 1fr; gap: 10px 20px; }
dt { font-weight: 500; color: hsl(var(--anthracite)); }
dd { margin: 0; color: hsl(var(--muted)); }
.todo { background: hsl(var(--orange) / .15); border: 1px solid hsl(var(--orange)); border-radius: 6px; padding: 1px 7px; font-weight: 500; font-size: .9em; color: hsl(var(--anthracite)); }

/* Pied de page, comme la page mère */
.site-footer { border-top: 1px solid hsl(var(--border)); background: hsl(var(--card) / .5); padding: 56px 0 32px; color: hsl(var(--muted)); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-logo { height: 44px; width: auto; margin-bottom: 14px; }
.site-footer h4 { font: 600 15px/1.3 "Montserrat", Arial, sans-serif; color: hsl(var(--anthracite)); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: hsl(var(--muted)); text-decoration: none; }
.site-footer a:hover { color: hsl(var(--vert-profond)); text-decoration: underline; }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid hsl(var(--border)); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-bottom p { margin: 0; }
.heart { color: hsl(var(--orange)); }

/* Tablette et mobile */
@media (max-width: 1023px) {
  .menu { display: none; }
  .layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
}
@media (max-width: 640px) {
  .btn { display: none; }
  .hero { padding: 48px 0 36px; }
  .card { padding: 22px; }
  dl { grid-template-columns: 1fr; gap: 2px; }
  dd { margin-bottom: 10px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Arabe : pas d'espacement des lettres (il casse la liaison), interligne plus généreux */
html[dir="rtl"] body { line-height: 1.85; }
html[dir="rtl"] .toc-title { letter-spacing: 0; }
html[dir="rtl"] .halo-1 { left: auto; right: 18%; }
html[dir="rtl"] .halo-2 { right: auto; left: 20%; }
@media print { header.bar, .toc, .site-footer, .hero .halo, .hero .grid { display: none; } }
