@import url('https://fonts.googleapis.com/css2?family=Anton:wght@300;400;500;600;700&display=swap');

:root {
    --color-primary: #C8CFD9;
    --color-secondary: #ECE6E6;
    --color-accent: #DBAC90;
    --color-light: #FFE8CE;
    --color-dark: #8A8685;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Anton', sans-serif;
    font-weight: 100;
}

/* Header et Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

/* Section Hero */
#hero {
    background-color: var(--color-primary);
    background-image: url('/plandevente_admin/images/photo-accueil.jpeg'); /* À remplir avec le chemin de l'image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 5%;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Boutons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border-color: transparent;
    font-weight: 500;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    background-color: #c99b7f;
}

.button2 {
    width: 20%;
}

/* Section Avantages */
#avantages {
    padding: 5rem 5%;
    background-color: var(--color-secondary);
}

#avantages h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-dark);
}

.avantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.avantage-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.avantage-card:hover {
    transform: translateY(-5px);
}

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

/* Section Bénéfices */
#benefices {
    padding: 5rem 5%;
    background-color: white;
    position: relative;
    overflow: hidden;
}

#benefices::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-light) 0%, transparent 100%);
    opacity: 0.5;
    z-index: 0;
}

#benefices h2 {
    text-align: center;
    color: var(--color-dark);
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

#benefices h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.benefices-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 4rem;
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.benefice-item {
    background-color: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 25vw;
}

.benefice-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--color-accent) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.benefice-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.benefice-item:hover::before {
    opacity: 0.1;
}

.benefice-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.4s ease;
}

.benefice-icon i {
    color: var(--color-accent);
}

.benefice-item:hover .benefice-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefice-item h3 {
    color: var(--color-dark);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.benefice-item:hover h3 {
    color: var(--color-accent);
}

.benefice-item p {
    color: var(--color-dark);
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.benefice-item:hover p {
    opacity: 1;
}

/* Animation d'apparition des cartes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefice-item {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.benefice-item:nth-child(1) { animation-delay: 0.1s; }
.benefice-item:nth-child(2) { animation-delay: 0.2s; }
.benefice-item:nth-child(3) { animation-delay: 0.3s; }
.benefice-item:nth-child(4) { animation-delay: 0.4s; }
.benefice-item:nth-child(5) { animation-delay: 0.5s; }

/* Section Contact */
#contact {
    padding: 5rem 5%;
    background-color: var(--color-light);
}

#contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-dark);
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form input,
#contact-form textarea {
    padding: 1rem;
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    font-family: inherit;
}

#contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Section Méthode */
#methode {
    padding: 6rem 5%;
    background-color: var(--color-primary);
    position: relative;
    overflow: hidden;
    text-align: center;
}

#methode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    z-index: 0;
}

#methode h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--color-dark);
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.methode-container {
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.methode-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.methode-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.methode-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.methode-item:hover::before {
    transform: scaleY(1);
}

.methode-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.2;
    margin-right: 2rem;
    line-height: 1;
    transition: all 0.4s ease;
}

.methode-item:hover .methode-number {
    opacity: 0.4;
    transform: scale(1.1);
}

.methode-content {
    flex: 1;
}

.methode-content h3 {
    color: var(--color-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.methode-item:hover .methode-content h3 {
    color: var(--color-accent);
}

.methode-content p {
    color: var(--color-dark);
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Animation d'apparition */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.methode-item {
    animation: slideInRight 0.6s ease-out forwards;
    opacity: 0;
}

.methode-item:nth-child(1) { animation-delay: 0.2s; }
.methode-item:nth-child(2) { animation-delay: 0.4s; }
.methode-item:nth-child(3) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 900px) {
    .benefices-container {
        flex-direction: column;
        margin-top: 2.5rem;
    }

    .benefice-item {
        width: 60vw;
    }

    .button2 {
        width: 50%;
    }
}

@media (max-width: 768px) {
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .avantages-grid {
        grid-template-columns: 1fr;
    }
    
    .benefices-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    #benefices h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .benefice-item {
        padding: 2rem 1.5rem;
    }
    
    .benefice-icon {
        font-size: 2.5rem;
    }
    
    .benefice-item h3 {
        font-size: 1.3rem;
    }
    
    .benefice-item p {
        font-size: 1rem;
    }

    #methode {
        padding: 4rem 5%;
    }

    .methode-item {
        flex-direction: column;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .methode-number {
        margin-right: 0;
        margin-bottom: 1rem;
        font-size: 3rem;
    }

    .methode-content h3 {
        font-size: 1.3rem;
    }

    .methode-content p {
        font-size: 1rem;
    }

    .methode-item:hover {
        transform: translateX(5px);
    }
} 