/* ============================================================
   c-PAL — Feuille de style principale
   Typographie : Barlow Condensed (titres) + Barlow (corps)
   Palette : Navy profond / Bleu acier / Blanc / Gris industriel
   ============================================================ */

/* ---------- Variables ---------- */
:root {
    --navy:       #0B1E36;
    --navy-mid:   #112844;
    --blue:       #1A5FA8;
    --blue-light: #2A7FD4;
    --steel:      #4A7FA5;
    --accent:     #3399FF;
    --light:      #F2F5F9;
    --border:     #D0DCE8;
    --text:       #1C2B3A;
    --text-muted: #556A7E;
    --white:      #FFFFFF;

    --font-head:  'Barlow Condensed', Arial Narrow, Arial, sans-serif;
    --font-body:  'Barlow', Arial, sans-serif;

    --radius:     6px;
    --shadow:     0 2px 16px rgba(11,30,54,.10);
    --transition: .22s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.65;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ---------- Header ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(11,30,54,.12);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-link { display: flex; align-items: center; }

.logo {
    height: 48px;
    width: auto;
}

nav { display: flex; align-items: center; gap: 8px; }

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: .95rem;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy);
    background: var(--light);
}

.btn-contact {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .9rem;
    background: var(--blue);
    color: var(--white);
    padding: 9px 20px;
    border-radius: var(--radius);
    margin-left: 8px;
    transition: background var(--transition);
}

.btn-contact:hover { background: var(--blue-light); }

/* Burger (mobile) */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .22s, opacity .22s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 12px 0 16px;
    border-top: 1px solid var(--border);
    background: var(--white);
}

.mobile-nav.open { display: flex; }

.mobile-nav .nav-link,
.mobile-nav .btn-contact {
    width: 90%;
    margin: 4px auto;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--navy);
    color: var(--white);
    padding: 110px 0 0;
    overflow: hidden;
}

/* Grille technique en fond */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

/* Dégradé diagonal de profondeur */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,95,168,.25) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding-bottom: 80px;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(51,153,255,.35);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.01em;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255,255,255,.75);
    max-width: 560px;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .95rem;
    background: var(--blue-light);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius);
    transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: .95rem;
    color: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.3);
    padding: 12px 28px;
    border-radius: var(--radius);
    transition: border-color var(--transition), color var(--transition);
}

.btn-ghost:hover {
    border-color: var(--white);
    color: var(--white);
}

/* Bande de mots clés */
.hero-bar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 0;
    font-family: var(--font-head);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
}

.hero-bar .sep { color: rgba(255,255,255,.2); }

/* ---------- Sections génériques ---------- */
.section {
    padding: 80px 0;
}

.section.section-dark {
    background: var(--navy-mid);
    color: var(--white);
}

.section-header {
    margin-bottom: 44px;
}

.section-header.light h2,
.section-header.light .section-label { color: var(--white); }

.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 10px;
}

h2 {
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.15;
}

h3 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 0;
}

/* ---------- Cards (enjeux) ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.card-icon {
    width: 44px;
    height: 44px;
    color: var(--blue-light);
    margin-bottom: 16px;
}

.card p {
    font-size: .92rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ---------- Solution ---------- */
.solution-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.solution-text p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 16px;
    max-width: 560px;
}

.solution-list {
    list-style: none;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.solution-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .97rem;
    color: rgba(255,255,255,.85);
}

.check {
    width: 22px;
    height: 22px;
    background: var(--blue-light);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Badge Deep Tech */
.solution-badge {
    flex-shrink: 0;
}

.badge-inner {
    width: 160px;
    height: 160px;
    border: 2px solid rgba(51,153,255,.35);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    background: rgba(42,127,212,.1);
}

.badge-label {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.badge-line,
.badge-location {
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 500;
    color: rgba(255,255,255,.55);
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- CTA bande ---------- */
.section-cta {
    background: var(--light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 36px 0;
}

.cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-row p {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--navy);
}

/* ---------- Actualités ---------- */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--blue-light);
    border-radius: var(--radius);
    padding: 28px 32px;
    transition: box-shadow var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow);
}

.news-card h2 {
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.news-card p {
    color: var(--text-muted);
    font-size: .97rem;
    margin-bottom: 10px;
}

.news-card p:last-child { margin-bottom: 0; }

.news-date {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue-light);
    background: rgba(42,127,212,.08);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* Page actualités — titre h1 */
.page-hero {
    background: var(--navy);
    color: var(--white);
    padding: 60px 0;
}

.page-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
}

.page-hero p {
    color: rgba(255,255,255,.65);
    margin-top: 10px;
    font-size: 1rem;
}

/* ---------- Footer ---------- */
footer {
    background: var(--navy);
    color: rgba(255,255,255,.7);
    padding: 40px 0 28px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    height: 44px;
    width: auto;
    margin-bottom: 8px;
    filter: brightness(0) invert(1);
    opacity: .85;
}

.footer-tagline {
    font-size: .82rem;
    color: rgba(255,255,255,.4);
    letter-spacing: .04em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: .9rem;
    color: rgba(255,255,255,.6);
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
    text-align: right;
}

.footer-copy p {
    font-size: .82rem;
    color: rgba(255,255,255,.4);
    margin-bottom: 4px;
}

.footer-copy a { color: rgba(255,255,255,.55); }
.footer-copy a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    nav { display: none; }
    .burger { display: flex; }

    .hero { padding: 70px 0 0; }
    .hero-bar { gap: 12px; font-size: .78rem; overflow-x: auto; white-space: nowrap; }

    .solution-layout {
        grid-template-columns: 1fr;
    }

    .solution-badge { display: none; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-copy { text-align: left; }

    .cta-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .cards-grid { grid-template-columns: 1fr; }
}
