/* ============================================================
   ORION — Feuille de styles partagée
   Projet pédagogique IPSA Toulouse · AERO 1 · Promotion 2030
   ============================================================ */

:root {
    --orange: #FF9F6B;
    --yellow: #FFD369;
    --coral:  #FF8A9B;
    --amber:  #FFB74D;
    --cream:  #FFFBF7;
    --dark:   #2D2D2D;
    --muted:  #9A8F86;
    --soft:   #6B5E55;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; background: var(--cream); font-family: 'DM Sans', sans-serif; color: var(--dark); }
body { min-height: 100%; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Noise overlay */
body::after {
    content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* Blobs flous */
.blob { position: fixed; border-radius: 50%; filter: blur(90px); opacity: 0.2; pointer-events: none; will-change: transform; z-index: 0; }
.b1 { width: 500px; height: 500px; background: var(--orange); top: -150px; right: -100px; animation: d1 16s ease-in-out infinite; }
.b2 { width: 420px; height: 420px; background: var(--yellow); bottom: -120px; left: -100px; animation: d2 20s ease-in-out infinite; }
.b3 { width: 280px; height: 280px; background: var(--coral);  top: 38%; left: 38%; opacity: 0.15; animation: d1 24s ease-in-out infinite reverse; }
@keyframes d1 { 0%,100%{transform:translate(0,0)}  50%{transform:translate(28px,-36px)} }
@keyframes d2 { 0%,100%{transform:translate(0,0)}  50%{transform:translate(-22px,32px)} }

/* Nav */
nav.orion-nav { position: fixed; inset: 0 0 auto 0; z-index: 30; padding: 22px 44px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo-icon { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg, var(--orange), var(--yellow)); display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 6px 20px rgba(255,159,107,.3); }
.logo-name { font-family: 'Syne', sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.status-badge { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.72); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.9); padding: 9px 18px; border-radius: 100px; font-size: 13px; color: var(--muted); font-weight: 500; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pdot 2s infinite; }
@keyframes pdot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.45;transform:scale(.8)} }

/* Titres */
h1, h2, h3 { font-family: 'Syne', sans-serif; letter-spacing: -0.035em; line-height: 1.05; }
h1 { font-size: clamp(40px, 5vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.0; }
h2 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 800; }
h3 { font-size: clamp(19px, 1.6vw, 24px); font-weight: 700; }
.grad { background: linear-gradient(118deg, var(--orange) 0%, var(--yellow) 48%, var(--coral) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-sci  { background: linear-gradient(118deg, var(--orange), var(--amber)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-lit  { background: linear-gradient(118deg, var(--coral), var(--yellow));  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-eco  { background: linear-gradient(118deg, var(--amber), var(--coral));   -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Chips & tags */
.chip { display: inline-flex; align-items: center; gap: 7px; width: fit-content; background: rgba(255,255,255,.75); backdrop-filter: blur(10px); border: 1px solid rgba(255,179,107,.28); border-radius: 100px; padding: 7px 16px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tag { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.95); border-radius: 100px; padding: 5px 12px; font-size: 12px; font-weight: 500; color: var(--soft); backdrop-filter: blur(8px); }
.tag-sci { background: linear-gradient(135deg, rgba(255,159,107,.18), rgba(255,183,77,.18)); border-color: rgba(255,159,107,.32); color: #B85B2E; }
.tag-lit { background: linear-gradient(135deg, rgba(255,138,155,.18), rgba(255,211,105,.18)); border-color: rgba(255,138,155,.32); color: #B8456A; }
.tag-eco { background: linear-gradient(135deg, rgba(255,183,77,.18), rgba(255,138,155,.18)); border-color: rgba(255,183,77,.32); color: #A6651F; }

/* Cards */
.card { background: rgba(255,255,255,.7); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.92); border-radius: 22px; padding: 24px 26px; box-shadow: 0 10px 50px rgba(255,159,107,.09), 0 1px 0 rgba(255,255,255,.8) inset; transition: transform .35s ease, box-shadow .35s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 60px rgba(255,159,107,.18), 0 1px 0 rgba(255,255,255,.8) inset; }
.card-ico { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, var(--orange), var(--yellow)); display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 6px 20px rgba(255,159,107,.3); margin-bottom: 14px; }
.card-ico.sci { background: linear-gradient(135deg, var(--orange), var(--amber)); }
.card-ico.lit { background: linear-gradient(135deg, var(--coral), var(--yellow)); }
.card-ico.eco { background: linear-gradient(135deg, var(--amber), var(--coral)); }
.card h3 { margin-bottom: 6px; }
.card .abbr { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; display: block; }
.card .label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 14px 0 5px; }
.card p { font-size: 14px; line-height: 1.65; color: var(--soft); font-weight: 400; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; font-size: 14px; font-weight: 500; color: white; background: linear-gradient(118deg, var(--orange), var(--coral)); border: none; border-radius: 100px; cursor: pointer; box-shadow: 0 10px 30px rgba(255,159,107,.35); transition: transform .25s ease, box-shadow .25s ease; width: fit-content; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255,159,107,.45); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; font-size: 13px; font-weight: 500; color: var(--dark); background: rgba(255,255,255,.7); border: 1px solid rgba(255,179,107,.4); border-radius: 100px; backdrop-filter: blur(10px); transition: background .25s ease, border-color .25s ease; width: fit-content; }
.btn-outline:hover { background: rgba(255,255,255,.92); border-color: var(--orange); }
.btn-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); padding: 7px 14px; border-radius: 100px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.85); backdrop-filter: blur(10px); transition: color .25s ease, background .25s ease; }
.btn-back:hover { color: var(--dark); background: rgba(255,255,255,.85); }

/* Grids */
.grid-cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-cards.cols-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }

/* Sections */
section.orion-section { position: relative; z-index: 10; padding: 70px 6vw; max-width: 1280px; margin: 0 auto; }
section.orion-section > .section-head { margin-bottom: 38px; }
section.orion-section > .section-head .chip { margin-bottom: 18px; }
section.orion-section > .section-head h2 { margin-bottom: 10px; }
section.orion-section > .section-head p.lead { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 640px; }

.pole-block { margin-top: 40px; }
.pole-block .pole-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.pole-block .pole-head .pole-ico { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 18px; }

/* Hero générique pour sous-pages */
.page-hero { position: relative; z-index: 10; padding: 130px 6vw 30px; max-width: 1280px; margin: 0 auto; }
.page-hero .back-row { margin-bottom: 26px; }
.page-hero h1 { margin: 18px 0 14px; }
.page-hero p.lead { font-size: 17px; line-height: 1.65; color: var(--soft); max-width: 640px; font-weight: 300; }
.page-hero .hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.page-hero .hero-emoji { font-size: 64px; line-height: 1; margin-bottom: 6px; }

/* Timeline */
.timeline { position: relative; padding-left: 28px; margin-top: 14px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, var(--orange), var(--coral)); border-radius: 2px; opacity: .35; }
.timeline-step { position: relative; padding-bottom: 32px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before { content: ''; position: absolute; left: -22px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--yellow)); box-shadow: 0 4px 14px rgba(255,159,107,.4); border: 3px solid var(--cream); }
.timeline-step h3 { font-size: 18px; margin-bottom: 8px; }
.timeline-step .step-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 4px; display: block; }
.timeline-step p { font-size: 14.5px; line-height: 1.7; color: var(--soft); margin-bottom: 8px; }
.timeline-step .step-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.timeline-step ul { margin: 8px 0 0 16px; }
.timeline-step ul li { font-size: 14.5px; line-height: 1.7; color: var(--soft); margin-bottom: 4px; }

