/* إيڭودار Igoudar — style sobre : gris anthracite, texte blanc, un seul vert (celui du titre « Igoudar »), beaucoup d'espace */
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url(/polices/plex-arabic-400.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2E41; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url(/polices/plex-arabic-500.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2E41; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url(/polices/plex-arabic-600.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2E41; }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url(/polices/plex-latin-400.woff2) format("woff2"); unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url(/polices/plex-latin-500.woff2) format("woff2"); unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url(/polices/plex-latin-600.woff2) format("woff2"); unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2122; }

:root {
    --fond: #1a1d1c;          /* anthracite */
    --carte: #242827;         /* cartes */
    --ligne: #343a38;         /* traits fins */
    --ligne-forte: #454c4a;
    --texte: #f3f5f4;         /* blanc */
    --doux: #a9b1ae;          /* gris clair */
    --pale: #7d8683;          /* gris moyen */
    --vert: #8fd0b0;          /* le vert du titre « Igoudar » : menus et boutons */
    --vert-survol: #a6dcc1;
    --sur-vert: #13241c;      /* texte posé sur le vert */
    --vert-fonce: #1f5a43;    /* le bandeau (le logo garde aussi ce vert) */
    --vert-clair: #8fd0b0;    /* liens, accents sur fond sombre */
    --vert-fond: #173a2d;
    --ambre: #e3c98a; --ambre-fond: #33301f;
    --rouge: #f0b4ab; --rouge-fond: #3a2422;
    --rayon: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--fond); }
