/* Importation de la police Poppins depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --bleu-eurochef: #0053A1; 
    --jaune-eurochef: #FFD100; 
    --texte-sombre: #1D1D1B; 
    --fond-gris: #f4f4f4;
}

body {
    font-family: 'Poppins', sans-serif; 
    font-weight: 300; 
    margin: 0;
    padding: 0;
    color: var(--texte-sombre);
}

h1, h2, h3 {
    font-weight: 700; 
}

/* EN-TÊTE (HEADER) */
header {
    background-color: white;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header img.logo {
    height: 70px;
}

nav a {
    text-decoration: none;
    color: var(--texte-sombre);
    font-weight: 600; 
    margin: 0 15px;
    font-size: 0.95em;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--bleu-eurochef);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-number {
    font-weight: 700; 
    color: var(--bleu-eurochef);
    font-size: 1.1em;
}

/* Nouveau logo EuroChef dans l'en-tête */
.logo-eurochef-header {
    height: 45px; 
    width: auto;
    object-fit: contain;
    margin-left: 10px;
}

/* SECTION HERO (IMAGE DE FOND) */
.hero {
    background-image: linear-gradient(rgba(0, 83, 161, 0.7), rgba(0, 0, 0, 0.7)), url('ma-photo-cuisine.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 20px;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    color: white;
    font-size: 3em;
    margin-bottom: 15px;
    max-width: 900px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2em;
    max-width: 700px;
    margin-bottom: 30px;
}

/* BOUTON */
.btn {
    display: inline-block;
    background-color: var(--jaune-eurochef); 
    color: var(--bleu-eurochef); 
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700; 
    border-radius: 30px; 
    font-size: 1.1em;
    transition: transform 0.3s, background-color 0.3s;
}

.btn:hover {
    background-color: white;
    transform: translateY(-3px);
}

/* SECTION 20 ANS D'EXPERTISE */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.expertise-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.expertise-text {
    flex: 1;
    min-width: 300px;
}

.expertise-text h2 {
    color: var(--texte-sombre);
    font-size: 2em;
    margin-bottom: 20px;
}

.expertise-images {
    flex: 1;
    display: flex;
    gap: 20px;
    min-width: 300px;
}

.img-box {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* FOOTER */
footer {
    background-color: var(--bleu-eurochef); 
    color: white;
    text-align: center;
    padding: 40px 20px;
}

footer a.btn {
    margin-top: 20px;
}
/* =========================================
   SECTION PRESTATIONS - DESIGN EN CARTES
   ========================================= */

.services-grid {
    display: grid;
    /* Crée des colonnes qui s'adaptent automatiquement à la taille de l'écran */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--jaune-eurochef);
    transition: all 0.3s ease; /* Permet une animation fluide */
}

/* Effet interactif au passage de la souris */
.service-card:hover {
    transform: translateY(-10px); /* Soulève la carte de 10 pixels */
    box-shadow: 0 15px 40px rgba(0, 83, 161, 0.15); /* Accentue l'ombre */
    border-top: 5px solid var(--bleu-eurochef); /* Change la couleur de la barre */
}

.service-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1); /* Grossit légèrement l'icône au survol */
}

.service-card h3 {
    color: var(--bleu-eurochef);
    margin-bottom: 15px;
    font-size: 1.4em;
}

.service-card p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}
/* =========================================
   FOCUS MAINTENANCE PREVENTIVE
   ========================================= */

.maintenance-focus {
    background-color: var(--fond-gris);
    border-radius: 20px;
    padding: 50px;
    margin-top: 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 8px solid var(--bleu-eurochef);
}

.maintenance-header {
    text-align: center;
    margin-bottom: 40px;
}

.maintenance-header .badge {
    background-color: var(--jaune-eurochef);
    color: var(--bleu-eurochef);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.maintenance-header h2 {
    color: var(--bleu-eurochef);
    font-size: 2.2em;
    margin: 15px 0;
}

.maintenance-header p {
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.maintenance-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.2s ease;
}

.feature-item:hover {
    transform: translateX(10px); /* Petit effet de glissement vers la droite au survol */
}

.feature-icon {
    font-size: 2.5em;
    line-height: 1;
}

.feature-text h4 {
    margin: 0 0 10px 0;
    color: var(--texte-sombre);
    font-size: 1.3em;
}

.feature-text p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}
/* =========================================
   ADAPTATION MOBILE & TABLETTE (RESPONSIVE)
   ========================================= */

