/* Feuille de style commune à tous les sites Duo.
   La couleur principale (--accent) vient de la configuration du sport. */
:root {
  --ink: #16181D;
  --ink-soft: #3A3E47;
  --muted: #5B606B;
  --line: #C9C4BA;
  --ground: #F6F4F0;
  --card: #FFFFFF;
  --chip: #EEEBE5;
  --accent: #C2410C;
  --accent-dark: #9A3412;
  --danger: #B42318;
  --ok: #1E6B3A;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.45 Barlow, system-ui, sans-serif;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }

.page { max-width: 480px; min-height: 100vh; margin: 0 auto; padding: 40px 24px 32px; display: flex; flex-direction: column; gap: 22px; }

/* Décors des écrans forts */
.theme-parquet {
  background-color: #DDB079;
  background-image:
    repeating-linear-gradient(0deg, rgba(110,66,24,.22) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, transparent 0 239px, rgba(110,66,24,.18) 239px 240px),
    repeating-linear-gradient(0deg, #E3B983 0 34px, #D9AA72 34px 68px, #E0B47D 68px 102px, #D6A66C 102px 136px);
}
/* Grande vue de l'accueil : le parquet avec les lignes du terrain (raquette et ligne à 3 points). */
.visual-frame.theme-parquet {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 500' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.85' stroke-width='5'%3E%3Crect x='210' y='-5' width='180' height='230' fill='%23C2410C' fill-opacity='.85'/%3E%3Ccircle cx='300' cy='225' r='72'/%3E%3Cpath d='M40 -5v150a260 260 0 0 0 520 0V-5'/%3E%3C/g%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(110,66,24,.22) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, transparent 0 239px, rgba(110,66,24,.18) 239px 240px),
    repeating-linear-gradient(0deg, #E3B983 0 34px, #D9AA72 34px 68px, #E0B47D 68px 102px, #D6A66C 102px 136px);
  background-size: cover, auto, auto, auto;
  background-position: center;
}
.visual-frame.theme-parquet .hero-mark { display: none; }
.theme-piste { background: #B9472F; }
.theme-pelouse { background: #3F7D3A; }
.theme-neutre { background: var(--ground); }
.theme-piste, .theme-pelouse, .theme-court, .theme-terre, .theme-roche, .theme-scene { --ink: #FFFFFF; --ink-soft: rgba(255,255,255,.9); --muted: rgba(255,255,255,.8); color: #FFFFFF; }
.theme-piste, .theme-pelouse, .theme-terre { --highlight: #FFE08A; }
.theme-roche { --highlight: #FDBA74; }
.theme-scene { --highlight: #FFD23F; }
.theme-court { --highlight: #D7EC3A; }
/* Sur les décors foncés : textes clairs, couleur d'accent remplacée par une couleur vive lisible. */
:is(.theme-piste, .theme-pelouse, .theme-court, .theme-terre, .theme-roche, .theme-scene) :is(.display span, .logo span) { color: var(--highlight); }
:is(.theme-piste, .theme-pelouse, .theme-court, .theme-terre, .theme-roche, .theme-scene) .lead { color: rgba(255,255,255,.92); }
:is(.theme-piste, .theme-pelouse, .theme-court, .theme-terre, .theme-roche, .theme-scene) .panel { background: rgba(0,0,0,.2); }
:is(.theme-piste, .theme-pelouse, .theme-court, .theme-terre, .theme-roche, .theme-scene) .bullet::before { background: var(--highlight); }
:is(.theme-piste, .theme-pelouse, .theme-court, .theme-terre, .theme-roche, .theme-scene) .soon-badge { background: var(--highlight); color: #16181D; }
:is(.theme-piste, .theme-pelouse, .theme-court, .theme-terre, .theme-roche, .theme-scene) .btn-ghost { background: transparent; border-color: #FFFFFF; color: #FFFFFF; }
:is(.theme-piste, .theme-pelouse, .theme-court, .theme-terre, .theme-roche, .theme-scene) .btn-ghost:hover { background: rgba(255,255,255,.15); color: #FFFFFF; }
:is(.theme-piste, .theme-pelouse, .theme-court, .theme-terre, .theme-roche, .theme-scene) .site-footer a { color: #FFFFFF; }
:is(.theme-piste, .theme-pelouse, .theme-court, .theme-terre, .theme-roche, .theme-scene) .card { --ink: #16181D; --ink-soft: #3A3E47; --muted: #5B606B; color: #16181D; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; font: 800 26px/1 "Barlow Condensed", sans-serif; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.logo span { color: var(--accent); }

/* Titres */
.display { margin: 0; font: 800 54px/.95 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.display span { color: var(--accent); }
h1.title { margin: 0; font: 800 34px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.lead { margin: 0; font-size: 18px; color: #3B2E20; }
.panel { background: rgba(255,255,255,.75); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bullet { display: flex; align-items: center; gap: 12px; }
.bullet::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--accent); flex: none; }
.card { background: var(--card); border-radius: 20px; padding: 20px; box-shadow: 0 2px 12px rgba(22,24,29,.08); display: flex; flex-direction: column; gap: 14px; }
.grow { flex-grow: 1; }

/* Boutons */
.btn { display: flex; justify-content: center; align-items: center; min-height: 56px; padding: 0 24px; border-radius: 28px; border: 0; background: var(--accent); color: #FFFFFF; font: 600 18px Barlow, sans-serif; text-decoration: none; cursor: pointer; width: 100%; }
.btn:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn-ghost { background: rgba(255,255,255,.6); border: 2px solid var(--ink); color: var(--ink); min-height: 52px; font-weight: 500; }
.btn-ghost:hover { background: #FFFFFF; color: var(--ink); }
.btn-small { min-height: 44px; font-size: 15px; width: auto; padding: 0 16px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.center { text-align: center; }
.small { font-size: 13px; color: var(--muted); }

/* Formulaires */
form .field { display: flex; flex-direction: column; gap: 6px; }
label, .label { font-weight: 600; font-size: 15px; }
input[type=text], input[type=email], input[type=password], input[type=date], select, textarea {
  width: 100%; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #FFFFFF; padding: 10px 14px; font: 400 16px Barlow, sans-serif; color: var(--ink);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .chips input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.help { font-size: 13px; color: var(--muted); }
.errors, .errorlist { margin: 0; padding: 0; list-style: none; color: var(--danger); font-size: 14px; font-weight: 500; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.checkbox input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--accent); }

/* Choix en pastilles (boutons radio) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.chips legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.chips label { font-weight: 500; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1.5px solid var(--line); background: #FFFFFF; cursor: pointer; }
.chips input:checked + span { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

/* Étapes */
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.progress { height: 6px; border-radius: 3px; background: #E2DED6; overflow: hidden; }
.progress div { height: 100%; background: var(--accent); border-radius: 3px; }

/* Photos */
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.photo { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #D9D4CA; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo form { position: absolute; right: 6px; top: 6px; }
.photo button { width: 36px; height: 36px; border-radius: 18px; border: 0; background: rgba(22,24,29,.75); color: #FFFFFF; font-size: 18px; cursor: pointer; }
.badge { position: absolute; left: 6px; bottom: 6px; padding: 3px 8px; border-radius: 10px; background: rgba(22,24,29,.75); color: #FFFFFF; font-size: 12px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 12px; border-radius: 16px; background: var(--chip); font-size: 14px; font-weight: 500; }

/* Messages */
.messages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.messages li { padding: 12px 14px; border-radius: 12px; background: #FFFFFF; border-left: 0; font-weight: 500; }
.messages .success { color: var(--ok); }
.messages .error { color: var(--danger); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Navigation basse (membres connectés) */
body.with-nav .page { padding-bottom: 104px; padding-top: 28px; gap: 16px; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; background: #FFFFFF; border-top: 1px solid #E2DED6; z-index: 10; }
.bottom-nav ul { max-width: 480px; margin: 0 auto; padding: 6px 0 calc(10px + env(safe-area-inset-bottom)); list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; min-height: 52px; color: var(--muted); font-size: 11px; font-weight: 500; text-decoration: none; }
.bottom-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* Carte de découverte */
.header-row { display: flex; justify-content: space-between; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1.5px solid var(--line); background: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; cursor: pointer; }
.profile-card { background: #FFFFFF; border-radius: 24px; overflow: hidden; box-shadow: 0 2px 12px rgba(22,24,29,.08); }
.gallery { position: relative; height: min(44vh, 440px); background: #D9D4CA; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.pill { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 16px; background: var(--ink); color: #FFFFFF; font-size: 13px; font-weight: 600; }
.profile-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.profile-name { margin: 0; font: 700 32px/1 "Barlow Condensed", sans-serif; }
.profile-name small { font: 400 15px Barlow, sans-serif; color: var(--muted); margin-left: 6px; }
.tag-accent { background: color-mix(in srgb, var(--accent) 14%, #FFFFFF); color: var(--accent-dark); font-weight: 600; }
.actions { display: flex; justify-content: center; align-items: center; gap: 12px; position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 5; padding: 8px 0; }
.actions .round { box-shadow: 0 4px 14px rgba(22,24,29,.18); width: 56px; height: 56px; flex: none; }
.actions .pill-btn { height: 56px; padding: 0 14px; font-size: 14px; box-shadow: 0 4px 14px rgba(22,24,29,.18); }
.actions form { margin: 0; }
.round { width: 60px; height: 60px; border-radius: 30px; border: 1.5px solid var(--line); background: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft); cursor: pointer; }
.round.like { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.round.like:hover { background: var(--accent-dark); }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; height: 60px; padding: 0 18px; white-space: nowrap; border-radius: 30px; background: var(--ink); color: #FFFFFF; font-weight: 600; font-size: 15px; text-decoration: none; }
.pill-btn:hover { color: #FFFFFF; background: #000000; }

/* Écran de match */
.avatars { display: flex; justify-content: center; }
.avatars img, .avatars .ph { width: 96px; height: 96px; border-radius: 48px; border: 4px solid #FFFFFF; object-fit: cover; background: #D9D4CA; }
.avatars > :last-child { margin-left: -20px; }

/* Cases à cocher multiples (filtres) */
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.checks legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.checks label { font-weight: 500; }
.checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checks span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--line); background: #FFFFFF; cursor: pointer; }
.checks input:checked + span { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.checks input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.locked { opacity: .55; }
input[type=number], input[type=datetime-local], input[type=search], input[type=tel] { width: 100%; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #FFFFFF; padding: 10px 14px; font: 400 16px Barlow, sans-serif; color: var(--ink); }

/* Passions */
.common { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 8%, #FFFFFF); }
.common-title { font-size: 13px; font-weight: 600; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .4px; }
.tag-common { background: var(--accent); color: #FFFFFF; font-weight: 600; }
.tag-light { background: #FFFFFF; border: 1px solid #E2DED6; color: var(--ink-soft); }

/* Curseurs (filtres) */
.slider-group { margin: 0; padding: 16px; border: 0; border-radius: 16px; background: #FFFFFF; display: flex; flex-direction: column; gap: 14px; }
.slider-group legend { float: left; width: 100%; padding: 0; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; }
.slider-group legend + * { clear: both; }
.slider-value { font: 700 20px "Barlow Condensed", sans-serif; color: var(--accent-dark); }
.slider { display: flex; flex-direction: column; gap: 6px; }
.slider label { display: flex; justify-content: space-between; font-weight: 500; font-size: 14px; color: var(--ink-soft); }
.slider-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0; cursor: pointer; --fill: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--fill), #E2DED6 var(--fill)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: #E2DED6; }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #FFFFFF; border: 3px solid var(--accent); box-shadow: 0 1px 4px rgba(22,24,29,.25); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; border: 3px solid var(--accent); }
input[type=range]:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 4px; border-radius: 8px; }

/* Choix détaillés (approche du sport) */
.options { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.options legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.option { position: relative; display: block; font-weight: 400; cursor: pointer; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-box { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #FFFFFF; }
.option-title { font-weight: 600; font-size: 16px; }
.option-text { font-size: 14px; color: var(--muted); }
.option input:checked + .option-box { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.option input:checked + .option-box .option-text { color: #D6D8DD; }
.option input:focus-visible + .option-box { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

/* Ballon (ou icône du sport) qui apparaît sur le choix sélectionné */
.option-box { position: relative; padding-right: 60px; }
.option-mark { position: absolute; right: 16px; top: 50%; display: flex; transform: translateY(-50%) scale(.3) rotate(-120deg); opacity: 0; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .2s; }
.option input:checked + .option-box .option-mark { opacity: 1; transform: translateY(-50%) scale(1) rotate(0); }
@media (prefers-reduced-motion: reduce) { .option-mark { transition: none; } }

/* Listes de duos et de messages */
.section-title { margin: 6px 0 0; font: 700 20px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 52px; height: 52px; border-radius: 26px; object-fit: cover; flex: none; background: #D9D4CA; }
.avatar-empty { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink-soft); }
.duo-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #FFFFFF; color: var(--ink); text-decoration: none; min-height: 76px; }
.duo-row:hover { color: var(--ink); box-shadow: 0 2px 10px rgba(22,24,29,.08); }
.duo-row.unread strong { color: var(--accent-dark); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.session-line { color: var(--ok); font-weight: 600; }
.session-line.pending { color: var(--accent-dark); }
.badge-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: #FFFFFF; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.bottom-nav a { position: relative; }
.bottom-nav .badge-count { position: absolute; top: 2px; left: calc(50% + 6px); }

/* Conversation */
.icon-link { display: flex; width: 44px; height: 44px; align-items: center; color: var(--ink); flex: none; }
.conv-header { display: flex; align-items: center; gap: 10px; }
.conv-header .avatar { width: 40px; height: 40px; }
.menu { position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 22px; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 48px; z-index: 20; min-width: 220px; background: #FFFFFF; border-radius: 14px; box-shadow: 0 8px 24px rgba(22,24,29,.18); padding: 6px; display: flex; flex-direction: column; }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; padding: 12px; border: 0; background: none; border-radius: 10px; color: var(--ink); font: 500 15px Barlow, sans-serif; text-decoration: none; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--chip); }
.menu-panel form button { color: var(--danger); }
.timeline { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 18px; display: flex; flex-direction: column; gap: 4px; }
.bubble p { margin: 0; overflow-wrap: anywhere; }
.bubble.mine { align-self: flex-end; background: var(--accent); color: #FFFFFF; border-bottom-right-radius: 6px; }
.bubble.theirs { align-self: flex-start; background: #FFFFFF; border-bottom-left-radius: 6px; }
.bubble-time { font-size: 11px; opacity: .75; align-self: flex-end; }
.session-card { align-self: center; width: 92%; background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.session-card strong { font: 700 20px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.session-kicker { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.session-status { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.session-card.status-accepted { border-color: var(--ok); }
.session-card.status-accepted .session-status { color: var(--ok); }
.session-card.status-declined { opacity: .7; }
.composer { position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: flex-end; padding: 8px 0; background: var(--ground); z-index: 5; }
.composer textarea { min-height: 52px; max-height: 140px; border-radius: 24px; padding: 14px 18px; }
.composer .round { width: 52px; height: 52px; flex: none; }

/* Pied de page */
.site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding: 8px 0 4px; font-size: 13px; }
.site-footer a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.theme-parquet .site-footer a { color: #3B2E20; }

/* Encadrés d'information */
.notice { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, #FFFFFF); border: 1.5px solid color-mix(in srgb, var(--accent) 35%, #FFFFFF); }
.notice strong { color: var(--accent-dark); }

/* Abonnement */
.perks { list-style: none; margin: 0; padding: 16px; border-radius: 16px; background: #FFFFFF; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.perks li { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; font-size: 15px; }
.perks li::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: 4px; background: var(--accent); flex: none; }
.plan-head { display: flex; align-items: center; gap: 10px; }
.plan-saving { padding: 2px 8px; border-radius: 10px; background: var(--ok); color: #FFFFFF; font-size: 12px; font-weight: 700; }
.plan-price { font: 700 28px/1.1 "Barlow Condensed", sans-serif; }
.plan-price small { font: 500 15px Barlow, sans-serif; }
.option input:checked + .option-box .plan-saving { background: #FFFFFF; color: var(--ink); }

/* Mon compte */
.menu-list { display: flex; flex-direction: column; background: #FFFFFF; border-radius: 16px; overflow: hidden; }
.menu-list .section-title { margin: 0; padding: 14px 16px 6px; font-size: 18px; }
.menu-list a, .menu-list button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-top: 1px solid #EEEBE5; background: none; color: var(--ink); font: 500 16px Barlow, sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: #FAF8F5; }
.menu-list a::after, .menu-list button::after { content: "›"; color: var(--muted); font-size: 20px; }
.menu-list .danger { color: var(--danger); }
.menu-list form { margin: 0; }

/* Pages légales */
.legal { background: #FFFFFF; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; overflow-wrap: anywhere; }
.legal h2 { margin: 12px 0 0; font: 700 22px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.legal h3 { margin: 8px 0 0; font-size: 17px; }
.legal p, .legal ul { margin: 0; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-nav { display: flex; flex-direction: column; gap: 6px; }

/* Lieux de rencontre proposés */
.places { display: flex; flex-direction: column; gap: 8px; }
.places-title { font-weight: 600; font-size: 15px; }
.places ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.places a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 10px 40px; border: 1.5px solid var(--line); border-radius: 14px; background: #FFFFFF; color: var(--ink); text-decoration: none; position: relative; }
.places a::before { content: ""; position: absolute; left: 14px; top: 14px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); }
.places a:hover { border-color: var(--ink); color: var(--ink); }
.places a.selected { border-color: var(--ink); border-width: 2px; }
.places a.selected::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px #FFFFFF; }

/* Court de padel : bleu avec lignes blanches */
.theme-court {
  background-color: #2D5FA0;
  background-image: linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.22) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent 69%, rgba(255,255,255,.22) 69% calc(69% + 2px), transparent calc(69% + 2px));
}

/* Site annoncé avant ouverture */
.soon-badge { align-self: flex-start; padding: 6px 14px; border-radius: 16px; background: var(--accent); color: #FFFFFF; font: 700 15px/1 "Barlow Condensed", sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.logo-mark { display: flex; color: var(--accent); }

/* Terre battue : ocre avec lignes blanches */
.theme-terre {
  background-color: #B85A32;
  background-image: linear-gradient(0deg, transparent 72%, rgba(255,255,255,.28) 72% calc(72% + 3px), transparent calc(72% + 3px)),
    linear-gradient(90deg, transparent 12%, rgba(255,255,255,.2) 12% calc(12% + 2px), transparent calc(12% + 2px));
}

/* Événements */
.event-card { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--card); border-radius: 16px; box-shadow: 0 2px 12px rgba(22,24,29,.06); color: var(--ink); text-decoration: none; }
.event-card:hover { color: var(--ink); box-shadow: 0 2px 16px rgba(22,24,29,.14); }
.event-date { flex: none; width: 54px; height: 58px; border-radius: 12px; background: var(--accent); color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 600 13px/1 Barlow, sans-serif; text-transform: uppercase; }
.event-date b { font: 800 26px/1 "Barlow Condensed", sans-serif; }
details summary { list-style-position: inside; }

/* Roche : gris ardoise, traces de magnésie */
.theme-roche {
  background-color: #475260;
  background-image: radial-gradient(circle at 18% 22%, rgba(255,255,255,.10) 0 18px, transparent 19px),
    radial-gradient(circle at 78% 64%, rgba(255,255,255,.08) 0 26px, transparent 27px),
    radial-gradient(circle at 40% 85%, rgba(255,255,255,.07) 0 14px, transparent 15px),
    linear-gradient(135deg, rgba(0,0,0,.12) 25%, transparent 25% 50%, rgba(0,0,0,.12) 50% 75%, transparent 75%);
  background-size: auto, auto, auto, 120px 120px;
}

/* Scène : rideau prune et projecteurs dorés */
.theme-scene {
  background-color: #7A2E63;
  background-image: radial-gradient(ellipse 40% 55% at 22% 0%, rgba(255,210,63,.22), transparent 70%),
    radial-gradient(ellipse 40% 55% at 78% 0%, rgba(255,210,63,.18), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 18px, transparent 18px 36px);
}

/* Aide */
.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble { margin: 0; padding: 10px 14px; border-radius: 16px; max-width: 88%; font-size: 15px; }
.bubble-me { align-self: flex-end; background: var(--ink); color: #FFFFFF; border-bottom-right-radius: 4px; }
.bubble-bot { align-self: flex-start; background: var(--chip); border-bottom-left-radius: 4px; }
.faq { background: var(--card); border-radius: 14px; padding: 14px 16px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq .legal-body { margin-top: 8px; color: var(--ink-soft); }
.faq .legal-body p { margin: 0 0 8px; }

/* =====================================================================
   Direction « sportive et sérieuse » (validée le 1er novembre 2026).
   Fond blanc et gris clair, texte bleu nuit, une seule couleur forte :
   celle du sport. Titres en minuscules, compacts. Mise en page pleine
   largeur sur ordinateur. (En fin de feuille : remplace les règles
   précédentes.)
   ===================================================================== */
:root {
  --ink: #1B2333;
  --ink-soft: #3A4256;
  --muted: #5B6377;
  --line: #D8D4CC;
  --ground: #F4F3EF;
  --card: #FFFFFF;
  --chip: #ECEAE4;
  --radius: 12px;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, #FFFFFF);
}
body { background: var(--ground); color: var(--ink); }

/* Titres : minuscules, compacts, sans majuscules forcées */
.logo { text-transform: none; letter-spacing: -.3px; font-size: 28px; }
.display { font: 800 52px/1 "Barlow Condensed", sans-serif; text-transform: none; letter-spacing: -.5px; color: var(--ink); }
.display span { color: var(--accent); }
h1.title { font: 800 36px/1.05 "Barlow Condensed", sans-serif; text-transform: none; letter-spacing: -.3px; }
.section-title, .legal h2, .session-card strong, .profile-name { text-transform: none; }
.common-title, .session-kicker { text-transform: none; letter-spacing: 0; }
.lead { color: var(--ink-soft); }

/* Boutons : rectangles arrondis, sans relief */
.btn { border-radius: 8px; font-weight: 700; box-shadow: none; }
.btn-ghost { background: #FFFFFF; border: 2px solid var(--ink); color: var(--ink); font-weight: 600; }
.btn-ghost:hover { background: var(--ink); color: #FFFFFF; }

/* Choix : le choix sélectionné prend la couleur du sport */
.chips span, .checks span { border: 1.5px solid var(--line); border-radius: 8px; font-weight: 500; }
.chips input:checked + span, .checks input:checked + span { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.option-box { border: 1.5px solid var(--line); border-radius: 10px; }
.option input:checked + .option-box { background: var(--accent-soft); color: var(--ink); border: 2px solid var(--accent); }
.option input:checked + .option-box .option-text { color: var(--ink-soft); }
.option input:checked + .option-box .plan-saving { background: var(--ok); color: #FFFFFF; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=datetime-local], input[type=search], input[type=tel], select, textarea { border-radius: 8px; }

/* Cartes, étiquettes, listes */
.card { border-radius: var(--radius); box-shadow: 0 1px 3px rgba(27,35,51,.08); }
.tag { border-radius: 6px; font-weight: 500; }
.tag-accent { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.tag-common { background: var(--accent); color: #FFFFFF; }
.tag-light { background: #FFFFFF; border: 1px solid var(--line); }
.common { background: var(--accent-soft); border-radius: 10px; }
.common-title { color: var(--accent-dark); }
.pill { background: #FFFFFF; color: var(--ink); border-radius: 6px; }
.profile-card { border-radius: 14px; box-shadow: 0 1px 3px rgba(27,35,51,.1); }
.round { border: 1.5px solid var(--line); color: var(--ink); }
.round.like { background: var(--accent); border-color: var(--accent); }
.pill-btn { border-radius: 30px; background: var(--ink); color: #FFFFFF; }
.pill-btn:hover { background: var(--ink-soft); color: #FFFFFF; }
.duo-row, .event-card, .menu-list, .legal, .faq, .slider-group, .perks { border-radius: var(--radius); }
.duo-row { box-shadow: 0 1px 3px rgba(27,35,51,.06); }
.event-date { border-radius: 8px; }
.notice { background: var(--accent-soft); border: 1.5px solid color-mix(in srgb, var(--accent) 35%, #FFFFFF); border-radius: 10px; }
.notice strong { color: var(--accent-dark); }
.messages li { border-radius: 10px; box-shadow: 0 1px 3px rgba(27,35,51,.08); }
.bottom-nav { border-top: 1px solid var(--line); box-shadow: none; }
.soon-badge { border-radius: 6px; background: var(--accent); color: #FFFFFF; text-transform: none; letter-spacing: 0; font: 700 15px/1 Barlow, sans-serif; padding: 7px 12px; }
.credit { font-size: 11px; color: var(--muted); margin: 0; }

/* Vignette photo (accueil des pages intérieures, événements) */
.hero { position: relative; height: 260px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-mark svg { width: 160px; height: 160px; stroke-width: 1.4; }
.theme-parquet.hero { color: rgba(110,66,24,.35); }
.banner { height: 160px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner svg { width: 110px; height: 110px; }

/* « Ça matche ! » : plein écran couleur du sport, confettis discrets */
body.duo-screen { background: var(--accent); }
.duo-screen .page { color: #FFFFFF; }
.duo-screen .display, .duo-screen .display span, .duo-screen .lead { color: #FFFFFF; }
.duo-screen .site-footer a { color: #FFFFFF; }
.duo-screen .avatars img, .duo-screen .avatars .ph { width: 116px; height: 116px; border-radius: 58px; border: 4px solid #FFFFFF; }
.sticker { display: inline-block; background: #FFFFFF; color: var(--accent-dark); font-weight: 700; font-size: 15px; padding: 7px 14px; border-radius: 6px; }
.duo-screen .btn { background: #FFFFFF; color: var(--ink); }
.duo-screen .btn:hover { background: var(--ground); }
.duo-screen .btn-ghost { background: transparent; border-color: #FFFFFF; color: #FFFFFF; }
.duo-screen .card { color: var(--ink); }
.duo-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--radius); }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 10px; border-radius: 2px; background: #FFFFFF; opacity: .9; animation: duo-fall 2.6s ease-in forwards; }
.confetti i:nth-child(3n) { width: 20px; height: 6px; background: var(--ink); }
.confetti i:nth-child(1) { left: 8%; } .confetti i:nth-child(2) { left: 22%; animation-delay: .2s; } .confetti i:nth-child(3) { left: 35%; animation-delay: .1s; }
.confetti i:nth-child(4) { left: 50%; animation-delay: .35s; } .confetti i:nth-child(5) { left: 63%; animation-delay: .15s; } .confetti i:nth-child(6) { left: 77%; animation-delay: .4s; }
.confetti i:nth-child(7) { left: 90%; animation-delay: .05s; } .confetti i:nth-child(8) { left: 15%; animation-delay: .55s; } .confetti i:nth-child(9) { left: 70%; animation-delay: .6s; }
@keyframes duo-fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(70vh) rotate(540deg); opacity: 0; } }
.duo-screen .page > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }

/* Ordinateur : pages plus larges, menu des membres en haut */
@media (min-width: 900px) {
  .page { max-width: 720px; padding-top: 48px; }
  body.with-nav .page { padding-top: 100px; padding-bottom: 48px; }
  .bottom-nav { top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--line); }
  .bottom-nav ul { max-width: 720px; padding: 4px 0; }
  .bottom-nav a { flex-direction: row; justify-content: center; gap: 8px; font-size: 15px; min-height: 60px; }
  .actions, .composer { bottom: 0; }
  .gallery { height: 480px; }
  .display { font-size: 60px; }
}

/* =====================================================================
   Page d'accueil pleine largeur (site ouvert ou « Bientôt »)
   ===================================================================== */
.site { min-height: 100vh; display: flex; flex-direction: column; background: var(--ground); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.site-header { background: #FFFFFF; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; flex: 1 1 auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 0; }
.site-nav a:hover { color: var(--accent); }
.site-header .header-actions { display: flex; gap: 8px; align-items: center; }
.site-header .btn { width: auto; min-height: 44px; font-size: 16px; padding: 0 20px; }
.link-strong { color: var(--ink); font-weight: 600; text-decoration: none; padding: 10px 12px; }
.link-strong:hover { color: var(--accent); }
.home-hero { background: #FFFFFF; }
.home-hero .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 40px 56px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.home-hero .text { display: flex; flex-direction: column; gap: 22px; }
.kicker { margin: 0; font-weight: 700; font-size: 15px; color: var(--accent-dark); }
.home-hero h1 { margin: 0; font: 800 clamp(44px, 5.6vw, 72px)/1 "Barlow Condensed", sans-serif; letter-spacing: -1px; color: var(--ink); }
.home-hero h1 span { color: var(--accent); }
.home-hero .lead { font-size: 20px; line-height: 1.5; max-width: 540px; margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn { width: auto; padding: 0 30px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--ink-soft); font-size: 15px; }
.checklist li { display: flex; align-items: center; gap: 8px; }
.checklist li::before { content: ""; width: 14px; height: 8px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg) translateY(-2px); flex: none; }
.visual { position: relative; min-height: 460px; }
.visual-frame { position: absolute; inset: 0 0 0 32px; border-radius: 16px; overflow: hidden; clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); }
.visual-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visual-frame .hero-mark svg { width: 220px; height: 220px; stroke-width: 1.2; }
.theme-parquet.visual-frame { color: rgba(110,66,24,.3); }
.visual-card { position: absolute; left: 0; bottom: 48px; max-width: 310px; padding: 16px 18px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 12px 32px rgba(27,35,51,.18); display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.visual-card svg { flex: none; color: var(--accent); }
.visual-card strong { display: block; font-size: 17px; line-height: 1.3; }
.visual-card span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.35; color: var(--ink-soft); }
.visual + .credit { text-align: right; }
.band { padding: 72px 0; }
.band h2 { margin: 0 0 32px; font: 800 clamp(32px, 3.6vw, 46px)/1.08 "Barlow Condensed", sans-serif; letter-spacing: -.5px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.step { background: #FFFFFF; border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.step b { font: 800 46px/1 "Barlow Condensed", sans-serif; color: var(--accent); }
.step h3 { margin: 0; font-size: 21px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.5; }
.band-accent { color: #FFFFFF; }
/* Surface du sport (parquet, piste, court...) à la place des aplats de couleur ; « neutre » garde la couleur du sport. */
:is(.hero, .visual-frame, .banner, .band-accent).theme-neutre { background: var(--accent); }
.band-accent.theme-parquet { color: var(--ink); }
.band-accent.theme-parquet p { color: var(--ink-soft); }
.band-accent.theme-parquet .fact { background: rgba(255,255,255,.72); }
.band-accent.theme-parquet .fact span { color: var(--ink-soft); }
.band-accent.theme-parquet .fact strong { color: var(--accent-dark); }
.band-accent .wrap, .band-white .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 56px; align-items: center; }
.band-accent h2, .band-white h2 { margin-bottom: 14px; }
.band-accent p { margin: 0; font-size: 19px; line-height: 1.5; color: rgba(255,255,255,.92); }
.band-white { background: #FFFFFF; }
.band-white p { margin: 0 0 20px; font-size: 18px; line-height: 1.5; color: var(--ink-soft); }
.band-white .btn { width: auto; display: inline-flex; padding: 0 26px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.fact { background: rgba(255,255,255,.14); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.fact strong { font: 800 26px/1.05 "Barlow Condensed", sans-serif; }
.fact span { font-size: 15px; color: rgba(255,255,255,.9); }
.band-white .fact { background: var(--ground); }
.band-white .fact strong { color: var(--accent); }
.band-white .fact span { color: var(--muted); }
.home-footer { border-top: 1px solid var(--line); margin-top: auto; }
.home-footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; padding-top: 24px; padding-bottom: 28px; font-size: 14px; }
.home-footer a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.home-footer a:hover { color: var(--ink); text-decoration: underline; }
.home-footer .sites { flex: 1 1 auto; text-align: right; color: var(--muted); padding: 6px 0; }
@media (max-width: 700px) {
  .site-nav { order: 3; flex-basis: 100%; gap: 0 18px; font-size: 15px; }
  .site-header .header-actions .btn { display: none; }
  .home-hero .wrap { padding-top: 28px; }
  .visual { min-height: 300px; order: -1; }
  .visual-frame { inset: 0; clip-path: none; }
  .visual-card { left: 12px; bottom: 12px; }
  .cta .btn { width: 100%; }
  .home-footer .sites { text-align: left; }
}

/* Textes longs (pages légales, aide) : corps plus grand, intertitres dans la même famille que le texte */
.legal { font-size: 17px; line-height: 1.6; padding: 24px 28px; gap: 12px; }
.legal h2 { margin: 20px 0 0; font: 700 22px/1.3 Barlow, sans-serif; letter-spacing: 0; color: var(--ink); }
.legal h3 { margin: 12px 0 0; font: 600 18px/1.35 Barlow, sans-serif; }
.legal ul { gap: 8px; }
.faq, .faq .legal-body { font-size: 17px; line-height: 1.55; }
@media (min-width: 900px) { body { font-size: 17px; } }
/* Mots en gras dans les textes : demi-gras, pour ne pas paraître plus gros que le reste */
.legal strong, .legal b, .faq strong, .faq b { font-weight: 600; }

/* « Ils vous ont aimé » : aperçus flous pour les non-abonnés */
.teasers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.teasers img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid #FFFFFF; box-shadow: 0 1px 4px rgba(27,35,51,.15); }

/* Portail sportdecoeur.fr : une tuile par sport */
.sport-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.sport-tile { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius); background: var(--ground); border: 2px solid transparent; color: var(--ink); text-decoration: none; }
.sport-tile:hover { border-color: var(--accent); color: var(--ink); }
.sport-tile-mark { display: flex; color: var(--accent); }
.sport-tile strong { font: 800 26px/1 "Barlow Condensed", sans-serif; }
/* Accroche : la partie colorée (« Et peut-être plus. ») toujours sur sa propre ligne */
.home-hero h1 span { display: block; }

/* Liste de communes proposées sous le champ « Ville » */
.suggest{list-style:none;margin:-14px 0 0;padding:6px;border:1px solid #D9D6CE;border-radius:10px;background:#FFFFFF;box-shadow:0 10px 24px rgba(27,35,51,.12);display:flex;flex-direction:column;gap:2px}
.suggest[hidden]{display:none}
.suggest li{padding:11px 12px;border-radius:7px;cursor:pointer;font-size:16px}
.suggest li:hover,.suggest li[aria-selected="true"]{background:#F4F3EF}

/* Encart d'abonnement (membres gratuits) */
.sub-prompt{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:12px;background:var(--accent-soft,#FDEBDD);border:1px solid var(--accent);color:var(--ink)}
.sub-prompt-text{display:flex;flex-direction:column;gap:2px;flex:1;font-size:15px;line-height:1.4}
.sub-prompt-text strong{font-size:16px}
.sub-prompt-btn{flex:0 0 auto;width:auto;min-height:44px;padding:0 16px;font-size:15px;white-space:nowrap}
@media (max-width:480px){.sub-prompt{flex-direction:column;align-items:stretch}.sub-prompt-btn{width:100%}}

/* Émoticônes de la messagerie */
.composer { position: sticky; flex-wrap: wrap; }
.composer textarea { flex: 1; min-width: 0; }
.emoji-toggle { background: #FFFFFF; color: var(--ink); border: 1px solid #D9D6CE; }
.emoji-panel { order: 10; flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; padding: 8px; background: #FFFFFF; border: 1px solid #D9D6CE; border-radius: 14px; box-shadow: 0 10px 24px rgba(27,35,51,.12); max-height: 200px; overflow-y: auto; }
.emoji-panel[hidden] { display: none; }
.emoji-panel .emoji { min-height: 44px; font-size: 24px; line-height: 1; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.emoji-panel .emoji:hover, .emoji-panel .emoji:focus-visible { background: #F4F3EF; }
