/* ==========================================================================
   Visa J-1 — refonte à l'identique de la maquette « Periplea - Visa J1 (standalone) ».
   1. Règles globales : celles de la maquette, recopiées telles quelles.
   2. États de survol : les « style-hover » de la maquette.
   3. Adaptation tablette et mobile : la maquette est dessinée en 1 440 px et
      n'en prévoit pas ; les styles en ligne sont donc surchargés ici.
   ========================================================================== */

/* 1. Règles globales de la maquette ---------------------------------------- */
* { box-sizing: border-box; }
body { margin: 0; font-family: 'DM Sans', sans-serif; color: #16151a; background: #ffffff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: #E0327E; }
::selection { background: #FF65A522; }
p { margin: 0; }
img { max-width: 100%; }
button { font-family: inherit; }

/* Fond de la page : les deux halos de la maquette. « clip » plutôt que « hidden »
   pour que la barre de navigation reste collée en haut au défilement. */
.j1-page {
	position: relative; width: 100%; overflow-x: hidden; overflow-x: clip;
	background: radial-gradient(1100px 720px at 80% -8%, #FF65A522 0%, rgba(255,255,255,0) 55%),
	            radial-gradient(900px 640px at 6% 10%, #EEF1FF 0%, rgba(238,241,255,0) 60%), #ffffff;
}
[hidden] { display: none !important; }

/* Lien d'évitement (accessibilité) */
.j1-evitement { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #16151a; color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.j1-evitement:focus { left: 16px; color: #fff; }
:focus-visible { outline: 2px solid #E0327E; outline-offset: 3px; }

/* 2. Survols ---------------------------------------------------------------- */
a.j1-btn-noir, a.j1-btn-noir:hover { color: #fff; }
a.j1-btn-blanc:hover, a.j1-btn-appel:hover, a.j1-btn-contour:hover, a.j1-btn-contour-noir:hover { color: #16151a; }
.j1-btn-noir, .j1-btn-blanc, .j1-btn-contour, .j1-btn-contour-noir, .j1-btn-appel { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.j1-btn-noir:hover { background: #2c2b31 !important; transform: translateY(-1px); }
.j1-btn-blanc:hover, .j1-btn-appel:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(22,21,26,.12); }
.j1-btn-contour:hover, .j1-btn-contour-noir:hover { background: #fff !important; transform: translateY(-1px); }
.j1-fleche-sombre:hover { background: #26242f !important; }
.j1-fleche-claire:hover { background: #f4eff8 !important; }
.j1-bulle { transition: transform .18s ease; }
.j1-bulle:hover { transform: translateY(-2px); }
.j1-carte-lien, .j1-blog-carte, .j1-blog-grand, .j1-temoin { transition: transform .2s ease, box-shadow .2s ease; color: inherit; }
.j1-carte-lien:hover, .j1-blog-carte:hover, .j1-blog-grand:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(30,25,60,.10) !important; color: inherit; }
.j1-temoin:hover { color: inherit; border-color: #34313f !important; }
.j1-pied a:hover { color: #fff !important; }
.j1-social:hover { background: rgba(255,255,255,.16) !important; }

/* Bouton du menu mobile : masqué sur ordinateur */
.j1-burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 999px; background: #16151a; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.j1-burger span { display: block; width: 16px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.j1-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.j1-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.j1-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 3a. Tablette -------------------------------------------------------------- */
@media (max-width: 1100px) {
	.j1-nav-liens { gap: 12px !important; }
	.j1-langues { display: none !important; }
	.j1-hero-texte { flex-basis: 48% !important; }
	.j1-h1 { font-size: 46px !important; letter-spacing: -1.4px !important; }
	.j1-g4 { grid-template-columns: repeat(2, 1fr) !important; }
	.j1-blog-grille { grid-template-columns: repeat(2, 1fr) !important; }
	.j1-pied-grille { grid-template-columns: 1fr 1fr !important; }
}

/* 3b. Menu replié --------------------------------------------------------- */
@media (max-width: 900px) {
	.j1-nav { flex-wrap: wrap; border-radius: 26px !important; padding: 10px 10px 10px 20px !important; }
	.j1-burger { display: inline-flex; }
	.j1-nav-cta { padding: 10px 16px !important; font-size: 13px !important; }
	.j1-nav-liens { display: none !important; order: 3; width: 100%; flex-direction: column; align-items: stretch !important; gap: 0 !important; padding: 6px 4px 8px; font-size: 16px !important; }
	.j1-nav-liens a { padding: 12px 8px; border-top: 1px solid rgba(150,150,190,.16); }
	.j1-nav.j1-ouvert .j1-nav-liens { display: flex !important; }
	.j1-hero-grille { flex-direction: column; gap: 28px !important; }
	.j1-hero-texte { flex-basis: auto !important; padding-top: 0 !important; }
	.j1-mosaique { width: 100%; }
	.j1-g3 { grid-template-columns: 1fr !important; }
	.j1-g2 { grid-template-columns: 1fr !important; }
	.j1-broch { flex-direction: column; margin-left: 20px !important; margin-right: 20px !important; }
	.j1-broch-photo { min-height: 240px !important; }
	.j1-broch-texte { padding: 36px 26px !important; }
	.j1-ev-ligne { flex-wrap: wrap; }
	.j1-ev-actions { width: 100%; }
	.j1-ev-actions a { flex: 1; }
}

/* 3c. Mobile ------------------------------------------------------------------ */
@media (max-width: 640px) {
	.j1-nav-cadre { top: 10px !important; padding: 0 12px !important; }
	.j1-nav-cta span { display: none; }
	.j1-bandeau { padding: 10px 16px !important; font-size: 12.5px !important; }
	main section { padding-left: 18px !important; padding-right: 18px !important; }
	.j1-hero { padding-top: 28px !important; }
	.j1-h1 { font-size: 36px !important; letter-spacing: -1px !important; }
	main h2 { font-size: 27px !important; letter-spacing: -0.6px !important; }
	.j1-mosaique > div:nth-child(3) { display: none !important; }
	.j1-mosaique > div:first-child { padding-top: 24px !important; }
	.j1-g4 { grid-template-columns: 1fr !important; }
	.j1-blog-grille { grid-template-columns: 1fr !important; grid-auto-rows: 200px !important; }
	.j1-blog-grand { grid-column: span 1 !important; }
	.j1-temoins { padding: 56px 18px 64px !important; }
	.j1-avis-fleches { position: static !important; margin-left: auto; }
	.j1-appel { padding: 40px 22px !important; border-radius: 22px !important; }
	.j1-appel h2 { font-size: 28px !important; }
	.j1-pied { padding: 48px 20px 26px !important; }
	.j1-pied-grille { grid-template-columns: 1fr !important; gap: 28px !important; }
	.j1-bulle { right: 14px !important; bottom: 14px !important; padding: 8px !important; }
	.j1-bulle span { display: none; }
}

/* Pastille du titre : l'étoile est décorative, hors du texte du H1 */
.j1-h1-pastille::before { content: "✦"; color: #FF65A5; }

/* Étapes de l'accueil : pictogrammes */
.j1-etape-icone { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #fde4ef, #fbc9de); color: #B31E60; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.j1-etape-num { position: absolute; top: 20px; right: 22px; font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -0.8px; color: #f0c3d6; }
.j1-etape { transition: transform .2s ease, box-shadow .2s ease; }
.j1-etape:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(30,25,60,.10); }

/* Sélecteur de langue en drapeaux ; bouton d'éligibilité de l'en-tête en rose de la charte. */
.j1-langue { display: inline-flex; border-radius: 50%; opacity: .55; line-height: 0; transition: opacity .18s ease, transform .18s ease; }
a.j1-langue:hover, a.j1-langue:focus-visible { opacity: 1; transform: translateY(-1px); }
.j1-langue--active { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #CC2670; }
a.j1-btn-rose, a.j1-btn-rose:hover { color: #fff; }
.j1-btn-rose { transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.j1-btn-rose:hover { background: #A81E5C !important; transform: translateY(-1px); }

/* Chatbot Meetly (MeetYourSchool) : son lanceur est remplacé par la bulle « Une question ? » du thème (j1.js) */
.meetly-launcher { display: none !important; }

/* Fiches de la base de connaissances (MinervaKB) : le lien « Vers le haut » se calait sur les titres de Liviza et chevauchait les nôtres ; le fil d’Ariane du thème remplace le sien */
.mkb-back-to-top, .mkb-breadcrumbs { display: none !important; }

/* En-tête sur une seule ligne jusqu'à 320 px (il passait sur deux lignes à 360 et 375 px, audit du 14/10) */
@media (max-width: 420px) {
	.j1-nav { gap: 8px !important; padding: 8px 8px 8px 14px !important; }
	.j1-nav-droite { gap: 8px !important; }
	.j1-nav-cta { padding: 9px 12px !important; font-size: 12px !important; }
	.j1-logo span:last-child { font-size: 16px !important; }
	.j1-burger { width: 38px; height: 38px; }
}
@media (max-width: 350px) {
	.j1-nav-cadre { padding: 0 8px !important; }
	.j1-nav-cta { padding: 8px 10px !important; font-size: 11px !important; }
	.j1-logo span:first-child { display: none; }
}

/* Fenêtre du chatbot Meetly sur petit écran : calée sur la largeur (elle débordait de 15 px à 390 px) */
@media (max-width: 480px) {
	[id^="meetly-container-"] { left: 8px !important; right: 8px !important; width: auto !important; max-width: none !important; }
}
/* Tarifs : paragraphe d'introduction d'origine (14/10) */
.j1-tarifs-intro { margin: 0 0 40px; }

/* Listes déroulantes des formulaires (select2 de Liviza) : elles s'ouvrent dans le bloc
   « .main-holder » du pied, neutralisé ici (Liviza lui donne overflow:hidden, ombre et marges) */
.j1-page .j1-listes.main-holder { display: block; height: 0; margin: 0 !important; padding: 0; max-width: none !important; overflow: visible !important; position: static !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; }
.ginput_container_select .select2-container { width: 100% !important; max-width: 100%; }
