/* ==========================================================================
   VARIABLES & BASE
   ========================================================================== */
:root {
    --primary-red: #d90429;
    --secondary-red: #ef233c;
    --dark-red: #8b0000;
    --text-dark: #222;
    --text-light: #333;
    --bg-white: rgba(255, 255, 255, 0.95);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-image: url('image/background.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    border-top: 6px solid;
    border-image: linear-gradient(to right, var(--dark-red), #ff4d4d) 1;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: rgba(248, 249, 250, 0.95);
    border-bottom: 1px solid rgba(231, 231, 231, 0.8);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container { display: flex; align-items: center; gap: 80px; }
.logo { height: 80px; }

nav ul { display: flex; gap: 25px; list-style: none; }
nav a { font-weight: 500; }
nav a:hover, nav a.active { color: var(--primary-red); }

.btn-rdv {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: white !important;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(217, 4, 41, 0.3);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-rdv:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(217, 4, 41, 0.5);
}

/* ==========================================================================
   LAYOUT GÉNÉRAL
   ========================================================================== */
main, section.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 40px 5%;
    background-color: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

h1, h2, h3 { color: var(--text-dark); margin-bottom: 20px; }
h2 { text-align: center; font-size: 2.2em; margin-bottom: 40px; }

hr {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, rgba(217, 4, 41, 0), rgba(217, 4, 41, 0.5), rgba(217, 4, 41, 0));
    margin: 50px 0;
}

/* ==========================================================================
   GRILLES ET CARTES
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }

.avantage, .feature-card {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avantage img { width: 30% !important; margin-bottom: 20px; }

/* Icônes Gradient Line */
.feature-card i, .service-item i {
    font-size: 3.5em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.service-item {
    background: #ffffff;
    border: 1px solid #eaeaea;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-item::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(to right, var(--primary-red), #ff4d4d);
    opacity: 0; transition: 0.3s;
}

.service-item:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(217, 4, 41, 0.1); }
.service-item:hover::before { opacity: 1; }
.service-item strong { display: block; margin-top: 20px; color: var(--primary-red); }

/* ==========================================================================
   CONTACT & FORMULAIRES
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.contact-info { background: #f8f9fa; padding: 30px; border-radius: 12px; border-left: 5px solid var(--primary-red); }
.info-block { margin-bottom: 25px; }
.info-block h3 { color: var(--primary-red); font-size: 1.2em; display: flex; align-items: center; gap: 8px; }

.social-links { list-style: none; }
.social-links a {
    display: inline-flex; align-items: center; gap: 10px; font-weight: bold;
    padding: 8px 15px; border-radius: 8px; background: #fff; border: 1px solid #eaeaea;
    width: 100%; margin-bottom: 10px;
}
.social-links a:hover { border-color: var(--primary-red); color: var(--primary-red); }

.contact-form { background: #fff; padding: 30px; border-radius: 12px; border: 1px solid #eaeaea; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; font-family: inherit;
}
.form-group input:focus { border-color: var(--primary-red); outline: none; }

/* ==========================================================================
   SPECIFIQUE INDEX (HERO & GROUPE)
   ========================================================================== */
.hero { padding: 80px 5%; text-align: center; background: rgba(255, 255, 255, 0.8); margin: 20px auto; max-width: 1100px; border-radius: 20px; }
.hero h1 { font-size: 3em; color: var(--primary-red); }

.group-section { background: linear-gradient(135deg, #f8f9fa, #ffffff); border-left: 8px solid var(--primary-red); margin: 40px auto; padding: 40px; border-radius: 15px; }
.fruit-link { color: var(--primary-red); font-weight: bold; text-decoration: underline; }

/* ==========================================================================
   NOTIFICATIONS & FOOTER
   ========================================================================== */
.notification {
    position: fixed; bottom: 30px; right: 30px; padding: 15px 25px; border-radius: 8px;
    color: white; font-weight: bold; z-index: 1000; transform: translateY(100px); opacity: 0; transition: 0.4s;
}
.notification.show { transform: translateY(0); opacity: 1; }
.notification.success { background-color: #28a745; }
.notification.error { background-color: #dc3545; }

footer { background-color: #222; color: #fff; text-align: center; padding: 30px 20px; margin-top: 50px; border-top: 3px solid var(--primary-red); }
footer a { color: #ff4d4d; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 20px; }
    nav ul { flex-wrap: wrap; justify-content: center; }
    .contact-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2em; }
    .logo-container { gap: 20px; }
}