/*
Theme Name: Convoyeo Premium Theme
Theme URI: https://convoyeo.fr
Author: Convoyeo
Description: Thème WordPress complet, moderne et 100% responsive pour service de convoyage automobile. Supporte l'éditeur de blocs Gutenberg et évite les écrans blancs.
Version: 1.2.0
License: GPLv2 or later
Text Domain: convoyeo
*/

/* ========================================= */
/* VARIABLES & BASE SETTINGS                 */
/* ========================================= */
:root {
    --primary-blue: #0b1d3a;
    --primary-blue-light: #163261;
    --secondary-cyan: #00b4d8;
    --secondary-cyan-dark: #0092b0;
    --accent-orange: #ff7f50;
    --accent-orange-hover: #e86b3f;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.bg-light { background-color: var(--light-gray); }
.bg-primary { background-color: var(--primary-blue); }
.text-white { color: var(--white) !important; }

/* Typographie & Contenu pour pages standards WP */
.page-content-wrapper { padding: 160px 0 80px; min-height: 60vh; }
.page-content-wrapper p { margin-bottom: 20px; font-size: 16px; color: #444; }
.page-content-wrapper h1, .page-content-wrapper h2, .page-content-wrapper h3 { margin-top: 30px; margin-bottom: 20px; color: var(--primary-blue); }
.page-content-wrapper ul { list-style: disc; margin-left: 20px; margin-bottom: 20px; }
.page-content-wrapper li { margin-bottom: 8px; }

.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.subtitle { color: var(--secondary-cyan); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 10px; }
.section-title { color: var(--primary-blue); font-size: 36px; font-weight: 800; margin-bottom: 15px; }
.divider { height: 4px; width: 60px; background-color: var(--secondary-cyan); margin: 0 auto; border-radius: 2px; }
.light-divider { background-color: var(--accent-orange); }
.section-header.light .subtitle { color: var(--accent-orange); }

.btn { display: inline-block; padding: 12px 24px; border-radius: 6px; font-weight: 600; font-size: 14px; cursor: pointer; transition: var(--transition); border: 2px solid transparent; text-align: center; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-cyan { background-color: var(--secondary-cyan); color: var(--white); }
.btn-cyan:hover { background-color: var(--secondary-cyan-dark); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3); }
.btn-outline { border-color: var(--primary-blue); color: var(--primary-blue); background: transparent; }
.btn-outline:hover { background-color: var(--primary-blue); color: var(--white); }
.btn-outline-white { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-white:hover { background-color: var(--white); color: var(--primary-blue); }

/* Header Navbar */
header#main-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 50px; background-color: var(--white); box-shadow: var(--shadow-sm); position: fixed; width: 100%; top: 0; z-index: 1000; transition: var(--transition); }
header#main-header.scrolled { padding: 10px 50px; box-shadow: var(--shadow-md); }
.logo { font-size: 28px; font-weight: 800; color: var(--primary-blue); display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--secondary-cyan); font-size: 32px; }
.menu-toggle { display: none; font-size: 28px; color: var(--primary-blue); cursor: pointer; }
.nav-menu { display: flex; align-items: center; gap: 30px; }
nav ul { display: flex; gap: 25px; font-size: 14px; font-weight: 600; color: var(--primary-blue); list-style: none; margin: 0; padding: 0; }
nav ul li a { position: relative; padding-bottom: 5px; transition: var(--transition); }
nav ul li a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--secondary-cyan); transition: var(--transition); }
nav ul li a:hover { color: var(--secondary-cyan); }
nav ul li a:hover::after { width: 100%; }
.header-actions { display: flex; gap: 15px; align-items: center; }