@media screen and (max-width: 850px) {
    /* 1. Réorganisation de l'en-tête (Header) */
    header {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
        text-align: center;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav a {
        margin: 0 5px;
        font-size: 1em;
    }

    .header-right {
        justify-content: center;
        width: 100%;
    }

    /* 2. Réduction des textes géants */
    .hero {
        padding: 60px 15px;
        min-height: 300px;
    }

    .hero h1 {
        font-size: 2em; /* Titre plus petit sur mobile */
    }

    h2 {
        font-size: 1.6em !important;
    }

    /* 3. Ajustement des marges internes (paddings) des gros blocs */
    .maintenance-focus {
        padding: 25px;
    }

    .maintenance-features, .maintenance-content {
        flex-direction: column;
        gap: 20px;
    }
    
    /* 4. Ajustement du pied de page */
    footer {
        text-align: center;
    }
    
    footer div[style*="text-align: left"] {
        text-align: center !important;
        justify-content: center;
    }
}
/* =========================================
   BANDEAU URGENCE DÉPANNAGE
   ========================================= */

.urgence-banner {
    background-color: var(--jaune-eurochef);
    color: var(--bleu-eurochef);
    text-align: center;
    padding: 10px 15px;
    font-size: 1em;
    position: relative;
    z-index: 101; /* S'assure qu'il passe au-dessus du reste */
}

.urgence-banner strong {
    font-weight: 700;
}

.urgence-phone {
    color: white;
    background-color: var(--bleu-eurochef);
    text-decoration: none;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    margin-left: 10px;
    display: inline-block;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.urgence-phone:hover {
    transform: scale(1.05); /* Grossit légèrement au survol */
    background-color: #003b73; /* Bleu légèrement plus foncé */
}

/* Adaptation pour les petits écrans (mobiles) */
@media screen and (max-width: 600px) {
    .urgence-banner {
        font-size: 0.9em;
        line-height: 1.8;
    }
    
    .urgence-phone {
        margin-left: 0;
        margin-top: 5px;
        display: block; /* Fait passer le bouton en dessous du texte sur mobile */
        width: max-content;
        margin-left: auto;
        margin-right: auto;
    }
}
/* =========================================
   PREUVE SOCIALE : PARTENAIRES & TÉMOIGNAGES
   ========================================= */

/* Bandeau Partenaires */
.partners-band {
    background-color: var(--fond-gris);
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.partners-band p {
    margin: 0 0 15px 0;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-img {
    height: 40px; /* Ajustez la hauteur selon les proportions des logos */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(60%); /* Les logos apparaissent grisés par défaut */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.partner-img:hover {
    filter: grayscale(0%) opacity(100%); /* Retour à la couleur d'origine au survol */
    transform: scale(1.1);
}

/* Grille des témoignages */
.testimonials-section {
    margin-top: 60px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .stars {
    color: var(--jaune-eurochef);
    font-size: 1.2em;
    margin-bottom: 15px;
}

.testimonial-card .quote {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Pousse le nom de l'auteur vers le bas pour aligner les cartes */
}

.testimonial-card .author strong {
    color: var(--bleu-eurochef);
}

.testimonial-card .author span {
    font-size: 0.9em;
    color: #888;
}
/* Grille des témoignages */
.testimonials-section {
    margin-top: 60px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .stars {
    color: var(--jaune-eurochef);
    font-size: 1.2em;
    margin-bottom: 15px;
}

.testimonial-card .quote {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Pousse le nom de l'auteur vers le bas pour aligner les cartes */
}

.testimonial-card .author strong {
    color: var(--bleu-eurochef);
}

.testimonial-card .author span {
    font-size: 0.9em;
    color: #888;
}
/* =========================================
   SECTION RÉALISATIONS (PORTFOLIO)
   ========================================= */

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.realisation-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.realisation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 83, 161, 0.1); /* Ombre bleutée au survol */
}

.image-wrapper {
    position: relative;
    height: 220px;
    background-color: #f8f8f8; /* Fond gris en attendant que l'image charge */
}

.realisation-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-wrapper .tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--jaune-eurochef);
    color: var(--bleu-eurochef);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.realisation-content {
    padding: 25px;
}

.realisation-content h3 {
    margin: 0 0 5px 0;
    color: var(--bleu-eurochef);
    font-size: 1.4em;
}

.realisation-content .location {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 15px;
    font-weight: 600;
}

.realisation-content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}