/* Tableau de correspondance */
.table-corr { width: 100%; border-collapse: separate; border-spacing: 0; background: rgba(255,255,255,.65); backdrop-filter: blur(20px); border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.9); box-shadow: 0 10px 50px rgba(255,159,107,.08); }
.table-corr th, .table-corr td { padding: 16px 18px; text-align: left; font-size: 14px; vertical-align: top; }
.table-corr thead th { background: linear-gradient(135deg, rgba(255,159,107,.15), rgba(255,211,105,.15)); font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .04em; color: var(--dark); border-bottom: 1px solid rgba(255,159,107,.18); }
.table-corr tbody tr { transition: background .2s ease; }
.table-corr tbody tr:nth-child(even) { background: rgba(255,251,247,.5); }
.table-corr tbody tr:hover { background: rgba(255,159,107,.07); }
.table-corr td:first-child { font-weight: 600; color: var(--dark); }
.table-corr td .tag { margin: 2px 4px 2px 0; }

/* Pros / Cons */
.dual-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dual-list .col { padding: 24px 26px; border-radius: 22px; background: rgba(255,255,255,.7); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.92); box-shadow: 0 10px 50px rgba(255,159,107,.07); }
.dual-list h3 { margin-bottom: 14px; font-size: 17px; }
.dual-list ul { list-style: none; margin: 0; padding: 0; }
.dual-list li { font-size: 14px; line-height: 1.6; color: var(--soft); padding: 6px 0 6px 24px; position: relative; }
.dual-list .pro li::before { content: '✓'; position: absolute; left: 0; top: 6px; color: var(--orange); font-weight: 700; }
.dual-list .con li::before { content: '!'; position: absolute; left: 4px; top: 6px; color: var(--coral); font-weight: 700; }

/* Card-link (filière entry) */
.filiere-link { display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.filiere-link .more { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 600; color: var(--orange); display: inline-flex; align-items: center; gap: 6px; transition: gap .25s ease; }
.filiere-link:hover .more { gap: 10px; }
.filiere-link .duration { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Conseil cards */
.conseil-card { background: rgba(255,255,255,.7); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.92); border-radius: 22px; padding: 22px 24px; box-shadow: 0 10px 50px rgba(255,159,107,.08); }
.conseil-card .conseil-num { font-family: 'Syne', sans-serif; font-size: 32px; font-weight: 800; background: linear-gradient(118deg, var(--orange), var(--coral)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 10px; }
.conseil-card h3 { font-size: 17px; margin-bottom: 8px; }
.conseil-card p { font-size: 14px; line-height: 1.65; color: var(--soft); }

/* Footer */
footer.orion-footer { position: relative; z-index: 30; padding: 26px 44px 30px; display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 11px; color: #C5BDB8; letter-spacing: .04em; flex-wrap: wrap; }
.sep { color: #DDD6CF; }

/* Animation rise */
.rise { animation: rise .7s ease both; }
.rise-d1 { animation-delay: .08s; }
.rise-d2 { animation-delay: .16s; }
.rise-d3 { animation-delay: .24s; }
.rise-d4 { animation-delay: .32s; }
@keyframes rise { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }

/* Responsive */
@media (max-width: 768px) {
    nav.orion-nav { padding: 16px 22px; }
    nav.orion-nav .status-badge { display: none; }
    section.orion-section { padding: 50px 22px; }
    .page-hero { padding: 110px 22px 20px; }
    .dual-list { grid-template-columns: 1fr; }
    .table-corr { font-size: 12px; }
    .table-corr th, .table-corr td { padding: 12px 12px; }
    footer.orion-footer { padding: 18px 20px; }
}
