/* --- VARIABLES --- */
:root {
    --primary: #1a1a4e; /* Bleu marine Malabar */
    --secondary: #d81b60; /* Rouge/Fuchsia Malabar */
    --odoo-purple: #714B67; /* Violet officiel Odoo */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-light: #f9f9f9;
    --white: #ffffff;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter Tight', sans-serif;
    line-height: 1.1;
}

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

.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary); }

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--primary);
    font-weight: 700;
}

.text-white { color: var(--white); }

/* --- NAVBAR & LOGOS --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

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

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--secondary); }

.btn-nav {
    background: var(--secondary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 5px;
}

.btn-nav:hover { background: #b0144e !important; }

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, rgba(26, 26, 78, 0.85), rgba(26, 26, 78, 0.7)), url('images/odoo-hero-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.hero-content .highlight { color: var(--secondary); }

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--secondary); color: var(--white); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--primary); }
.btn-block { width: 100%; }

/* --- GRIDS & CARDS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--secondary);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.icon-red { font-size: 2.5rem; color: var(--secondary); margin-bottom: 20px; }
.card h3 { margin-bottom: 15px; color: var(--primary); }

/* --- PRESENTATION SECTION (Fond Blanc explicite) --- */
.odoo-presentation {
    background-color: var(--white); /* Fond blanc */
    padding: 100px 0;
}

.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.presentation-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.1;
}

.presentation-desc {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.presentation-desc strong {
    color: var(--primary);
    font-weight: 700;
}

.presentation-list {
    list-style: none;
    margin: 30px 0;
}

.presentation-list li {
    font-size: 1.05rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}

.presentation-list li i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.presentation-image {
    text-align: center;
}

.presentation-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

/* --- SOLUTIONS (Réalisations) --- */
.section-intro {
    text-align: center;
    color: #666;
    margin-top: -20px;
    margin-bottom: 50px;
    font-size: 1.05rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 280px;
    cursor: pointer;
}

.flip-card.fade-in {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 15px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flip-card-front {
    background: var(--white);
    border-top: 5px solid var(--odoo-purple);
}

.flip-card-front .solution-icon {
    font-size: 2.5rem;
    color: var(--odoo-purple);
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.flip-card:hover .flip-card-front .solution-icon {
    transform: scale(1.1);
}

.flip-card-front h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.client-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.flip-hint {
    font-size: 0.75rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

.flip-hint i {
    animation: spin 2s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.flip-card-back {
    background: linear-gradient(135deg, var(--primary), #2a2a6e);
    color: var(--white);
    transform: rotateY(180deg);
    border: 2px solid var(--odoo-purple);
}

.flip-card-back h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.flip-card-back p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

.flip-card-cta .flip-card-front {
    background: var(--bg-light);
    border: 2px dashed #ccc;
    border-top: 5px solid var(--secondary);
}

.flip-card-cta .flip-card-front .solution-icon {
    color: var(--secondary);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.85rem;
    margin-top: 15px;
    background: var(--secondary);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    font-family: 'Inter', sans-serif;
}

.btn-small:hover {
    background: #fff;
    color: var(--secondary);
}

/* --- WHY US --- */
.feature { text-align: center; }

/* --- CONTACT --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    color: var(--white);
}

.contact-info h3 { margin-bottom: 20px; font-size: 1.5rem; }

.contact-info ul {
    list-style: none;
    margin-top: 30px;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start; /* Aligne l'icône en haut pour le texte multi-lignes */
    gap: 15px;
}

.contact-info i { color: var(--secondary); font-size: 1.2rem; margin-top: 5px; }

.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 10px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--secondary);
}

/* --- FOOTER & LOGOS --- */
footer {
    background: #0f0f2d;
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.malabar-footer-logo { height: 30px; width: auto; }
.footer-sep { color: #555; font-size: 1.2rem; }
.odoo-footer-logo { height: 20px; width: auto; opacity: 0.8; }

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

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

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

/* --- RESPONSIVE (MOBILE) --- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
    }

    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    
    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    
    .presentation-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .presentation-text h2 { font-size: 2rem; }
    .presentation-list li { justify-content: center; }
    .presentation-image { order: -1; }
    
    .contact-grid { grid-template-columns: 1fr; }
    .section { padding: 50px 0; }
    .flip-card { height: 260px; }
    .flip-card-back p { font-size: 0.85rem; }
}