/* ============================================================
   Colis Froid — site institutionnel
   Palette : bleu ColisFroid #165387, cyan froid, vert logo
   ============================================================ */

:root {
    --blue:        #165387;
    --blue-dark:   #0f3c63;
    --cyan:        #2ba6cb;
    --cyan-light:  #e8f4fa;
    --green:       #6cb33f;
    --ink:         #1c2733;
    --muted:       #5b6b7a;
    --line:        #e2e8ee;
    --bg:          #ffffff;
    --bg-alt:      #f5f8fb;
    --white:       #ffffff;
    --radius:      14px;
    --shadow:      0 10px 30px rgba(16, 60, 99, .10);
    --shadow-sm:   0 4px 14px rgba(16, 60, 99, .08);
    --maxw:        1140px;
    --font:        system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .6em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--blue); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* -------------------- Boutons -------------------- */
.btn {
    display: inline-block; padding: 13px 26px; border-radius: 40px;
    font-weight: 600; font-size: .98rem; cursor: pointer; border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* -------------------- Header / Nav -------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand-logo { height: 42px; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.site-nav a {
    display: block; padding: 8px 14px; color: var(--ink); font-weight: 500;
    border-radius: 8px; transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--cyan-light); color: var(--blue); text-decoration: none; }
.site-nav a.nav-cta { background: var(--blue); color: #fff; margin-left: 6px; }
.site-nav a.nav-cta:hover { background: var(--blue-dark); }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: 0;
    cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--blue); border-radius: 3px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* -------------------- Hero -------------------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 45%, var(--cyan) 120%);
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 45%),
        radial-gradient(circle at 15% 90%, rgba(255,255,255,.08), transparent 40%);
}
.hero-inner { position: relative; padding: 90px 20px 100px; max-width: 760px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; font-weight: 600; color: #cdeaf6; margin: 0 0 14px; }
.hero-title { font-size: clamp(2.1rem, 5vw, 3.4rem); color: #fff; margin: 0 0 20px; font-weight: 800; }
.hero-lead { font-size: 1.14rem; color: #eaf4fa; max-width: 620px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* -------------------- Stats -------------------- */
.stats { background: var(--blue-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 30px 20px; text-align: center; }
.stat { color: #fff; padding: 10px; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: #fff; }
.stat-label { display: block; font-size: .9rem; color: #b8d4e6; margin-top: 2px; }

/* -------------------- Sections -------------------- */
.section { padding: 78px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--cyan); margin: 0 0 10px; }
.section h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* Deux colonnes */
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.two-col-text p { color: var(--muted); }
.two-col-text h2 { margin-bottom: .4em; }

.check-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink); }
.check-list li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    width: 20px; height: 20px; background: var(--green); color: #fff;
    border-radius: 50%; font-size: .75rem; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

.visual-card {
    background: linear-gradient(150deg, var(--blue) 0%, var(--cyan) 100%);
    color: #fff; padding: 44px 36px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.visual-icon { font-size: 3rem; display: block; margin-bottom: 16px; }
.visual-quote { font-size: 1.15rem; font-style: italic; color: #fff; margin: 0; line-height: 1.5; }

.zone-list { background: #fff; padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.zone-list h3 { color: var(--blue); }

/* Cartes services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { font-size: 2.2rem; display: block; margin-bottom: 14px; }
.card h3 { font-size: 1.2rem; color: var(--blue); }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Engagements */
.engagements-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.engagement { padding: 28px 30px; border-left: 4px solid var(--cyan); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.section-alt .engagement { background: #fff; box-shadow: var(--shadow-sm); }
.engagement h3 { color: var(--blue); font-size: 1.15rem; }
.engagement p { color: var(--muted); margin: 0; }

/* -------------------- Contact -------------------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; }
.contact-info { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 38px 34px; }
.contact-info h3 { color: #fff; }
.contact-info p { color: #dbeaf4; margin: 0 0 18px; }
.contact-info strong { color: #fff; }
.contact-info a { color: #fff; text-decoration: underline; }

.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.req { color: #d33; }
.field input, .field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
    font: inherit; color: var(--ink); background: #fcfdfe; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-light);
}
.field textarea { resize: vertical; }
.field-error { display: block; color: #d33; font-size: .85rem; margin-top: 5px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 22px; font-weight: 500; }
.alert-success { background: #e7f6ec; color: #1a6b38; border: 1px solid #b6e3c6; }
.alert-error { background: #fdecec; color: #a12626; border: 1px solid #f3c2c2; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--ink); color: #c3ccd6; padding: 56px 0 0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.footer-logo { height: 46px; background: #fff; border-radius: 6px; padding: 6px 10px; margin-bottom: 14px; }
.footer-baseline { color: #fff; font-weight: 600; margin: 0 0 6px; }
.footer-since { color: #93a1ad; margin: 0; }
.footer-col h3 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.footer-col address { font-style: normal; margin: 0 0 16px; line-height: 1.6; }
.footer-col a { color: #cdeaf6; }
.footer-legal { color: #93a1ad; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer-bottom p { margin: 0; text-align: center; color: #8a97a3; font-size: .88rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; gap: 34px; }
    .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; inset: 68px 0 auto 0; background: #fff;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    .site-nav.open { max-height: 460px; }
    .site-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
    .site-nav li { width: 100%; }
    .site-nav a { padding: 14px 22px; border-radius: 0; }
    .site-nav a.nav-cta { margin: 8px 20px; border-radius: 8px; text-align: center; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .engagements-grid { grid-template-columns: 1fr; }
    .hero-inner { padding: 64px 20px 72px; }
}

@media (max-width: 480px) {
    .cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
    .hero-actions .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
