/* Tokens de base — identité logo (marine + orange) */
:root {
    --bg-primary: #F3F6FB;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #E6EDF6;
    --text-primary: #10203D;
    --text-secondary: #5A6B86;
    --accent-primary: #F08A1C;
    --accent-secondary: #0C2F6B;
    --border-color: #D5DEEC;
    --shadow: rgba(8, 30, 72, 0.12);
    --hover-bg: #EAF0F8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Navigation */
.navbar {
    background-color: var(--bg-secondary);
    padding: 0.6rem 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand img,
.nav-brand .logo-img,
.nav-brand a img,
.logo-img {
    height: 64px !important;
    max-height: 64px !important;
    width: auto !important;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 0.8rem;
}

.footer-logo img {
    height: 72px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: 0.3s;
}

.lang-selector select {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #2196F3; /* Bleu pour les boutons */
    color: white;
}

.btn-primary:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

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

.btn-secondary:hover {
    background: #1976D2;
}

/* Info Cards */
.info-cards {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.info-cards .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid var(--border-color);
}

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

.card i {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-primary);
}

/* Services */
.services {
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.service-item:hover {
    background: var(--bg-tertiary);
    transform: translateY(-5px);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.service-item h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Pricing */
.pricing {
    background: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.pricing-card h3 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-primary);
}

/* Reviews */
.reviews {
    background: var(--bg-primary);
}

.reviews-container {
    text-align: center;
}

.google-reviews {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
}

.google-reviews iframe {
    border-radius: 10px;
}

/* Contact */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info i {
    color: var(--accent-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 40px 0 20px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Auth Pages */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-primary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form input {
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: inherit;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.auth-form label {
    color: var(--text-secondary);
    margin-bottom: -0.5rem;
}

.auth-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-form .checkbox-group input[type="checkbox"] {
    width: auto;
}

.auth-form .links {
    text-align: center;
    margin-top: 1rem;
}

.auth-form .links a {
    color: var(--accent-primary);
    text-decoration: none;
}

.auth-form .links a:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.alert-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

/* Products Page */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.product-card h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.product-card .description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.product-card .price-info {
    margin-top: 1.5rem;
}

.product-card .base-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.product-card .extra-options {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-card .extra-options h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.product-card .extra-options p {
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

/* Dashboard */
.dashboard {
    padding: 2rem 0;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.dashboard-card h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

/* Badges de rôles */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.role-admin {
    background: #f44336;
    color: white;
}

.role-moderateur {
    background: #ff9800;
    color: white;
}

.role-helper {
    background: #4CAF50;
    color: white;
}

.role-user {
    background: #757575;
    color: white;
}

/* Responsive */
@media (max-width: 1100px) {
    .nav-menu {
        gap: 0.8rem;
        font-size: 0.92rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