body { margin: 0; background: var(--fond); color: var(--texte); font: 16px/1.7 "Plex", "Segoe UI", Tahoma, system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
html[dir=rtl] body { font-size: 17px; line-height: 1.85; }
a { color: var(--vert-clair); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .7em; font-weight: 600; }
h1 { font-size: 2.1rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.08rem; font-weight: 500; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }
.petit { font-size: .86rem; color: var(--doux); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: Consolas, "Courier New", monospace; word-break: break-all; font-size: .86rem; direction: ltr; unicode-bidi: isolate; text-align: left; color: var(--doux); }
html[dir=rtl] td.mono, html[dir=rtl] .petit .mono { text-align: right; }
input[dir=ltr] { text-align: left; }
.cache { display: none !important; }
.tifinagh { font-family: "Noto Sans Tifinagh", "Ebrima", "Segoe UI Historic", sans-serif; letter-spacing: 2px; }

/* icônes fines (dessinées, une seule couleur) */
svg.ic { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- en-tête ---------- */
#entete { background: rgba(26, 29, 28, .94); border-bottom: 1px solid var(--ligne); display: flex; align-items: center; gap: 12px; padding: 14px 28px; position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.marque { display: flex; align-items: center; gap: 12px; color: var(--texte); text-decoration: none !important; }
.marque img { border-radius: 9px; width: 36px; height: 36px; }
.nom-site { display: flex; flex-direction: column; line-height: 1.15; }
.nom-site b { font-size: 1.2rem; font-weight: 600; }
.nom-site small { font-size: .7rem; color: var(--pale); letter-spacing: .6px; }
#menu { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; flex-wrap: wrap; }
#compte { display: flex; align-items: center; gap: 2px; }
#menu a, #compte a, #compte button, #menu .btn-langue { display: inline-flex; align-items: center; gap: 7px; color: var(--doux); text-decoration: none; padding: 8px 13px; border-radius: 8px; font: inherit; font-size: .95rem; background: none; border: 0; cursor: pointer; }
#menu a:hover, #compte button:hover, #menu a.actif { color: var(--texte); background: rgba(255, 255, 255, .05); }
#menu a.btn-deposer { background: var(--vert); color: var(--sur-vert); font-weight: 500; margin-inline: 6px; }
#menu a.btn-deposer:hover { background: var(--vert-survol); }
#menu .langues { display: inline-flex; margin-inline-start: 8px; border: 1px solid var(--ligne-forte); border-radius: 9px; padding: 2px; gap: 2px; }
#menu .btn-langue { font-size: .82rem; padding: 5px 10px; border-radius: 7px; }
#menu .btn-langue.actif { background: var(--vert); color: var(--sur-vert); cursor: default; }
#menu-btn { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--ligne-forte); color: var(--texte); border-radius: 8px; padding: 7px 10px; cursor: pointer; line-height: 1; }
@media (max-width: 820px) {
    #entete { padding: 12px 16px; }
    #menu-btn { display: block; }
    #menu { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-top: 8px; }
    #menu.ouvert { display: flex; }
    #compte { flex-direction: column; align-items: stretch; }
    #menu a.btn-deposer { margin-inline: 0; justify-content: center; }
    #menu .langues { margin: 8px 0 0; justify-content: center; align-self: center; }
}

/* ---------- page ---------- */
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 56px 24px 80px; outline: none; }
@media (max-width: 560px) { main { padding: 32px 16px 56px; } h1 { font-size: 1.7rem; } }
footer { border-top: 1px solid var(--ligne); color: var(--pale); text-align: center; padding: 28px 16px; font-size: .88rem; }
footer p { margin: 4px 0; }
footer a { color: var(--doux); }
footer .tifinagh { font-size: .75rem; opacity: .4; margin-top: 10px; }
.carte { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 28px; margin-bottom: 24px; }
@media (max-width: 560px) { .carte { padding: 20px; } }
.etroit { max-width: 460px; margin: 0 auto; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 24px; }
.grille .carte { margin: 0; }
.ligne-btn { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.ligne-btn h1 { margin: 0; margin-inline-end: auto; }
.ligne-btn.centre { justify-content: center; }

/* ---------- accueil ---------- */
.heros { text-align: center; padding: 40px 0 80px; }
.heros h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 600; margin-bottom: .5em; }
.heros-nom { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 600; line-height: 1.2; color: var(--vert-clair); letter-spacing: .01em; margin-bottom: .1em; }
.heros p { font-size: 1.15rem; color: var(--doux); max-width: 640px; margin: 0 auto 32px; }
.heros p b { color: var(--texte); font-weight: 500; }
.section-titre { text-align: center; color: var(--pale); font-size: .82rem; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 24px; font-weight: 500; }
html[dir=rtl] .section-titre { letter-spacing: 0; font-size: .95rem; }
.etapes { counter-reset: e; margin-bottom: 80px; }
.etape { position: relative; padding-top: 68px !important; }
.etape::before { counter-increment: e; content: counter(e); position: absolute; inset-inline-start: 28px; top: 26px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--vert-clair); color: var(--vert-clair); font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.etape p, .grille .carte p { color: var(--doux); margin: 0; }
.bandeau { background: var(--vert-fonce); border-radius: var(--rayon); padding: 44px 32px; margin: 0 0 80px; text-align: center; }
.bandeau h2 { color: #fff; margin-bottom: .4em; }
.bandeau p { color: rgba(255, 255, 255, .85); max-width: 640px; margin: 0 auto; }
.categories { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 80px; }
.categories span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ligne-forte); color: var(--doux); border-radius: 30px; padding: 7px 16px; font-size: .92rem; }
.titre-ic { display: flex; align-items: center; gap: 10px; }
.titre-ic svg.ic { color: var(--vert-clair); width: 1.3em; height: 1.3em; }

