/* ============================================================
   ALIEN WAVE — Agadir ÉcoWave
   Feuille de style autonome de l'application (chargée uniquement
   par /app/). Design « Océan Pop » : dégradés profonds, cartes
   très arrondies, ombres douces, micro-animations.
   ============================================================ */
:root {
    --marine: #0d2b3a;
    --mer: #15707e;
    --soleil: #f0a81c;
    --fond: #eef5f5;
    --blanc: #ffffff;
    --nuit: #252150;
    --profond: #07293f;
    --turq: #1595a3;
    --rayon: 24px;
    --ombre: 0 12px 30px rgba(4, 32, 46, 0.20);
    --ombre-douce: 0 6px 18px rgba(4, 32, 46, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--marine);
    background: linear-gradient(165deg, #062335 0%, #0e4d64 46%, #12707e 78%, #1595a3 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding-bottom: 96px;
}
::selection { background: var(--soleil); color: var(--marine); }
button { font-family: inherit; }
img { max-width: 100%; }

/* ---------- Coque ---------- */
.aw-app { max-width: 540px; margin: 0 auto; position: relative; }
.aw-barre {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px;
    background: linear-gradient(120deg, rgba(7, 41, 63, 0.92), rgba(14, 77, 100, 0.88));
    backdrop-filter: blur(8px);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.aw-barre-logo { width: 34px; height: 34px; color: var(--soleil); flex: none; }
.aw-barre-nom { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 21px; margin: 0; line-height: 1.05; letter-spacing: .2px; }
.aw-barre-sig { font-family: "Space Mono", monospace; font-size: 11px; color: #a8d8e6; margin: 0; }
.aw-barre-gogo { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--soleil); background: var(--nuit); flex: none; }

/* Vues qui glissent */
.aw-vues { overflow: hidden; transition: height .45s ease; }
.aw-piste { display: flex; align-items: flex-start; transition: transform .5s cubic-bezier(.32, .72, .24, 1); will-change: transform; }
.aw-vue { flex: 0 0 100%; width: 100%; padding: 18px 16px 8px; animation: aw-vue-entree .45s ease both; }
@keyframes aw-vue-entree { from { opacity: 0; } to { opacity: 1; } }

/* Barre d'onglets */
.aw-onglets {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: min(540px, 100%); z-index: 60;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: rgba(6, 30, 44, 0.94); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}
.aw-pilule {
    position: absolute; top: 8px; height: calc(100% - 16px - env(safe-area-inset-bottom));
    background: linear-gradient(135deg, var(--soleil), #ffc95e);
    border-radius: 999px; z-index: 0;
    transition: left .45s cubic-bezier(.32, .72, .24, 1), width .45s cubic-bezier(.32, .72, .24, 1);
    box-shadow: 0 6px 16px rgba(240, 168, 28, 0.45);
}
.aw-onglet {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px 2px 6px; background: none; border: none; cursor: pointer;
    color: #a8d8e6; font-family: "Space Mono", monospace; font-size: 10.5px;
    min-height: 54px; transition: color .3s ease;
}
.aw-onglet svg { width: 23px; height: 23px; transition: transform .3s ease; }
.aw-onglet.actif { color: #082736; font-weight: 700; }
.aw-onglet.actif svg { transform: translateY(-1px) scale(1.08); }
.aw-onglet:active svg { transform: scale(.9); }

.aw-pied { text-align: center; color: rgba(255,255,255,.75); font-size: 12.5px; padding: 10px 26px 0; font-family: "Space Mono", monospace; }

/* ---------- Écran de démarrage ---------- */
.aw-splash {
    position: fixed; inset: 0; z-index: 200;
    background: linear-gradient(170deg, #062335 0%, #0e4d64 52%, #1595a3 115%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; text-align: center; padding: 24px;
    transition: opacity .55s ease, visibility .55s;
    overflow: hidden;
}
.aw-splash.cache { opacity: 0; visibility: hidden; pointer-events: none; }
.aw-splash-gogo { width: 168px; border-radius: 28px; border: 3px solid rgba(255,255,255,.35); box-shadow: var(--ombre); animation: aw-splash-monte 1.1s cubic-bezier(.2, .8, .3, 1.2) both .1s; }
@keyframes aw-splash-monte { from { opacity: 0; transform: translateY(46px) scale(.92); } to { opacity: 1; transform: none; } }
.aw-splash-titre { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 44px; margin: 20px 0 2px; letter-spacing: .5px; animation: aw-splash-monte 1s ease both .3s; }
.aw-splash-titre span { color: var(--soleil); }
.aw-splash-sig { font-family: "Space Mono", monospace; color: #a8d8e6; margin: 0; animation: aw-splash-monte 1s ease both .45s; }
.aw-splash-vagues { position: absolute; left: 0; right: 0; bottom: -6px; height: 92px; overflow: hidden; pointer-events: none; }
.aw-splash-vagues svg { position: absolute; bottom: 0; width: 200%; height: 100%; }
.aw-splash-vagues .v1 { animation: aw-vague-glisse 7s linear infinite; opacity: .35; }
.aw-splash-vagues .v2 { animation: aw-vague-glisse 11s linear infinite reverse; opacity: .22; }
@keyframes aw-vague-glisse { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Cartes et composants Océan Pop ---------- */
.aw-carte-pop {
    background: var(--blanc); border-radius: var(--rayon);
    box-shadow: var(--ombre-douce); padding: 20px 18px; margin: 0 0 16px;
    animation: aw-carte-monte .5s ease both;
}
@keyframes aw-carte-monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.aw-carte-pop h2 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 21px; margin: 0 0 8px; }
.aw-carte-pop h3 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 17px; margin: 14px 0 6px; }
.aw-carte-pop p { line-height: 1.55; margin: 8px 0; }
.aw-salut { color: #fff; padding: 6px 4px 14px; }
.aw-salut h1 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 30px; margin: 0 0 4px; text-shadow: 0 3px 14px rgba(0,0,0,.25); }
.aw-salut p { margin: 0; color: #d9f0f4; font-size: 15.5px; }
.aw-btn {
    display: inline-block; border: none; cursor: pointer; text-decoration: none;
    background: linear-gradient(135deg, var(--soleil), #ffc95e); color: #3a2703;
    font-weight: 800; font-size: 15px; padding: 12px 22px; border-radius: 999px;
    box-shadow: 0 8px 20px rgba(240, 168, 28, 0.40);
    transition: transform .15s ease, box-shadow .15s ease;
}
.aw-btn:hover { transform: translateY(-2px); }
.aw-btn:active { transform: scale(.96); }
.aw-btn-bleu { background: linear-gradient(135deg, var(--turq), #25b3a7); color: #fff; box-shadow: 0 8px 20px rgba(21, 149, 163, 0.40); }
.aw-liste { list-style: none; margin: 10px 0; padding: 0; }
.aw-liste li { padding: 8px 0 8px 26px; position: relative; line-height: 1.5; border-bottom: 1px dashed #d7e8ec; }
.aw-liste li:last-child { border-bottom: none; }
.aw-liste li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--soleil); }
.aw-chip-ligne { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.aw-chip-ligne span { background: #eef7f8; border: 1.5px solid #cfe7ec; border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-family: "Space Mono", monospace; }
.aw-etape { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; }
.aw-etape-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--mer); color: #fff; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.aw-badge-bientot { display: inline-block; background: #fff3d9; color: #8a5a00; border: 1.5px dashed var(--soleil); padding: 4px 12px; border-radius: 999px; font-family: "Space Mono", monospace; font-size: 12.5px; }

/* Tuiles raccourcis */
.aw-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; }
.aw-tuile {
    border: none; cursor: pointer; text-align: left; color: #fff;
    border-radius: 22px; padding: 16px 14px; min-height: 104px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
    box-shadow: var(--ombre-douce); transition: transform .15s ease;
    font-size: 16px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; line-height: 1.25;
}
.aw-tuile:active { transform: scale(.96); }
.aw-tuile svg { width: 27px; height: 27px; }
.aw-tuile small { font-family: "Space Mono", monospace; font-weight: 400; font-size: 11.5px; opacity: .85; }
.aw-tuile-1 { background: linear-gradient(140deg, #0e6e8c, #1595a3); }
.aw-tuile-2 { background: linear-gradient(140deg, #b3392e, #e0653a); }
.aw-tuile-3 { background: linear-gradient(140deg, #5b4bc4, #8a6fe8); }
.aw-tuile-4 { background: linear-gradient(140deg, #c77f0a, #f0a81c); }
.aw-tuile-5 { background: linear-gradient(140deg, #1d7a4f, #37b878); }
.aw-tuile-6 { background: linear-gradient(140deg, #0d2b3a, #2c5d75); }

/* Carte Marée (Accueil) */
.aw-maree-points { display: flex; gap: 8px; margin: 12px 0 6px; }
.aw-maree-point { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--marine); display: inline-flex; align-items: center; justify-content: center; font-family: "Space Mono", monospace; font-size: 13px; background: #fff; }
.aw-maree-point.actif { background: var(--soleil); }
.aw-maree-point.aujourdhui { outline: 3px solid var(--turq); outline-offset: 2px; }
.aw-maree-gros { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 26px; margin: 2px 0; }
.aw-maree-gros span { color: var(--mer); }

/* Vidéos */
.aw-video-cadre { border-radius: 20px; overflow: hidden; box-shadow: var(--ombre-douce); background: #04141f; }
.aw-video-cadre video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #04141f; }
.aw-partie { border: 1.5px solid #d7e8ec; border-radius: 16px; padding: 12px 14px; margin: 10px 0; }
.aw-partie h3 { margin: 0 0 4px; font-size: 16px; }
.aw-partie p { margin: 0; font-size: 14px; opacity: .88; }
.aw-partie-num { display: inline-block; font-family: "Space Mono", monospace; font-size: 11.5px; background: var(--marine); color: #fff; border-radius: 999px; padding: 2px 9px; margin-bottom: 6px; }

/* Liens de la vue Plus */
.aw-liens { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.aw-lien-carte { display: block; text-decoration: none; color: var(--marine); background: #eef7f8; border: 1.5px solid #cfe7ec; border-radius: 16px; padding: 13px 14px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 15px; transition: transform .15s ease; }
.aw-lien-carte:active { transform: scale(.97); }
.aw-lien-carte small { display: block; font-family: "Space Mono", monospace; font-weight: 400; font-size: 11.5px; color: var(--mer); margin-top: 3px; }
.aw-niches { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.aw-niches a { text-decoration: none; color: var(--marine); background: #fff; border: 1.5px solid #cfe7ec; border-radius: 999px; padding: 7px 13px; font-size: 13.5px; font-family: "Space Mono", monospace; }

/* Réglages : interrupteur */
.aw-reglage { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.aw-interrupteur { position: relative; flex: none; width: 58px; height: 32px; display: inline-block; }
.aw-interrupteur input { opacity: 0; width: 0; height: 0; }
.aw-interrupteur .piste { position: absolute; inset: 0; border-radius: 999px; background: #c3d6db; transition: background .25s; cursor: pointer; }
.aw-interrupteur .piste::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: transform .25s; }
.aw-interrupteur input:checked + .piste { background: var(--turq); }
.aw-interrupteur input:checked + .piste::after { transform: translateX(26px); }

/* ---------- GOGO : la fenêtre rétro ---------- */
.aw-gogo { margin: 0 0 16px; animation: aw-carte-monte .5s ease both; }
.aw-gogo-cadre {
    position: relative;
    background: linear-gradient(160deg, #2b2660, var(--nuit) 55%, #1b1745);
    border: 3px solid rgba(255, 255, 255, 0.28);
    border-radius: 26px; padding: 16px 14px 14px;
    box-shadow: var(--ombre);
    display: flex; gap: 12px; align-items: flex-end;
    overflow: hidden;
}
.aw-gogo-cadre::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16;
    background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.35) 3px 4px);
}
.aw-gogo-img {
    width: 118px; flex: none; border-radius: 16px; display: block;
    animation: aw-gogo-flotte 3.4s ease-in-out infinite;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
@keyframes aw-gogo-flotte {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.015); }
}
.aw-gogo-bulle {
    position: relative; flex: 1; min-height: 74px;
    background: #fff; color: var(--marine);
    border-radius: 18px; padding: 12px 14px;
    font-size: 15px; line-height: 1.45;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.aw-gogo-bulle::before {
    content: ""; position: absolute; left: -9px; bottom: 20px;
    border: 10px solid transparent; border-right-color: #fff; border-left: 0;
}
.aw-gogo-bulle p { margin: 0; }
.aw-gogo-curseur { display: inline-block; width: 8px; height: 15px; background: var(--soleil); vertical-align: -2px; margin-left: 3px; animation: aw-clignote .7s steps(1) infinite; }
@keyframes aw-clignote { 50% { opacity: 0; } }
.aw-gogo-nom { color: rgba(255,255,255,.85); font-family: "Space Mono", monospace; font-size: 12px; margin: 8px 4px 0; }

/* ---------- Célébration Gogo (vue Système) ---------- */
.aw-celebre { margin: 0 0 14px; }
.aw-celebre[hidden] { display: none; }
.aw-celebre-cadre {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, #2b2660, var(--nuit) 60%, #1b1745);
    border: 3px solid var(--soleil); border-radius: 22px;
    display: flex; align-items: center; gap: 12px; padding: 12px;
    animation: aw-celebre-pop .45s cubic-bezier(.2, .9, .3, 1.35) both;
}
@keyframes aw-celebre-pop { from { opacity: 0; transform: scale(.88) translateY(10px); } to { opacity: 1; transform: none; } }
.aw-celebre-img { width: 84px; flex: none; border-radius: 14px; display: block; }
.aw-celebre-bulle { position: relative; background: #fff; border-radius: 14px; padding: 10px 12px; font-weight: 700; font-size: 15px; margin: 0; line-height: 1.4; }
.aw-celebre-bulle::before { content: ""; position: absolute; left: -8px; top: 18px; border: 9px solid transparent; border-right-color: #fff; border-left: 0; }
.aw-confettis { position: absolute; inset: 0; pointer-events: none; }
.aw-confettis i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; animation: aw-confetti-tombe 1.15s ease-in forwards; }
@keyframes aw-confetti-tombe {
    to { transform: translateY(190px) rotate(560deg); opacity: 0; }
}

/* ---------- Tour guidé ---------- */
.aw-tour {
    position: fixed; inset: 0; z-index: 150;
    background: rgba(4, 20, 31, 0.55);
    display: flex; align-items: flex-end; justify-content: center;
    padding: 16px 16px 104px;
}
.aw-tour[hidden] { display: none; }
.aw-tour-carte {
    width: min(508px, 100%);
    background: linear-gradient(160deg, #2b2660, var(--nuit) 60%, #1b1745);
    border: 3px solid rgba(255,255,255,.3); border-radius: 26px;
    padding: 16px; color: #fff; box-shadow: var(--ombre);
    display: flex; gap: 12px; align-items: flex-end;
    animation: aw-celebre-pop .4s ease both;
}
.aw-tour-img { width: 104px; flex: none; border-radius: 16px; display: block; }
.aw-tour-corps { flex: 1; }
.aw-tour-bulle { background: #fff; color: var(--marine); border-radius: 16px; padding: 11px 13px; font-size: 15px; line-height: 1.45; margin: 0 0 12px; position: relative; }
.aw-tour-bulle::before { content: ""; position: absolute; left: -8px; bottom: 16px; border: 9px solid transparent; border-right-color: #fff; border-left: 0; }
.aw-tour-btns { display: flex; gap: 8px; justify-content: flex-end; }
.aw-tour-passer { background: none; border: 2px solid rgba(255,255,255,.55); color: #fff; border-radius: 999px; padding: 9px 16px; cursor: pointer; font-weight: 700; }
.aw-tour-suivant { background: linear-gradient(135deg, var(--soleil), #ffc95e); border: none; color: #3a2703; border-radius: 999px; padding: 10px 20px; cursor: pointer; font-weight: 800; }
.aw-tour-suivant:active, .aw-tour-passer:active { transform: scale(.95); }

/* ============================================================
   LE SYSTÈME — styles portés de la v2 (coque renommée aw-*,
   contenu sys-* inchangé). Logique et habillage d'origine.
   ============================================================ */
.btn-jaune {
    display: inline-block; padding: 12px 24px; border-radius: 999px;
    font-weight: 700; text-decoration: none; margin: 6px; border: none; cursor: pointer;
    font-size: 15px; font-family: ui-rounded, "Segoe UI", system-ui, sans-serif;
    background-color: var(--soleil); color: var(--marine);
    box-shadow: 0 6px 18px rgba(240, 168, 28, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-jaune:hover { transform: translateY(-2px); }
.btn-jaune:active { transform: scale(.96); }

.aw-sys { background: var(--fond); border: 2px solid var(--marine); border-radius: 22px; overflow: hidden; box-shadow: var(--ombre-douce); text-align: left; color: var(--marine); }
.aw-sysbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--marine); color: #ffffff; padding: 12px 16px; }
.aw-sysbar-g { display: flex; align-items: center; gap: 10px; }
.aw-vague-ico { width: 30px; height: 30px; color: var(--soleil); flex: none; }
.aw-sys-nom { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 19px; margin: 0; line-height: 1.1; }
.aw-sys-sous { font-family: "Space Mono", monospace; font-size: 12px; color: #bfe3ea; margin: 0; }
.aw-sysbar-d { display: flex; gap: 8px; }
.aw-compteur { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.12); border-radius: 999px; padding: 5px 10px; font-family: "Space Mono", monospace; font-size: 14px; }
.aw-compteur svg { width: 17px; height: 17px; color: var(--soleil); }
.aw-pastilles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: #dcebec; padding: 8px; }
.aw-pastille { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; background: rgba(255,255,255,.65); border: 2px solid transparent; border-radius: 14px; color: var(--marine); font-family: "Space Mono", monospace; font-size: 10.5px; cursor: pointer; min-height: 52px; transition: background .25s, border-color .25s; }
.aw-pastille svg { width: 21px; height: 21px; }
.aw-pastille.actif { background: #ffffff; border-color: var(--soleil); color: var(--marine); font-weight: 700; box-shadow: 0 4px 12px rgba(13, 43, 58, 0.12); }
.aw-syscorps { padding: 16px 14px 18px; }
.aw-ecran { display: none; }
.aw-ecran.actif { display: block; animation: aw-apparition .28s ease; }
@keyframes aw-apparition { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.aw-carte { background: var(--blanc); border: 2px solid var(--marine); border-radius: 14px; padding: 18px 16px; margin: 0 0 16px; }
.aw-carte h2 { margin-top: 0; font-size: 21px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; }
.aw-carte-titre { background: var(--marine); color: var(--fond); }
.aw-carte-titre h2 { color: var(--blanc); }
.aw-titre-ecran { margin: 2px 0 10px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 24px; }
.aw-titre-section { margin: 26px 0 6px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 21px; }
.aw-ecran-entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.aw-quete { margin-bottom: 14px; }
.aw-paliers { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.aw-palier { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1.5px solid #cfe0e4; border-radius: 10px; padding: 9px 10px; }
.aw-palier-nom { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 14.5px; margin: 0; }
.aw-palier-desc { font-size: 13px; margin: 2px 0 0; opacity: .85; }
.aw-palier button { flex: none; }
.aw-focus-quete { border: none; padding: 0; }
.aw-parcours-carte { margin-bottom: 14px; }
.aw-parcours-carte h4 { margin: 12px 0 4px; font-size: 17px; font-family: "Bricolage Grotesque", sans-serif; }
.aw-barre-claire { background: #d7e8ec; }
.aw-planif { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.aw-planif-jour { display: flex; flex-direction: column; align-items: center; min-width: 42px; min-height: 48px; padding: 6px 4px; border-radius: 10px; border: 2px solid var(--marine); background: var(--blanc); font-family: "Space Mono", monospace; font-size: 12px; cursor: pointer; }
.aw-planif-jour small { font-size: 11px; opacity: .7; }
.aw-planif-jour.choisi { background: #a8d8e6; }
.aw-planif-jour:disabled { opacity: .35; cursor: default; }
.aw-carte-cote { padding: 12px; }
.aw-cote-svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.aw-cote-svg [data-el] { opacity: .13; filter: grayscale(1); transition: opacity .6s ease, filter .6s ease; }
.aw-cote-svg [data-el].revele { opacity: 1; filter: none; }
.aw-cote-liste { list-style: none; margin: 12px 0 0; padding: 0; }
.aw-cote-liste li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 2px; border-bottom: 1px dashed #d7e8ec; font-size: 14px; }
.aw-cote-liste li:last-child { border-bottom: none; }
.aw-cote-liste em { font-style: normal; font-family: "Space Mono", monospace; font-size: 12.5px; color: var(--mer); }
.aw-cote-liste li.attente { opacity: .55; }
.aw-force { margin: 12px 0; }
.aw-force-entete { display: flex; justify-content: space-between; font-family: "Space Mono", monospace; font-size: 13px; margin-bottom: 5px; }
.aw-force-entete em { font-style: normal; color: var(--mer); }
.aw-badge-mois { display: flex; align-items: center; gap: 16px; }
.aw-anneau { width: 84px; height: 84px; flex: none; }
.aw-badge { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border: 1.5px solid #cfe0e4; border-radius: 10px; padding: 9px 12px; margin: 8px 0; font-size: 14px; }
.aw-badge strong { font-family: "Bricolage Grotesque", sans-serif; }
.aw-badge span { opacity: .8; text-align: right; }
.aw-badge.gagne { border-color: var(--soleil); background: #fff8ea; }
.aw-form-rec { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.aw-form-rec input, .aw-form-rec select, #aw-lettre-texte { width: 100%; box-sizing: border-box; border: 2px solid var(--marine); border-radius: 10px; padding: 10px; font-family: "Space Mono", monospace; font-size: 13.5px; background: var(--blanc); }
.aw-recompense { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1.5px solid #cfe0e4; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.aw-recompense.a-offrir { border-color: var(--soleil); background: #fff8ea; }
.aw-rec-texte { font-weight: 700; margin: 0; }
.aw-rec-actions { display: flex; flex-direction: column; gap: 6px; flex: none; }
.aw-rec-archivee em { opacity: .75; }
.aw-lettre-scellee { border: 2px dashed var(--mer); border-radius: 12px; padding: 14px; background: #f2f9fa; }
.aw-lettre-texte { white-space: pre-wrap; font-size: 16px; line-height: 1.55; background: #fff8ea; border-radius: 10px; padding: 12px; }
#aw-lettre-texte { margin-bottom: 10px; }
.aw-sys-prive { font-family: "Space Mono", monospace; font-size: 12.5px; color: var(--mer); padding: 0 6px 14px; margin: 0; }

/* Contenu sys-* (inchangé par rapport à la v2) */
.sys-salut { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 26px; color: var(--blanc); margin: 0 0 6px; }
.sys-titre-actuel { margin: 0 0 4px; }
.sys-titre-actuel strong { color: var(--soleil); }
.sys-xp { font-family: "Space Mono", monospace; margin: 0 0 8px; }
.sys-barre-fond { background: rgba(255,255,255,.18); border-radius: 8px; height: 12px; overflow: hidden; }
.sys-barre { background: var(--soleil); height: 100%; width: 0; transition: width .6s ease; }
.sys-prochain { font-size: 14px; opacity: .9; }
.sys-radar-ligne { display: grid; grid-template-columns: 74px 1fr 64px; align-items: center; gap: 10px; margin: 8px 0; font-family: "Space Mono", monospace; font-size: 13px; }
.sys-radar-fond { background: rgba(255,255,255,.15); height: 10px; border-radius: 6px; overflow: hidden; }
.sys-radar-barre { background: var(--mer); height: 100%; }
.sys-radar-ligne em { font-style: normal; text-align: right; }
.sys-radar-ligne.sys-bloque { opacity: .55; }
.sys-note { font-size: 13.5px; opacity: .85; margin-top: 14px; line-height: 1.5; }
.sys-maree-nombre { font-family: "Anton", sans-serif; font-size: 44px; color: var(--mer); margin: 4px 0 12px; }
.sys-maree-unite { font-size: 18px; color: var(--marine); }
.sys-semaine { display: flex; gap: 8px; margin-bottom: 12px; }
.sys-jour { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--marine); display: inline-flex; align-items: center; justify-content: center; font-family: "Space Mono", monospace; font-size: 13px; background: var(--blanc); }
.sys-jour.actif { background: var(--soleil); }
.sys-jour.gel { background: #bfe3ea; }
.sys-jour.aujourdhui { outline: 3px solid var(--mer); outline-offset: 2px; }
.sys-jour.planifie { background: #a8d8e6; border-style: dashed; }
.sys-ligne { margin: 8px 0; line-height: 1.55; }
.sys-groupe { margin: 14px 0; }
.sys-question { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; margin: 0 0 8px; }
.sys-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sys-chip-btn { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--marine); background: var(--blanc); font-family: "Space Mono", monospace; cursor: pointer; }
.sys-chip-btn.choisi { background: var(--soleil); }
.sys-confirm { font-family: "Space Mono", monospace; font-size: 13.5px; color: var(--mer); margin-top: 12px; }
.sys-soutien { border: 2px dashed var(--soleil); border-radius: 12px; padding: 14px; margin-top: 16px; background: #fff8ea; }
.sys-modes { display: flex; gap: 8px; flex-wrap: wrap; }
.sys-mode { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--marine); background: var(--blanc); font-family: "Space Mono", monospace; font-size: 13px; cursor: pointer; }
.sys-mode.actif { background: var(--marine); color: var(--blanc); }
.sys-danger { border-color: #b3392e; color: #b3392e; }
.sys-quete { background: var(--blanc); border: 2px solid var(--marine); border-radius: 14px; padding: 18px; }
.sys-chip { display: inline-block; background: var(--mer); color: var(--blanc); border-radius: 999px; padding: 2px 10px; font-family: "Space Mono", monospace; font-size: 12px; margin: 0; }
.sys-quete h3 { font-size: 19px; margin: 10px 0 6px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; }
.sys-meta { font-family: "Space Mono", monospace; font-size: 13px; color: var(--mer); }
.sys-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sys-faite { font-family: "Space Mono", monospace; color: var(--mer); font-weight: 700; }
.sys-courte { font-size: 14.5px; }
#aw-sys-code { width: 100%; box-sizing: border-box; border: 2px solid var(--marine); border-radius: 10px; padding: 10px; font-family: "Space Mono", monospace; font-size: 12px; margin-bottom: 12px; }

@media (max-width: 560px) {
    .aw-palier { flex-direction: column; align-items: stretch; }
    .aw-palier button { width: 100%; }
    .aw-recompense { flex-direction: column; align-items: stretch; }
    .sys-maree-nombre { font-size: 36px; }
    .aw-gogo-img { width: 96px; }
    .aw-splash-titre { font-size: 36px; }
}
