/* ==========================================================
   RENTRÉE 2026-2027 – styles dédiés (bandeau, menu, accueil,
   page « Informations aux étudiants », visionneuse PDF)
   Couleurs du site : #750069 (violet), #42bd2e (vert)
   ========================================================== */

/* ---------- Bandeau d'annonce (header.php) ---------- */
.rentree-banner { background: #2c7d1d; color: #fff; font-size: .9rem; position: relative; }
.rentree-banner-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: .15rem 1rem; padding: .55rem 2.75rem .55rem 1rem; text-align: center; line-height: 1.35;
}
.rentree-banner a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rentree-banner a:hover { text-decoration-thickness: 2px; }
.rentree-banner a:focus-visible,
.rentree-banner-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
.rentree-banner-close {
    position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
    width: 2rem; height: 2rem; border: 0; background: transparent; color: #fff;
    font-size: 1.4rem; line-height: 1; cursor: pointer; opacity: .85;
}
.rentree-banner-close:hover { opacity: 1; }

/* ---------- Entrée de menu ---------- */
.nav-rentree { color: #750069 !important; font-weight: 600; }
.nav-new {
    display: inline-block; background: #42bd2e; color: #fff; font-size: .68rem; font-weight: 700;
    padding: 1px 8px; border-radius: 999px; margin-left: .45rem; vertical-align: middle;
}

/* ---------- Bloc « dates clés » (accueil) ---------- */
.rentree-band { background: #f4f0f8; border-top: 1px solid #e6dcec; border-bottom: 1px solid #e6dcec; }
.rentree-band-grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 1024px) { .rentree-band-grid { grid-template-columns: 1fr 2.2fr auto; } }
.rentree-band-dates { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .rentree-band-dates { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
.rentree-band-date { border-left: 3px solid #750069; padding-left: .85rem; }
.rentree-band-date strong { display: block; color: #750069; font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.rentree-band-date span { display: block; color: #4a5568; font-size: .85rem; line-height: 1.35; margin-top: .2rem; }

/* ---------- Boutons ---------- */
.btn-rentree {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: #750069; color: #fff; font-weight: 700; padding: .7rem 1.4rem; border-radius: 999px;
    transition: background .2s, transform .2s; border: 2px solid #750069; cursor: pointer; font-size: .95rem;
}
.btn-rentree:hover { background: #5c0053; border-color: #5c0053; }
.btn-rentree-outline { background: #fff; color: #750069; }
.btn-rentree-outline:hover { background: #f4f0f8; color: #5c0053; }
.btn-rentree:focus-visible { outline: 3px solid #42bd2e; outline-offset: 2px; }

/* ---------- Encart page Formations ---------- */
.rentree-encart {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
    background: #f4f0f8; border-left: 5px solid #750069; border-radius: 0 10px 10px 0; padding: 1.1rem 1.4rem;
}
.rentree-encart h2 { color: #750069; font-size: 1.15rem; font-weight: 700; margin-bottom: .2rem; }
.rentree-encart p { color: #4a5568; font-size: .95rem; max-width: 52rem; }
.rentree-link-inline { display: inline-block; margin-left: .5rem; color: #750069; font-weight: 600; font-size: .85rem; text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================
   PAGE « INFORMATIONS AUX ÉTUDIANTS »
   ========================================================== */
.info-hero { background: linear-gradient(120deg, #5c0053 0%, #750069 62%, #2c7d1d 150%); color: #fff; padding: 3.25rem 0; }
.info-hero-grid { display: grid; gap: 2.25rem; }
@media (min-width: 900px) { .info-hero-grid { grid-template-columns: 1.5fr 1fr; align-items: center; } }
.info-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: .9rem; }
.info-hero-lead { font-size: 1.1rem; opacity: .95; max-width: 40rem; line-height: 1.55; }
.info-next { margin-top: 1.4rem; font-size: .95rem; background: rgba(255,255,255,.14); border-radius: 10px; padding: .65rem 1rem; display: inline-block; max-width: 40rem; }
.info-next strong { font-weight: 700; }
.launch { border-left: 4px solid #42bd2e; padding-left: 1.4rem; }
.launch-day { font-size: clamp(3.5rem, 8vw, 5rem); font-weight: 800; line-height: 1; }
.launch-month { font-size: 1.35rem; font-weight: 600; margin-top: .15rem; }
.launch-sub { margin-top: .6rem; opacity: .92; line-height: 1.45; }
.countdown { margin-top: .9rem; display: inline-block; background: #42bd2e; color: #12320b; font-weight: 700; border-radius: 999px; padding: .3rem 1rem; font-size: .95rem; }

.info-section { padding: 3rem 0; }
.info-section h2 { color: #750069; font-size: 1.7rem; font-weight: 800; margin-bottom: .4rem; }
.info-section .info-intro { color: #4a5568; margin-bottom: 1.75rem; max-width: 46rem; }
.info-two { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .info-two { grid-template-columns: 1.35fr 1fr; gap: 3.5rem; } }

/* Frise des échéances : c'est une vraie suite chronologique */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ''; position: absolute; left: .95rem; top: .5rem; bottom: .5rem; width: 2px; background: #e2d6e6; }
.tl-item { position: relative; padding: 0 0 1.6rem 3rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: .4rem; top: .3rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #fff; border: 3px solid #750069; }
.tl-item.is-past .tl-dot { background: #b9b0bc; border-color: #b9b0bc; }
.tl-item.is-current .tl-dot { background: #42bd2e; border-color: #42bd2e; box-shadow: 0 0 0 5px rgba(66,189,46,.28); }
.tl-item.is-key .tl-dot { width: 1.5rem; height: 1.5rem; left: .22rem; top: .15rem; background: #750069; }
.tl-date { color: #750069; font-weight: 700; }
.tl-title { font-weight: 700; color: #2d3748; font-size: 1.05rem; }
.tl-detail { color: #4a5568; font-size: .95rem; margin-top: .15rem; line-height: 1.5; max-width: 38rem; }
.tl-item.is-past .tl-date, .tl-item.is-past .tl-title { color: #8a808d; }
.tl-item.is-past .tl-detail { color: #9a929c; }
.tl-chip { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 9px; border-radius: 999px; margin-left: .5rem; vertical-align: middle; }
.tl-chip.past { background: #ece8ee; color: #6f6672; }
.tl-chip.current { background: #d8f3d3; color: #1e5a13; }
.tl-chip.next { background: #750069; color: #fff; }

/* Modalités pratiques */
.practical { background: #f4f0f8; border-radius: 12px; padding: 1.5rem 1.5rem 1.25rem; }
.practical h3 { color: #750069; font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.practical dl { margin: 0; }
.practical dt { font-weight: 700; color: #2d3748; margin-top: .95rem; display: flex; align-items: center; gap: .5rem; }
.practical dt:first-child { margin-top: 0; }
.practical dt i { color: #750069; width: 1.1rem; text-align: center; }
.practical dd { margin: .2rem 0 0 1.6rem; color: #4a5568; font-size: .95rem; line-height: 1.5; }

/* Liste des documents */
.doc-list { border: 1px solid #e5dde8; border-radius: 12px; background: #fff; overflow: hidden; }
.doc-row { display: flex; align-items: center; gap: 1rem 1.25rem; padding: 1.1rem 1.25rem; border-top: 1px solid #efe7f2; }
.doc-row:first-child { border-top: 0; }
.doc-icon { flex: 0 0 2.6rem; height: 2.6rem; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #f4f0f8; color: #750069; font-size: 1.3rem; }
.doc-main { flex: 1; min-width: 0; }
.doc-title { font-weight: 700; color: #2d3748; line-height: 1.35; }
.doc-desc { color: #4a5568; font-size: .9rem; margin-top: .15rem; }
.doc-meta { color: #7a717d; font-size: .82rem; margin-top: .25rem; }
.doc-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.doc-actions .btn-rentree { padding: .5rem 1.1rem; font-size: .88rem; }
@media (max-width: 720px) {
    .doc-row { flex-wrap: wrap; }
    .doc-main { flex-basis: calc(100% - 4rem); }
    .doc-actions { width: 100%; justify-content: flex-start; }
}

/* Contact */
.info-contact { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .info-contact { grid-template-columns: 1fr 1fr; } }
.contact-line { display: flex; gap: .75rem; align-items: flex-start; margin-top: .75rem; color: #2d3748; }
.contact-line i { color: #750069; width: 1.1rem; margin-top: .25rem; text-align: center; }
.contact-line a { color: #750069; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Visionneuse PDF (fenêtre) ---------- */
.pdf-modal { position: fixed; inset: 0; z-index: 10000; display: none; flex-direction: column; background: rgba(24, 0, 21, .92); }
.pdf-modal.open { display: flex; }
.pdf-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem .9rem; padding: .6rem 1rem; background: #2a0026; color: #fff; }
.pdf-title { flex: 1 1 14rem; min-width: 0; font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-tools { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.pdf-btn { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: .35rem .75rem; font-size: .85rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.pdf-btn:hover { background: rgba(255,255,255,.25); }
.pdf-btn:focus-visible { outline: 2px solid #42bd2e; outline-offset: 2px; }
.pdf-info { font-size: .85rem; opacity: .9; min-width: 5.5rem; text-align: center; }
.pdf-body { flex: 1; overflow: auto; padding: 1rem; -webkit-overflow-scrolling: touch; }
.pdf-page { margin: 0 auto 1rem; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.pdf-page canvas { display: block; width: 100%; height: 100%; }
.pdf-msg { color: #fff; text-align: center; padding: 3rem 1rem; line-height: 1.6; }
.pdf-msg a { color: #9ff08f; text-decoration: underline; }
.pdf-modal.is-protected .pdf-body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pdf-notice { background: #42bd2e; color: #12320b; font-size: .8rem; font-weight: 600; padding: .3rem 1rem; text-align: center; }
@media print { body.pdf-protected-open * { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .btn-rentree { transition: none; } }

/* ---------- Menu : compacte légèrement pour accueillir « Infos étudiants » ---------- */
.nav-rentree { white-space: nowrap; }
@media (min-width: 768px) {
    header nav .nav-link { padding-left: .6rem; padding-right: .6rem; }
    header nav > * + * { margin-left: .5rem !important; }
}
.practical { align-self: start; }

/* Menu desktop : sous 1500px, la pastille « Nouveau » devient un simple point vert (gain de place) */
@media (min-width: 768px) and (max-width: 1499px) {
    header nav .nav-new { font-size: 0; width: .55rem; height: .55rem; padding: 0; margin-left: .35rem; vertical-align: super; }
}
@media (min-width: 1280px) { header nav .nav-link { white-space: nowrap; } }

/* ---------- Bilingue : la langue active vient de <html data-lang="fr|en"> (voir header.php) ---------- */
html:not([data-lang="en"]) .l-en { display: none; }
html[data-lang="en"] .l-fr { display: none; }

/* Visionneuse sur petit écran : barre d'outils plus compacte */
@media (max-width: 600px) { .pdf-modal [data-act="open"] { display: none; } }
