/* ============================================
   Barriere de Securite - Style Principal
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* --- Variables --- */
:root {
    --blue: #1E40AF;
    --blue-dark: #1A3590;
    --blue-light: #3B5FC9;
    --green: #15803D;
    --green-light: #22C55E;
    --white: #FFFFFF;
    --gray-light: #F3F4F6;
    --gray: #D1D5DB;
    --gray-medium: #9CA3AF;
    --text-dark: #111827;
    --text-muted: #4B5563;
    --orange: #EA580C;
    --orange-light: #FB923C;
    --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: .3s ease;
}

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

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    line-height: 1.3;
    color: var(--text-dark);
}

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

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

ul, ol { list-style: none; }

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 3px solid var(--blue);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo svg { width: 42px; height: 42px; }

.logo-text {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--blue);
    line-height: 1.2;
}

.logo-text small {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: .7rem;
    color: var(--text-muted);
}

/* Nav */
.main-nav ul {
    display: flex;
    gap: 4px;
}

.main-nav a {
    display: block;
    padding: 8px 14px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--blue);
    color: var(--white);
}

/* Burger */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    border-radius: 3px;
    transition: all var(--transition);
}

.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}

.hero h1 {
    font-size: 2.6rem;
    color: var(--white);
    margin-bottom: 18px;
    max-width: 700px;
}

.hero p {
    font-size: 1.15rem;
    opacity: .9;
    max-width: 600px;
    margin-bottom: 28px;
    line-height: 1.8;
}

.hero-small {
    padding: 50px 0;
}

.hero-small h1 {
    font-size: 2rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-white {
    background: var(--white);
    color: var(--blue);
}

.btn-white:hover {
    background: var(--gray-light);
    color: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-blue {
    background: var(--blue);
    color: var(--white);
}

.btn-blue:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-green {
    background: var(--green);
    color: var(--white);
}

.btn-green:hover {
    background: #116B33;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 70px 0;
}

.section-alt {
    background: var(--gray-light);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 16px;
    color: var(--blue);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
}

/* ============================================
   CARDS
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition);
}

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

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 24px;
}

.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--blue);
}

.card-body p {
    color: var(--text-muted);
    font-size: .92rem;
    margin-bottom: 16px;
}

.card-link {
    font-weight: 600;
    font-size: .9rem;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-link:hover { gap: 10px; }

/* ============================================
   INFO BOXES / TIPS
   ============================================ */
.tip-box {
    background: #EFF6FF;
    border-left: 4px solid var(--blue);
    padding: 20px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 28px 0;
}

.tip-box.warning {
    background: #FFF7ED;
    border-left-color: var(--orange);
}

.tip-box.success {
    background: #F0FDF4;
    border-left-color: var(--green);
}

.tip-box-title {
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-box p {
    font-size: .92rem;
    color: var(--text-muted);
}

/* ============================================
   FEATURES / ICONS
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.feature-icon svg { width: 30px; height: 30px; }

.feature-item h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: .88rem;
}

/* ============================================
   CONTENT PAGE LAYOUT
   ============================================ */
.content-page {
    padding: 60px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
}

.content-main h2 {
    font-size: 1.6rem;
    color: var(--blue);
    margin: 36px 0 14px;
}

.content-main h3 {
    font-size: 1.25rem;
    margin: 28px 0 12px;
}

.content-main p {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: .95rem;
}

.content-main ul {
    margin: 16px 0;
    padding-left: 0;
}

.content-main ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: .95rem;
}

.content-main ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
}

.content-main img {
    border-radius: var(--radius-lg);
    margin: 24px 0;
    box-shadow: var(--shadow);
}

/* Sidebar */
.sidebar {}

.sidebar-box {
    background: var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
}

.sidebar-box h4 {
    font-size: 1.05rem;
    color: var(--blue);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blue);
}

.sidebar-box ul li {
    margin-bottom: 8px;
}

.sidebar-box ul li a {
    font-size: .9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.sidebar-box ul li a:hover { color: var(--blue); }

.sidebar-box ul li a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    background: linear-gradient(135deg, var(--green) 0%, #0E6B30 100%);
    padding: 40px 0;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 4px;
}

.stat-item p {
    font-size: .88rem;
    opacity: .85;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
    max-width: 640px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray);
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: .92rem;
    transition: border-color var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--text-dark);
    color: var(--gray-medium);
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-col h4 {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-col p {
    font-size: .85rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--gray-medium);
    font-size: .85rem;
    transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-about {
    font-size: .85rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--blue);
}

.footer-social svg { width: 18px; height: 18px; fill: var(--white); }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: .8rem;
}

.footer-bottom a { color: var(--gray-medium); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================
   404 PAGE
   ============================================ */
.page-404 {
    text-align: center;
    padding: 100px 0;
}

.page-404 h1 {
    font-size: 6rem;
    color: var(--blue);
    margin-bottom: 10px;
}

.page-404 h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.page-404 p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .content-wrapper { grid-template-columns: 1fr; }
    .sidebar { order: -1; }
}

@media (max-width: 768px) {
    .hero { padding: 50px 0; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .section { padding: 50px 0; }
    .section-title { font-size: 1.5rem; }

    .burger { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 3px solid var(--blue);
        box-shadow: var(--shadow-lg);
        padding: 12px;
    }

    .main-nav.open { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: 2px;
    }

    .main-nav a { padding: 12px 16px; }

    .cards-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .content-main h2 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .logo-text { font-size: 1rem; }
    .page-404 h1 { font-size: 4rem; }
}
