/* ==========================================================================
   LIMBA Cours Audio — feuille de style commune
   Une seule couleur change d'une page de langue à l'autre : le thème du pays,
   défini plus bas par [data-pays]. Tout le reste est identique partout.
   ========================================================================== */

:root{
  --bleu:#3a45c4; --bleu-fonce:#252e8a; --bleu-nuit:#141a52; --bleu-clair:#eceef9;
  --rouge:#e8202a; --rouge-fonce:#c4161f;
  --jaune:#f5b400; --jaune-clair:#fdf6e3;
  --encre:#14202e; --gris:#4a5a6d; --ligne:#dde4ec;
  --gouttiere:16px;

  /* Thème par défaut (page d'accueil) — surchargé par [data-pays] */
  --hero1:#4650cf; --hero2:#252e8a; --hero3:#141a52;
  --titre:#252e8a; --clair:#eceef9; --bordure:#c9cfec; --sur-clair:#252e8a;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
     color:var(--encre);line-height:1.65;background:#fff;
     font-size:clamp(16px,1.6vw,17.5px);overflow-x:hidden}
.wrap{width:100%;max-width:1060px;margin:0 auto;padding-left:var(--gouttiere);padding-right:var(--gouttiere)}
.logo{display:block;background:#fff;object-fit:contain}
a{color:var(--bleu)}

/* ---------- En-tête (identique sur tout le site) ---------- */
header{background:var(--bleu);color:#fff;padding:10px 0;position:sticky;top:0;z-index:50;
       box-shadow:0 2px 10px rgba(0,0,0,.14)}
header .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px}
.marque{display:flex;align-items:center;gap:10px;min-width:0;text-decoration:none;color:#fff}
.marque .logo{width:38px;height:auto;flex:0 0 auto;border-radius:6px;padding:2px}
.marque b{font-size:18px;letter-spacing:.5px;white-space:nowrap}
.marque i{font-style:normal;color:#c9cef0;font-size:13px;display:block;line-height:1.2}
header nav{display:flex;gap:18px;align-items:center}
header nav a{color:#d5d9f3;text-decoration:none;font-size:15px;white-space:nowrap}
header nav a:hover{color:#fff;text-decoration:underline}
.btn-entete{background:var(--rouge);color:#fff!important;padding:10px 16px;border-radius:6px;
            font-weight:700;text-decoration:none!important;font-size:15px;white-space:nowrap}
.btn-entete:hover{background:var(--rouge-fonce)}

/* ---------- Héros ---------- */
.hero{background:linear-gradient(165deg,var(--hero1) 0%,var(--hero2) 58%,var(--hero3) 100%);
      color:#fff;padding:clamp(34px,6vw,60px) 0}
.hero-haut{display:grid;grid-template-columns:150px 1fr;gap:clamp(18px,3vw,34px);align-items:center;
           margin-bottom:clamp(26px,4vw,38px)}
.hero-haut .logo{width:150px;height:auto;border-radius:12px;padding:10px}
.hero h1{font-size:clamp(25px,4.3vw,38px);line-height:1.15;margin:0 0 14px 0;letter-spacing:-.5px}
.hero .accroche{font-size:clamp(16.5px,2vw,19.5px);color:rgba(255,255,255,.86);margin:0 0 8px 0}
.hero .precision{font-size:clamp(15px,1.7vw,16.5px);color:rgba(255,255,255,.66);margin:0}
.hero strong{color:#fff}

/* Héros des pages de langue : drapeau à la place du logo */
.fil{font-size:14px;color:rgba(255,255,255,.7);margin-bottom:18px}
.fil a{color:rgba(255,255,255,.9)}
.fil span{opacity:.6;margin:0 7px}
.drapeau-hero{width:150px;height:auto;display:block;border-radius:8px;align-self:start;margin-top:8px;
              border:2px solid rgba(255,255,255,.85);box-shadow:0 6px 20px rgba(0,0,0,.3)}

/* Héros court des pages d'article : pas de drapeau, deux boutons */
.drapeau-page{height:46px;width:auto;display:block;border-radius:5px;margin:0 0 18px 0;
              border:2px solid rgba(255,255,255,.85);box-shadow:0 4px 14px rgba(0,0,0,.28)}
.hero-court h1{font-size:clamp(24px,4vw,35px);line-height:1.18;margin:0 0 14px 0;letter-spacing:-.4px;max-width:22ch}
.hero-court .accroche{max-width:68ch;margin-bottom:22px}
.hero-court .precision{margin-top:16px;max-width:70ch}
.hero-liens{display:flex;flex-wrap:wrap;gap:12px}
.hero-liens .btn{flex:0 1 auto;padding:15px 26px}
.btn-clair{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.5)}
.btn-clair:hover{background:rgba(255,255,255,.24)}

/* ---------- Double choix ---------- */
.choix{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:18px}
.carte{background:#fff;border-radius:12px;padding:clamp(20px,3vw,28px);color:var(--encre);
       box-shadow:0 10px 30px rgba(0,0,0,.24);display:flex;flex-direction:column;
       border-top:5px solid var(--titre)}
.carte.apps{border-top-color:var(--jaune)}
.eyebrow{font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;font-weight:800;
         color:var(--sur-clair);margin-bottom:8px}
.carte.apps .eyebrow{color:#a87400}
.carte-titre{font-size:clamp(19px,2.3vw,22px);margin:0 0 8px 0;line-height:1.25;font-weight:700}
.carte p{font-size:clamp(15px,1.7vw,16px);color:var(--gris);margin:0 0 18px 0;flex:1}
.btn{display:block;text-align:center;text-decoration:none;font-weight:700;
     font-size:clamp(16px,1.9vw,17.5px);padding:16px 18px;border-radius:8px;
     min-height:52px;line-height:1.25}
.btn-rouge{background:var(--rouge);color:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.28)}
.btn-rouge:hover{background:var(--rouge-fonce)}
.stores{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.stores a{flex:0 0 auto;display:inline-block;line-height:0;text-decoration:none;
          background:none;padding:0;min-height:0;border-radius:0;transition:opacity .15s}
.stores a:hover{background:none;opacity:.8}
.sous-btn{text-align:center;font-size:13.5px;color:var(--gris);margin-top:10px}

/* ---------- Avertissement ---------- */
.avertissement{background:#fff;border:2px solid var(--rouge);border-radius:10px;
               padding:clamp(18px,2.6vw,24px);margin-top:22px;color:var(--encre)}
.avertissement .titre{display:flex;align-items:center;gap:10px;font-weight:800;
                      font-size:clamp(16px,2vw,18px);color:var(--rouge-fonce);margin-bottom:8px}
.avertissement p{margin:0 0 10px 0;font-size:clamp(15px,1.7vw,16.5px)}
.avertissement p:last-child{margin-bottom:0}
.avertissement strong{color:var(--rouge-fonce)}

/* ---------- Sections ---------- */
section{padding:clamp(36px,5.5vw,56px) 0;border-bottom:1px solid var(--ligne)}
section h2{font-size:clamp(22px,3.2vw,29px);margin:0 0 6px 0;color:var(--titre);
           letter-spacing:-.3px;line-height:1.25}
.chapeau{font-size:clamp(16px,1.9vw,17.5px);color:var(--gris);margin:0 0 26px 0;max-width:72ch}
h3{font-size:clamp(17px,2vw,19px);margin:0 0 6px 0}
section p{max-width:74ch}
.grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:24px}
.grille p{margin:0;color:var(--gris);font-size:clamp(15px,1.7vw,16px)}
.num{display:inline-block;width:32px;height:32px;line-height:32px;text-align:center;border-radius:50%;
     background:var(--clair);color:var(--sur-clair);font-weight:800;font-size:15px;margin-bottom:10px}

/* ---------- Bloc mis en avant ---------- */
.vedette{background:var(--clair);border-radius:14px;padding:clamp(22px,3.4vw,34px);
         border-left:6px solid var(--titre)}
.vedette h2{margin-top:0}
.vedette p{color:var(--encre)}
.vedette .liens{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.vedette .liens a{background:#fff;border:1px solid var(--bordure);color:var(--sur-clair);
                  text-decoration:none;font-weight:700;padding:13px 18px;border-radius:8px;
                  font-size:clamp(14.5px,1.7vw,16px)}
.vedette .liens a:hover{background:var(--titre);color:#fff;border-color:var(--titre)}
.vedette .liens a.principal{background:var(--rouge);color:#fff;border-color:var(--rouge)}
.vedette .liens a.principal:hover{background:var(--rouge-fonce);border-color:var(--rouge-fonce)}

/* ---------- Grille de langues ---------- */
.langues{display:grid;grid-template-columns:repeat(auto-fit,minmax(272px,1fr));gap:18px;margin-top:8px}
.langue{border:1px solid var(--ligne);border-radius:10px;padding:18px 20px;background:#fff;
        display:flex;flex-direction:column}
.langue .tete{display:flex;align-items:center;gap:11px;margin-bottom:8px}
.langue h3{margin:0;color:var(--titre)}
.langue p{margin:0 0 14px 0;color:var(--gris);font-size:clamp(14.5px,1.6vw,15.5px);flex:1;max-width:none}
.langue a{font-weight:700;text-decoration:none;font-size:15px}
.langue a:hover{text-decoration:underline}
.drapeau{height:26px;width:auto;flex:0 0 auto;display:block;border-radius:3px;
         border:1px solid rgba(20,32,46,.22);box-shadow:0 1px 2px rgba(20,32,46,.12)}

/* Bandeau « les autres langues » en bas des pages de cours */
.autres{display:flex;flex-wrap:wrap;gap:9px;margin-top:6px}
.autres a{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--ligne);
          border-radius:22px;padding:7px 15px 7px 8px;text-decoration:none;color:var(--encre);
          font-size:clamp(14px,1.6vw,15px);font-weight:600}
.autres a:hover{border-color:var(--titre);color:var(--titre)}
.autres img{height:19px;width:auto;border-radius:2px;border:1px solid rgba(20,32,46,.2)}

/* ---------- Étapes ---------- */
.etapes{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin-top:6px}
.etape{border-top:3px solid var(--jaune);padding-top:14px}
.etape b{display:block;font-size:12px;letter-spacing:.14em;text-transform:uppercase;
         color:#a87400;margin-bottom:5px}
.etape p{margin:0;color:var(--gris);font-size:clamp(15px,1.7vw,16px);max-width:none}

.encadre{background:var(--jaune-clair);border-left:4px solid var(--jaune);padding:20px 22px;
         border-radius:0 8px 8px 0;margin-top:26px}
.encadre p{margin:0;font-size:clamp(15.5px,1.8vw,17px)}

.cases{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.cases > div{background:#f7f8fd;border:1px solid var(--ligne);border-radius:10px;padding:20px 22px}
.cases p{margin:0;color:var(--gris);font-size:clamp(15px,1.7vw,16px);max-width:none}

/* ---------- Sommaire d'un dossier (grammaire du darija) ---------- */
.silo{background:var(--clair);border-radius:14px;padding:clamp(20px,3vw,30px);margin-top:clamp(30px,4vw,44px)}
.silo h2{margin:0 0 6px 0;font-size:clamp(19px,2.5vw,24px)}
.silo > p{margin:0 0 20px 0;color:var(--encre);font-size:clamp(15px,1.7vw,16.5px);max-width:74ch}
.silo-familles{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:18px}
.silo-fam b{display:block;font-size:12px;letter-spacing:.13em;text-transform:uppercase;
            color:var(--sur-clair);margin-bottom:8px}
.silo-fam ul{margin:0;padding:0;list-style:none}
.silo-fam li{margin:0 0 5px 0}
.silo-fam a{display:block;background:#fff;border:1px solid var(--bordure);border-radius:7px;
            padding:8px 12px;text-decoration:none;color:var(--encre);font-size:14.5px}
.silo-fam a:hover{border-color:var(--titre);color:var(--titre)}
.silo-fam a.ici{background:var(--titre);color:#fff;border-color:var(--titre);font-weight:700}

/* ---------- Appel à l'action en milieu de page ---------- */
.appel{border-bottom:none;padding-bottom:0}
.appel-boite{background:var(--clair);border:2px solid var(--titre);border-radius:14px;
             padding:clamp(22px,3.4vw,32px);display:grid;
             grid-template-columns:1fr minmax(260px,320px);gap:clamp(20px,3vw,34px);align-items:center}
.appel-boite h2{margin:0 0 8px 0;font-size:clamp(20px,2.8vw,26px)}
.appel-texte p{margin:0;color:var(--encre);font-size:clamp(15px,1.7vw,16.5px);max-width:none}
.appel-boutons{display:flex;flex-direction:column;gap:11px}
.btn-sombre{background:var(--titre);color:#fff}
.btn-sombre:hover{filter:brightness(1.15)}
@media (max-width:720px){ .appel-boite{grid-template-columns:1fr} }

/* ---------- FAQ ---------- */
.faq details{border:1px solid var(--ligne);border-radius:10px;margin-bottom:10px;background:#fff}
.faq summary{cursor:pointer;padding:16px 20px;font-weight:700;list-style:none;
             font-size:clamp(15.5px,1.8vw,17px);position:relative;padding-right:48px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:20px;top:50%;transform:translateY(-50%);
                    font-size:24px;font-weight:400;color:var(--titre);line-height:1}
.faq details[open] summary::after{content:"−"}
.faq details[open] summary{color:var(--titre)}
.faq .reponse{padding:0 20px 18px 20px;color:var(--gris);font-size:clamp(15px,1.7vw,16.5px)}
.faq .reponse p{margin:0 0 10px 0;max-width:none}
.faq .reponse p:last-child{margin-bottom:0}

.auteur p{color:var(--gris);margin:0 0 14px 0}

.final{background:var(--hero3);color:#fff;padding:clamp(36px,5.5vw,56px) 0}
.final h2{color:#fff}
.final .chapeau{color:rgba(255,255,255,.66)}

footer{background:#0d1138;color:#9aa2d8;padding:28px 0;font-size:14.5px}
footer a{color:#c9cef0}
footer div{margin-bottom:6px}
footer nav{margin:14px 0 10px 0;display:flex;flex-wrap:wrap;gap:8px 18px}
footer nav a{text-decoration:none}
footer nav a:hover{text-decoration:underline}

@media (max-width:760px){
  header nav a:not(.btn-entete){display:none}
  .hero-haut{grid-template-columns:96px 1fr;gap:16px}
  .hero-haut .logo{width:96px;height:auto;padding:6px}
  .drapeau-hero{width:110px}
  .marque i{display:none}
}
@media (max-width:420px){
  .hero-haut{grid-template-columns:1fr;text-align:center;justify-items:center}
  .hero-haut .logo{width:120px;height:auto}
  .drapeau-hero{width:130px}
  .stores a{flex:0 0 auto}
}

/* ==========================================================================
   Thèmes par pays — seule chose qui change d'une page de langue à l'autre.
   Les teintes sont dérivées du drapeau, assombries pour que le texte blanc
   et le bouton rouge restent lisibles par-dessus.
   ========================================================================== */

body[data-pays="algerie"]{     --hero1:#0d8a4a; --hero2:#066032; --hero3:#033a1e;
                               --titre:#06623b; --clair:#e8f5ee; --bordure:#bcdfcc; --sur-clair:#06623b}
body[data-pays="maroc"]{       --hero1:#c62834; --hero2:#8d1620; --hero3:#560d14;
                               --titre:#a81f28; --clair:#fdecec; --bordure:#f0c6c8; --sur-clair:#8d1620}
body[data-pays="palestine"]{   --hero1:#0d7a4e; --hero2:#0a4a33; --hero3:#101f1a;
                               --titre:#0a6b42; --clair:#e8f3ed; --bordure:#bfdcca; --sur-clair:#0a6b42}
body[data-pays="mexique"]{     --hero1:#12805a; --hero2:#0a5239; --hero3:#063122;
                               --titre:#0a6b47; --clair:#e7f4ee; --bordure:#bcdfcd; --sur-clair:#0a6b47}
body[data-pays="russie"]{      --hero1:#2159b4; --hero2:#123566; --hero3:#0a1f3d;
                               --titre:#17428a; --clair:#e9eef8; --bordure:#c2cfea; --sur-clair:#17428a}
body[data-pays="italie"]{      --hero1:#12965b; --hero2:#0a6038; --hero3:#063a22;
                               --titre:#0b7a46; --clair:#e8f6ee; --bordure:#bfe2cd; --sur-clair:#0b7a46}
body[data-pays="chine"]{       --hero1:#cf3222; --hero2:#8e1c12; --hero3:#55100a;
                               --titre:#b32a1c; --clair:#fdeee9; --bordure:#f2cbc0; --sur-clair:#8e1c12}
body[data-pays="turquie"]{     --hero1:#cd2233; --hero2:#8a1320; --hero3:#530b13;
                               --titre:#ad1c2b; --clair:#fdecee; --bordure:#f1c6cb; --sur-clair:#8a1320}
body[data-pays="senegal"]{     --hero1:#0f8a52; --hero2:#0a5b36; --hero3:#063620;
                               --titre:#0a7042; --clair:#eaf5ee; --bordure:#c0e0cc; --sur-clair:#0a7042}
body[data-pays="islande"]{     --hero1:#1160b0; --hero2:#0a3c6e; --hero3:#062242;
                               --titre:#0d4d8f; --clair:#e8f0f9; --bordure:#bfd4ec; --sur-clair:#0d4d8f}
body[data-pays="mongolie"]{    --hero1:#1566ad; --hero2:#0c3f6d; --hero3:#072542;
                               --titre:#0f5390; --clair:#e8f1f8; --bordure:#bfd6ea; --sur-clair:#0f5390}
body[data-pays="tchetchenie"]{ --hero1:#0f9449; --hero2:#0a6130; --hero3:#06391c;
                               --titre:#0a7a3a; --clair:#eaf6ee; --bordure:#c0e2cb; --sur-clair:#0a7a3a}

.silo-compte{font-size:14px;font-weight:600;color:var(--sur-clair);opacity:.72;white-space:nowrap;letter-spacing:.3px}

.stores img{display:block;max-width:100%}
.b-apple{width:140px;height:auto}
.b-google{width:140px;height:auto}