/* ---------- formulaires ---------- */
label { display: block; font-weight: 500; margin: 20px 0 7px; color: var(--texte); }
label .petit { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=search], textarea, select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--ligne-forte); border-radius: 10px; background: var(--fond); font: inherit; color: var(--texte); }
input::placeholder { color: var(--pale); }
select option { background: var(--carte); color: var(--texte); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--vert-clair); box-shadow: 0 0 0 3px rgba(143, 208, 176, .15); }
textarea { min-height: 96px; resize: vertical; }
.case { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin: 14px 0; color: var(--doux); }
.case input { margin-top: 6px; width: 18px; height: 18px; flex: none; accent-color: var(--vert); }
.bouton, button.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--vert); color: var(--sur-vert); border: 1px solid var(--vert); border-radius: 10px; padding: 12px 24px; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s; }
.bouton:hover { background: var(--vert-survol); border-color: var(--vert-survol); }
.bouton:disabled { opacity: .5; cursor: wait; }
.bouton.second { background: transparent; color: var(--texte); border-color: var(--ligne-forte); }
.bouton.second:hover { background: rgba(255, 255, 255, .05); border-color: var(--pale); }
.bouton.petit-btn { padding: 7px 14px; font-size: .9rem; }
.bouton.large { width: 100%; margin-top: 26px; }
.erreur, .succes, .avert { border-radius: 10px; padding: 12px 16px; margin: 14px 0; border: 1px solid; }
.erreur { background: var(--rouge-fond); color: var(--rouge); border-color: #5a3430; }
.succes { background: var(--vert-fond); color: #c3ead6; border-color: #24503f; }
.avert { background: var(--ambre-fond); color: var(--ambre); border-color: #4d4628; }
.mdp { position: relative; }
.mdp input { padding-inline-end: 48px; }
.mdp .oeil { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; padding: 6px; color: var(--pale); line-height: 1; display: flex; }
.mdp .oeil:hover { color: var(--texte); }
.force { height: 3px; border-radius: 2px; background: var(--ligne); margin-top: 8px; overflow: hidden; }
.force i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
form.carte h2 { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--ligne); font-size: 1.15rem; }
form.carte h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- dépôt ---------- */
.zone { border: 1px dashed var(--ligne-forte); border-radius: var(--rayon); padding: 40px 16px; text-align: center; cursor: pointer; color: var(--doux); transition: background .15s, border-color .15s; }
.zone:hover, .zone.survol { background: rgba(143, 208, 176, .05); border-color: var(--vert-clair); }
.zone b { color: var(--texte); font-weight: 500; }
.zone .grand { display: block; margin-bottom: 10px; color: var(--vert-clair); }
.zone .grand svg.ic { width: 34px; height: 34px; stroke-width: 1.3; }
.fichier-choisi { display: flex; gap: 14px; align-items: center; background: var(--fond); border: 1px solid var(--ligne); border-radius: 10px; padding: 14px; margin-top: 14px; flex-wrap: wrap; }
.fichier-choisi .grand svg.ic { width: 28px; height: 28px; color: var(--vert-clair); }
.fichier-choisi .nom { font-weight: 500; word-break: break-all; }
.formules { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.formule { border: 1px solid var(--ligne-forte); border-radius: var(--rayon); padding: 18px; cursor: pointer; display: block; font-weight: 400; margin: 0; position: relative; transition: border-color .15s, background .15s; }
.formule:hover { border-color: var(--pale); }
.formule.choisie { border-color: var(--vert-clair); background: rgba(143, 208, 176, .06); }
.formule input { position: absolute; opacity: 0; pointer-events: none; }
.formule b { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; font-weight: 500; margin-bottom: 6px; }
.formule b svg.ic { color: var(--vert-clair); }
.formule .petit { display: block; }
.progression { height: 4px; background: var(--ligne); border-radius: 2px; overflow: hidden; margin-top: 10px; }
.progression i { display: block; height: 100%; background: var(--vert-clair); width: 0; transition: width .2s; }
.contenu-zip { max-height: 190px; overflow: auto; font-size: .85rem; background: var(--fond); border: 1px solid var(--ligne); border-radius: 8px; padding: 8px 12px; margin-top: 10px; color: var(--doux); }
.contenu-zip div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--ligne); padding: 4px 0; }
.contenu-zip div:last-child { border: 0; }

/* ---------- mon agadir ---------- */
.quota { display: flex; gap: 24px; flex-wrap: wrap; font-size: .9rem; color: var(--pale); margin: 14px 0 32px; }
.quota span { display: inline-flex; align-items: center; gap: 7px; }
.liste-depots { display: grid; gap: 12px; }
.depot-ligne { display: flex; gap: 16px; align-items: center; background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 18px 20px; text-decoration: none !important; color: inherit; transition: border-color .15s; }
.depot-ligne:hover { border-color: var(--pale); }
.depot-ligne .ic { color: var(--vert-clair); flex: none; display: flex; }
.depot-ligne .ic svg.ic { width: 24px; height: 24px; }
.depot-ligne .infos { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.depot-ligne .titre { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 3px 11px; font-size: .78rem; font-weight: 500; white-space: nowrap; border: 1px solid; }
.badge.ancre { color: var(--vert-clair); border-color: #2e5c4a; }
.badge.attente { color: var(--ambre); border-color: #5a5130; }
.vide { text-align: center; padding: 64px 10px; color: var(--doux); border: 1px dashed var(--ligne-forte); border-radius: var(--rayon); }
.vide .grand { display: block; margin-bottom: 12px; color: var(--pale); }
.vide .grand svg.ic { width: 40px; height: 40px; stroke-width: 1.2; }

/* ---------- fiche d'un dépôt / vérification ---------- */
.fiche { width: 100%; border-collapse: collapse; }
.fiche th { text-align: start; vertical-align: top; color: var(--pale); font-weight: 400; padding-block: 12px; padding-inline: 0 18px; width: 30%; font-size: .9rem; border-bottom: 1px solid var(--ligne); }
.fiche td { padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.fiche tr:last-child th, .fiche tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { .fiche th, .fiche td { display: block; width: 100%; padding: 2px 0; border: 0; } .fiche th { padding-top: 14px; } .fiche td { padding-bottom: 12px; border-bottom: 1px solid var(--ligne); } }
.sceau { display: flex; gap: 16px; align-items: flex-start; border-radius: var(--rayon); padding: 20px 22px; margin-bottom: 24px; border: 1px solid; }
.sceau .ic { flex: none; display: flex; margin-top: 2px; }
.sceau .ic svg.ic { width: 28px; height: 28px; }
.sceau b { display: block; font-size: 1.05rem; font-weight: 500; margin-bottom: 4px; color: var(--texte); }
.sceau.ancre { background: var(--vert-fond); color: #b9dfcb; border-color: #24503f; }
.sceau.ancre .ic { color: var(--vert-clair); }
.sceau.attente { background: var(--ambre-fond); color: #d9c79c; border-color: #4d4628; }
.sceau.attente .ic { color: var(--ambre); }
.sceau.absent { background: var(--rouge-fond); color: var(--rouge); border-color: #5a3430; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(140px); background: var(--texte); color: var(--fond); padding: 12px 20px; border-radius: 10px; transition: transform .25s; z-index: 50; max-width: calc(100% - 32px); font-weight: 500; }
#toast.visible { transform: translateX(-50%) translateY(0); }

.texte-long { max-width: 760px; margin: 0 auto; }
.texte-long h1 { margin-bottom: 1em; }
.texte-long h2 { margin-top: 2em; font-size: 1.2rem; }
.texte-long p, .texte-long li { color: var(--doux); }
.texte-long b { color: var(--texte); }
.texte-long li { margin-bottom: .5em; }

/* ---------- 💳 tarifs, paiement, administration ---------- */
.tarif .prix { font-size: 2.2rem; font-weight: 600; color: var(--texte); margin: 4px 0 0; line-height: 1.2; }
.tarif .petit { margin-bottom: 14px; }
.tarifs { margin-bottom: 80px; }
.prix-f { margin-inline-start: auto; color: var(--texte); font-weight: 600; }
.badge.apayer { color: var(--rouge); border-color: #5a3430; }
.carte.paiement { border-color: #2e5c4a; }
.carte.paiement h3 { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ligne); }
.petit-heros { padding: 8px 0 40px; }
.etapes-paie { padding-inline-start: 22px; margin: 0 0 18px; }
.admin-paie .admin-tete { margin-top: 0; justify-content: space-between; }
.admin-paie p { margin: 8px 0 0; }
.ligne-btn.serre { margin-top: 0; flex-wrap: nowrap; gap: 6px; }
.ligne-btn.serre input { min-width: 0; }
main > h2 { margin-top: 40px; }

/* ---------- 💳 moyens de paiement ---------- */
.moyens { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0 0 24px; }
.moyen { border: 1px solid var(--ligne-forte); border-radius: 10px; padding: 16px 18px; background: var(--fond); }
.moyen h4 { margin: 0 0 4px; font-size: 1.02rem; font-weight: 600; color: var(--vert-clair); }
.moyen .petit { margin: 0 0 8px; }
.moyen .fiche th { width: 42%; font-size: .85rem; padding-block: 8px; }
.moyen .fiche td { padding-block: 8px; overflow-wrap: anywhere; }
.conseils { margin: 8px 0 22px; padding-inline-start: 20px; color: var(--doux); }
.conseils li { margin: 6px 0; }
.conseils b { color: var(--texte); }
fieldset.moyen-reg { border: 1px solid var(--ligne-forte); border-radius: 10px; padding: 4px 16px 14px; margin: 16px 0; }
fieldset.moyen-reg legend { padding: 0 6px; }
fieldset.moyen-reg legend .case { margin: 0; }
fieldset.moyen-reg label:not(.case) { margin-top: 12px; font-size: .92rem; }
.moyen.compte-recep { border-color: var(--vert-clair); margin: 0 0 18px; }
.moyen.compte-recep h4 { display: flex; align-items: center; gap: 8px; }
fieldset.moyen-reg .case { margin: 8px 0; }
