@import 'tailwindcss';

@source '../views/**/*.blade.php';
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';

@theme {
    --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';

    --color-brand:       #199bff;
    --color-brand-light: #3db6ff;
    --color-brand-deep:  #0d6fd1;
    --color-silver:      #c4cdd6;
    --color-ink:         #0a0d12;
}

/* =========================================================
   Aviman Défense Ultra — Home page styles
   ========================================================= */
:root {
    --bg:        #0a0d12;
    --bg-2:      #0e131b;
    --bg-3:      #131a24;
    --line:      rgba(255, 255, 255, .08);
    --blue:      #199bff;
    --blue-2:    #3db6ff;
    --blue-deep: #0d6fd1;
    --silver:    #c4cdd6;
    --text:      #eef3f8;
    --muted:     #93a1b0;
    --nav-h:     92px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
section { position: relative; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: var(--blue-2);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); display: inline-block; }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 15px;
    padding: 14px 28px; border-radius: 2px;
    transition: .25s ease; cursor: pointer; border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
    color: #fff; box-shadow: 0 8px 30px rgba(25, 155, 255, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(25, 155, 255, .5); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255, 255, 255, .25); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-2); }
.btn .arw { transition: transform .25s ease; }
.btn:hover .arw { transform: translateX(4px); }

/* ---------- TOP BAR ---------- */
.topbar {
    background: #060a0f; border-bottom: 1px solid var(--line);
    font-size: 12.5px; color: var(--muted);
}
.topbar .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 22px; height: 38px; }
.topbar a:hover { color: var(--blue-2); }
.topbar .lang { display: flex; gap: 8px; }
.topbar .lang .on { color: var(--text); font-weight: 600; }
.topbar .sep { width: 1px; height: 14px; background: var(--line); }