/* Hero Section */
.hero { background: linear-gradient(rgba(11, 29, 58, 0.8), rgba(11, 29, 58, 0.8)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat; color: var(--white); padding: 180px 20px 120px; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; margin-top: 0; }
.hero-content { max-width: 800px; animation: fadeIn 1s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero h1 { font-size: 52px; font-weight: 800; margin-bottom: 25px; line-height: 1.2; }
.hero p { font-size: 20px; margin-bottom: 40px; line-height: 1.6; color: #e0e0e0; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* Services Section */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.service-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); height: 100%; }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.service-img { position: relative; height: 180px; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.service-card:hover .service-img img { transform: scale(1.05); }
.service-icon { position: absolute; bottom: -20px; right: 20px; width: 50px; height: 50px; background: var(--secondary-cyan); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; border: 4px solid var(--white); }
.service-content { padding: 30px 20px; }
.service-content h3 { font-size: 18px; color: var(--primary-blue); margin-bottom: 15px; font-weight: 700; }
.service-content p { font-size: 14px; color: var(--text-muted); }

/* Steps Section */
.steps-wrapper { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.step-card { text-align: center; flex: 1; padding: 20px; }
.step-icon { position: relative; width: 90px; height: 90px; background: var(--light-gray); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; transition: var(--transition); }
.step-card:hover .step-icon { background: var(--primary-blue); color: var(--white); transform: scale(1.1); }
.step-icon i { font-size: 35px; color: var(--secondary-cyan); }
.step-card:hover .step-icon i { color: var(--white); }
.step-number { position: absolute; top: 0; right: 0; width: 30px; height: 30px; background: var(--accent-orange); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; border: 3px solid var(--white); }
.step-card h3 { font-size: 18px; color: var(--primary-blue); margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text-muted); }
.step-arrow { color: var(--medium-gray); font-size: 24px; }

/* Features Section */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature-item { text-align: center; padding: 30px 20px; background: var(--primary-blue-light); border-radius: 10px; transition: var(--transition); }
.feature-item:hover { transform: translateY(-10px); background: #1a3c75; }
.feature-icon { width: 70px; height: 70px; background: rgba(0, 180, 216, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.feature-icon i { font-size: 30px; color: var(--secondary-cyan); }
.feature-item h4 { font-size: 18px; margin-bottom: 15px; color: var(--white); }
.feature-item p { font-size: 14px; color: #b0c4de; }

/* Reviews Section */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.review-card { background: var(--white); padding: 40px 30px; border-radius: 10px; box-shadow: var(--shadow-sm); position: relative; transition: var(--transition); }
.review-card:hover { box-shadow: var(--shadow-md); }
.stars { color: #ffc107; margin-bottom: 20px; font-size: 14px; }
.review-text { font-style: italic; font-size: 15px; color: var(--text-muted); margin-bottom: 30px; line-height: 1.8; }
.reviewer-info { display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--medium-gray); padding-top: 20px; }
.reviewer-avatar { width: 50px; height: 50px; background: var(--light-gray); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 25px; color: var(--secondary-cyan); }
.reviewer-info h4 { font-size: 16px; color: var(--primary-blue); margin-bottom: 2px; }
.reviewer-info span { font-size: 12px; color: var(--accent-orange); font-weight: 600; }

/* Footer Section */
footer { background-color: var(--primary-blue); color: var(--white); }
.footer-top { padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-logo { color: var(--white); margin-bottom: 20px; display: inline-block; }
.footer-desc { color: #b0c4de; font-size: 14px; margin-bottom: 25px; max-width: 300px; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--transition); }
.social-icons a:hover { background: var(--secondary-cyan); transform: translateY(-3px); }
.footer-col h4 { font-size: 18px; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--secondary-cyan); }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: #b0c4de; font-size: 14px; transition: var(--transition); display: flex; align-items: center; gap: 10px; }
.footer-links a i { font-size: 10px; color: var(--secondary-cyan); }
.footer-links a:hover { color: var(--secondary-cyan); transform: translateX(5px); }
.contact-col ul li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; color: #b0c4de; font-size: 14px; }
.contact-col ul li i { color: var(--secondary-cyan); font-size: 18px; margin-top: 2px; }
.footer-bottom { background: #071326; padding: 20px 0; text-align: center; }
.footer-bottom p { color: #b0c4de; font-size: 14px; }

/* Responsive Grid / Breakpoints */
@media (max-width: 1200px) {
    .services-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
    .hero h1 { font-size: 42px; }
    .steps-wrapper { flex-wrap: wrap; gap: 30px; justify-content: center; }
    .step-arrow { display: none; }
    .step-card { flex: 0 0 calc(50% - 30px); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    header#main-header { padding: 15px 20px; }
    header#main-header.scrolled { padding: 15px 20px; }
    .menu-toggle { display: block; }
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); padding: 30px 20px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); border-top: 1px solid var(--light-gray); align-items: flex-start; }
    .nav-menu.active { display: flex; }
    nav { width: 100%; }
    nav ul { flex-direction: column; gap: 20px; }
    nav ul li a { display: block; width: 100%; font-size: 16px; }
    .header-actions { flex-direction: column; width: 100%; margin-top: 20px; align-items: stretch; }
    .hero { padding: 140px 20px 80px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .section { padding: 60px 0; }
    .section-title { font-size: 28px; }
    .services-grid, .features-grid, .reviews-grid { grid-template-columns: 1fr; }
    .step-card { flex: 0 0 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .social-icons { justify-content: center; }
    .footer-links a { justify-content: center; }
    .contact-col ul li { flex-direction: column; align-items: center; text-align: center; gap: 5px; }
}
