/* Massar 2027 : page Études. Complète landing.css (styles communs). */

.nav a[aria-current="page"] { color: var(--or-clair); }

/* Haut de page plein écran (ordinateur compris) */
.hero-univers { align-items: flex-end; }
.hero-univers .hero-media::after { background: linear-gradient(180deg, rgba(6,22,36,.55) 0%, rgba(6,22,36,.1) 30%, rgba(6,22,36,.7) 65%, var(--fond) 100%); }
.hero-univers .hero-video { width: 100%; height: 100%; object-fit: cover; }
.rot { display: inline-block; transition: opacity .35s, transform .35s; }
.rot.sort { opacity: 0; transform: translateY(-10px); }
@media (min-width: 1000px) {
  .hero-univers { align-items: flex-end; padding-bottom: 72px; }
  .hero-univers .hero-media { inset: 0; width: auto; border-radius: 0; border: 0; box-shadow: none; }
  html[dir="rtl"] .hero-univers .hero-media { inset: 0; }
  .hero-univers .hero-media::after { background: linear-gradient(90deg, rgba(6,22,36,.85) 0%, rgba(6,22,36,.35) 55%, rgba(6,22,36,.1) 100%), linear-gradient(180deg, transparent 70%, var(--fond)); }
  html[dir="rtl"] .hero-univers .hero-media::after { background: linear-gradient(270deg, rgba(6,22,36,.85) 0%, rgba(6,22,36,.35) 55%, rgba(6,22,36,.1) 100%), linear-gradient(180deg, transparent 70%, var(--fond)); }
}

/* Bande défilante */
.defile { overflow: hidden; border-block: 1px solid var(--bord); background: rgba(246,185,26,.05); }
.defile-piste { display: flex; gap: 22px; width: max-content; padding: 14px 0; animation: defile 40s linear infinite; }
.defile span { color: var(--or-clair); font-family: var(--titre); font-style: italic; font-size: 20px; white-space: nowrap; }
html[lang="ar"] .defile span { font-style: normal; }
.defile i { color: var(--or); font-style: normal; font-size: 12px; align-self: center; }
@keyframes defile { to { transform: translateX(-50%); } }
html[dir="rtl"] .defile-piste { animation-name: defile-rtl; }
@keyframes defile-rtl { to { transform: translateX(50%); } }

/* Photos de nos étudiants avec légende */
.bande-photos figure { flex: none; margin: 0; width: 150px; scroll-snap-align: start; }
.bande-photos figure img { width: 150px; height: 188px; object-fit: cover; border-radius: 14px; border: 1px solid var(--bord-doux); }
.bande-photos figcaption { color: var(--texte-2); font-size: 11.5px; line-height: 1.35; margin-top: 6px; text-align: start; }
.engagements b { font-weight: 600; }