/* ---------- HEADER / NAV ---------- */
header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 13, 18, .85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; height: var(--nav-h); gap: 40px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { height: 70px; width: auto; }
.brand .fallback { display: flex; flex-direction: column; line-height: 1; }
.brand .fallback b {
    font-weight: 900; font-size: 20px; letter-spacing: .04em;
    background: linear-gradient(180deg, #fff 0%, var(--blue-2) 120%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand .fallback span { font-size: 10px; letter-spacing: .35em; color: var(--muted); margin-top: 4px; }

nav.main { display: flex; gap: 4px; margin-left: auto; }
nav.main > a {
    position: relative; padding: 10px 16px; font-size: 14.5px; font-weight: 500;
    color: var(--text); border-radius: 2px; transition: color .2s;
}
nav.main > a::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
    background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
nav.main > a:hover { color: var(--blue-2); }
nav.main > a:hover::after { transform: scaleX(1); }

.nav-tools { display: flex; align-items: center; gap: 16px; }
.icon-btn {
    width: 38px; height: 38px; display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%;
    color: var(--text); transition: .2s;
}
.icon-btn:hover { border-color: var(--blue); color: var(--blue-2); }
.burger { display: none; }

/* ---------- HERO ---------- */
.hero {
    min-height: calc(100vh - var(--nav-h) - 38px);
    display: flex; align-items: center;
    background-image: url('/images/hero-bg.jpg');
    background-size: cover; background-position: center; background-attachment: fixed;
    background-color: #0a0d12;
    overflow: hidden;
    position: relative;
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(1200px 600px at 78% 30%, rgba(25, 155, 255, .20), transparent 60%),
        radial-gradient(900px 500px at 10% 90%, rgba(13, 111, 209, .14), transparent 55%),
        linear-gradient(180deg, rgba(10, 13, 18, .4) 0%, rgba(12, 16, 23, .65) 100%);
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 75%);
            mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-content { max-width: 760px; }
.hero h1 {
    font-size: clamp(40px, 5.6vw, 70px); font-weight: 900;
    line-height: 1.02; letter-spacing: -.02em; margin: 22px 0 20px;
}
.hero h1 .l1 { white-space: nowrap; }
.hero h1 em {
    font-style: normal;
    background: linear-gradient(120deg, var(--blue-2), var(--silver));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-ticker {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    border-top: 1px solid var(--line); background: rgba(6, 10, 15, .6); backdrop-filter: blur(8px);
}
.hero-ticker .wrap { display: flex; gap: 48px; height: 78px; align-items: center; overflow-x: auto; }
.stat b { font-size: 26px; font-weight: 800; color: #fff; }
.stat span { display: block; font-size: 12px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }

/* ---------- SECTION HEADS ---------- */
.sec { padding: 100px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.sec-head p { color: var(--muted); max-width: 460px; margin-top: 12px; }

/* ---------- NEWS ("À la une") ---------- */
.news { background: linear-gradient(180deg, #0a0d12, #0b0f16); }
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.card {
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px;
    overflow: hidden; transition: .3s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); border-color: rgba(25, 155, 255, .4); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.card .thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.card .thumb .ph { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s; }
.card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s; }
.card:hover .thumb .ph, .card:hover .thumb img { transform: scale(1.06); }
.card .tag {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: 6px 12px; background: rgba(10, 13, 18, .8); border: 1px solid var(--blue); color: var(--blue-2); border-radius: 2px;
}
.card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .date { font-size: 12px; color: var(--muted); letter-spacing: .05em; }
.card h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.card.lead h3 { font-size: 24px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .more { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--blue-2); display: inline-flex; align-items: center; gap: 8px; }

/* ---------- DOMAINES ---------- */
.domains { background: var(--bg-2); }
.domain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.domain {
    position: relative; min-height: 340px; border-radius: 4px; overflow: hidden;
    border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end;
    padding: 30px; transition: .3s;
}
.domain::before { content: ""; position: absolute; inset: 0; z-index: 0; transition: transform .5s; background-size: cover; background-position: center; }
.domain::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(10, 13, 18, .15) 0%, rgba(10, 13, 18, .92) 85%);
}
.domain:hover { border-color: rgba(25, 155, 255, .5); }
.domain:hover::before { transform: scale(1.08); }
.domain > * { position: relative; z-index: 2; }
.domain .num { font-size: 12px; font-weight: 700; color: var(--blue-2); letter-spacing: .2em; }
.domain h3 { font-size: 26px; font-weight: 800; margin: 8px 0 10px; }
.domain p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.domain .more { font-size: 13px; font-weight: 600; color: #fff; display: inline-flex; gap: 8px; align-items: center; }

/* ---------- CHIFFRES ---------- */
.figures { background: linear-gradient(135deg, #0b1420, #0a0d12); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.fig b {
    display: block; font-size: clamp(38px, 5vw, 58px); font-weight: 900;
    background: linear-gradient(180deg, #fff, var(--blue-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fig span { color: var(--muted); font-size: 14px; letter-spacing: .04em; }

/* ---------- REJOINDRE ---------- */
.join { background: var(--bg); }
.join-inner {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
    background: linear-gradient(120deg, rgba(25, 155, 255, .10), transparent), var(--bg-2);
    border: 1px solid var(--line); border-radius: 6px; padding: 60px; overflow: hidden; position: relative;
}
.join-inner::after {
    content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(25, 155, 255, .25), transparent 70%);
}
.join h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; line-height: 1.1; margin: 18px 0; }
.join p { color: var(--muted); margin-bottom: 26px; max-width: 460px; }
.join-search { display: flex; gap: 12px; flex-wrap: wrap; }
.join-search input, .join-search select {
    background: var(--bg-3); border: 1px solid var(--line); color: var(--text);
    padding: 14px 16px; border-radius: 2px; font-size: 14px; font-family: inherit; flex: 1; min-width: 160px;
}
.join-search input::placeholder { color: var(--muted); }
.join-visual { position: relative; z-index: 2; }
.join-visual .kpi { background: var(--bg-3); border: 1px solid var(--line); border-radius: 4px; padding: 22px; margin-bottom: 14px; }
.join-visual .kpi b { font-size: 30px; font-weight: 800; color: var(--blue-2); }
.join-visual .kpi span { color: var(--muted); font-size: 13px; }

/* ---------- DÉCOUVRIR ---------- */
.discover { background: var(--bg-2); }
.disc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.disc {
    position: relative; min-height: 260px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line);
    display: flex; align-items: center; padding: 40px;
    background: linear-gradient(120deg, #101825, #0b0f16);
}
.disc::before {
    content: ""; position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(25, 155, 255, .18), transparent 70%);
}
.disc .txt { position: relative; z-index: 2; }
.disc .eyebrow { margin-bottom: 12px; }
.disc h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.disc p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; max-width: 340px; }

/* ---------- FOOTER ---------- */
footer { background: #060a0f; border-top: 1px solid var(--line); padding-top: 70px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.foot-brand .fallback b { font-size: 22px; font-weight: 900; color: #fff; }
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 16px; max-width: 300px; }
.foot-col h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.foot-col a { display: block; color: var(--muted); font-size: 14px; padding: 6px 0; transition: .2s; }
.foot-col a:hover { color: var(--blue-2); }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: .2s; }
.socials a:hover { color: #fff; border-color: var(--blue); background: rgba(25, 155, 255, .1); }
.foot-bottom { border-top: 1px solid var(--line); padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.foot-bottom a:hover { color: var(--blue-2); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .news-grid, .domain-grid { grid-template-columns: repeat(2, 1fr); }
    .fig-grid { grid-template-columns: repeat(2, 1fr); }
    .join-inner { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .hero-plane { opacity: .4; }
}
@media (max-width: 720px) {
    .wrap { padding: 0 20px; }
    nav.main, .nav-tools .icon-btn { display: none; }
    .burger { display: grid; }
    .news-grid, .domain-grid, .disc-grid, .fig-grid, .foot-grid { grid-template-columns: 1fr; }
    .sec { padding: 70px 0; }
    .topbar .wrap { justify-content: center; }
    .hero h1 .l1 { white-space: normal; }
}