/* Film */
.film { display: grid; gap: 28px; align-items: center; }
.film-cadre { position: relative; width: min(100%, 340px); margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; border: 1px solid var(--bord); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); background: #000; }
.film-cadre video { width: 100%; height: 100%; object-fit: cover; }
.film-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer; background: var(--or); color: var(--nuit); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(246,185,26,.2); }
.film-play svg { width: 30px; height: 30px; margin-inline-start: 4px; }
.film-play[hidden], .film-son[hidden] { display: none; }
.film-son { position: absolute; bottom: 14px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(6,22,36,.7); color: #fff; font: 600 13px var(--corps); cursor: pointer; }
@media (min-width: 1000px) { .film { grid-template-columns: 1.1fr .9fr; gap: 64px; } }

/* Pays */
.grille-pays { display: grid; gap: 16px; margin-top: 32px; }
.carte-pays { display: flex; flex-direction: column; border-radius: var(--rayon); overflow: hidden; background: var(--carte); border: 1px solid var(--bord-doux); }
.carte-photo { aspect-ratio: 16 / 9; overflow: hidden; }
.carte-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.carte-pays:hover .carte-photo img { transform: scale(1.04); }
.carte-corps { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; flex: 1; }
.carte-corps small, .carte-offre small { color: var(--or); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
html[lang="ar"] .carte-corps small, html[lang="ar"] .carte-offre small { letter-spacing: 0; font-size: 12.5px; }
.carte-corps h3, .carte-offre h3 { margin: 0; font-family: var(--titre); font-weight: 500; font-size: 28px; line-height: 1.15; }
.carte-corps > p { color: var(--texte-2); font-size: 14.5px; }
.puces { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.puces li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.puces svg { width: 18px; height: 18px; color: var(--or); margin-top: 3px; }
.lien-or { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; color: var(--or-clair); font-weight: 700; font-size: 15px; }
.lien-or svg { width: 18px; height: 18px; transition: transform .2s; }
.lien-or:hover svg { transform: translateX(4px); }
html[dir="rtl"] .lien-or svg { transform: scaleX(-1); }
.plan-b-bloc { display: grid; gap: 20px; margin-top: 40px; padding: 24px; border-radius: 24px; border: 1px dashed var(--bord); background: rgba(246,185,26,.04); }
.plan-b-bloc h2 { font-size: clamp(26px, 6vw, 40px); }
.carte-pays.plan-b { border-color: var(--bord); }
.note-source { color: #7E93A6; font-size: 13px; margin-top: 18px; max-width: 760px; }
@media (min-width: 640px) { .grille-pays { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .grille-pays { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .plan-b-bloc { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 40px; gap: 40px; }
}

/* Offre (aucun prix affiché) */
.grille-offre { display: grid; gap: 16px; margin-top: 32px; }
.carte-offre { padding: 26px 22px; border-radius: 22px; background: var(--carte); border: 1px solid var(--bord-doux); display: flex; flex-direction: column; gap: 8px; }
.carte-offre.principale { background: radial-gradient(120% 90% at 0% 0%, #1A4166 0%, var(--carte) 60%); border-color: var(--bord); }
.devis { color: #D3DEE8; margin-top: 20px; font-size: 15px; max-width: 720px; }
.hors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; color: var(--texte-2); font-size: 14px; }
.hors b { color: var(--texte); font-weight: 600; }
.hors span { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--bord-doux); font-size: 13px; }
@media (min-width: 800px) { .grille-offre { grid-template-columns: 1fr 1fr; } }

/* Frise en 5 étapes sur ordinateur */
@media (min-width: 1000px) { .frise.cinq { grid-template-columns: repeat(5, 1fr); } }

/* Formulaire */
.carte-form { display: grid; gap: 24px; padding: 28px 20px; border-radius: 24px; border: 1px solid var(--bord); background: radial-gradient(120% 80% at 100% 0%, #17395A 0%, var(--carte) 55%, var(--nuit) 100%); }
.form { display: grid; gap: 14px; }
.champ { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--texte-2); }
.champ input, .champ select {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(6,22,36,.55); color: var(--texte); font: 500 16px var(--corps); appearance: none; -webkit-appearance: none;
}
.champ select { background-image: linear-gradient(45deg, transparent 50%, var(--or) 50%), linear-gradient(135deg, var(--or) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 36px; }
html[dir="rtl"] .champ select { background-position: 20px 22px, 15px 22px; }
.champ input:focus, .champ select:focus { outline: none; border-color: var(--or); }
.champ .erreur, .champ input.erreur, .champ select.erreur { border-color: #E5726B; }
.form .btn-wa { margin-top: 6px; }
.form-hint { color: #7E93A6; font-size: 12.5px; text-align: center; }
@media (min-width: 700px) { .form { grid-template-columns: 1fr 1fr; } .form .btn-wa, .form-hint { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .carte-form { grid-template-columns: .9fr 1.1fr; padding: 48px; gap: 48px; align-items: start; } }

/* Crédits */
.credits { max-width: 1240px; margin: 28px auto 0; color: #6F8597; font-size: 12.5px; }
.credits summary { cursor: pointer; }
.credits ul { padding-inline-start: 18px; margin: 10px 0 0; display: grid; gap: 4px; }
.credits a { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { .defile-piste { animation: none; } }

/* Corrections du 29/11 : virgule du titre, carrousel des pays sur téléphone, police des boutons */
button { font-family: inherit; }
.nw { white-space: nowrap; }
.hero-univers h1 { font-size: clamp(38px, 9.5vw, 72px); }
@media (max-width: 639px) {
  .grille-pays { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gouttiere) * -1); padding: 0 var(--gouttiere) 8px; scrollbar-width: none; }
  .grille-pays::-webkit-scrollbar { display: none; }
  .grille-pays .carte-pays { flex: none; width: 84%; scroll-snap-align: center; }
  .glisser { display: flex; align-items: center; gap: 8px; color: var(--texte-2); font-size: 13px; margin-top: 10px; }
}
@media (min-width: 640px) { .glisser { display: none; } }

.marque-txt small { white-space: nowrap; }

/* Bouton flottant « Devis gratuit » (en face du bouton WhatsApp) */
.devis-flottant {
  position: fixed; z-index: 60; bottom: calc(20px + env(safe-area-inset-bottom)); inset-inline-end: 18px;
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: 999px;
  background: var(--or); color: var(--nuit); font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 30px -8px rgba(246,185,26,.7);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.devis-flottant.visible { opacity: 1; transform: none; pointer-events: auto; animation: pulse-or 2.6s ease-in-out 1s infinite; }
.devis-flottant svg { width: 20px; height: 20px; }
@keyframes pulse-or { 0%, 100% { box-shadow: 0 12px 30px -8px rgba(246,185,26,.7), 0 0 0 0 rgba(246,185,26,.45); } 50% { box-shadow: 0 12px 30px -8px rgba(246,185,26,.7), 0 0 0 10px rgba(246,185,26,0); } }
@media (prefers-reduced-motion: reduce) { .devis-flottant.visible { animation: none; } }

/* Les deux numéros WhatsApp sous le formulaire */
.deux-wa { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--bord-doux); }
.deux-wa p { width: 100%; text-align: center; color: var(--texte-2); font-size: 13.5px; }
.deux-wa a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--wa); color: #3FD27A; font-weight: 700; font-size: 15px; }
.deux-wa a:hover { background: rgba(31,175,85,.12); }
