/* Styles specific to the home page */
.hero-background {
    position: fixed;
    left: 0;
    margin-top: -1%;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-image: url('image/Acceuil/imagechatgpt.jpeg?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    text-align: center;
    color: white;
    padding: 1rem;
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    background-color: rgb(209, 208, 208);
    margin-top: 7vh;
    border-radius: 2rem 2rem 0 0;
    padding: 12rem 0 4rem;
    z-index: 2;
}

/* Stats Section */
.stats-section {
    margin-top: -8rem;
    padding: 0 1rem;
}

.stats-container {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    background-color: rgb(28, 25, 23);
    color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-card i {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgb(214, 211, 209);
}

/* Services Section */
.services-section {
    max-width: 80rem;
    margin: 0 auto;
    padding: 6rem 1rem;
}

.services-section h2 {
    font-size: 1.875rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
}

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

.service-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.service-card i {
    width: 3rem;
    height: 3rem;
    color: rgb(28, 25, 23);
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: rgb(87, 83, 78);
}

/* Guarantee Section */
.guarantee-section {
    background-color: rgb(209, 208, 208);
    padding: 4rem 0;
}

.guarantee-section h2 {
    font-size: 1.875rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
}

.guarantee-container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.guarantee-icon {
    flex-shrink: 0;
    width: 8rem;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.guarantee-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guarantee-content {
    flex-grow: 1;
}

.guarantee-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgb(28, 25, 23);
}

.guarantee-content p {
    color: rgb(87, 83, 78);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.guarantee-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgb(28, 25, 23);
}

.guarantee-feature i {
    width: 1.5rem;
    height: 1.5rem;
    color: rgb(28, 25, 23);
}

/* Animations */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out;
}

.animate-slide-up-delay {
    animation: slide-up 0.8s ease-out 0.2s both;
}

/* Responsive Design */

@media (max-width: 1024px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .guarantee-container {
        flex-direction: column;
        text-align: center;
    }

    .guarantee-features {
        justify-items: center;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.25rem;
    }

    .guarantee-icon {
        width: 6rem;
        height: 6rem;
    }
}
/* ---- Mobile portrait (très petits téléphones) ---- */
@media (max-width: 360px) {
    .hero-background {
        position: fixed;
        left: 0;
        margin-top: 12%;
        z-index: 1;
        width: 100%;
        height: 63vh;
        background-image: url('image/Acceuil/imagechatgpt.jpeg?auto=format&fit=crop&q=80');
        background-size: contain;
        background-position: top center;
        background-repeat: no-repeat;
    }
    .hero {
        height: 45vh;
    }
}

/* ---- Mobile standard (jusqu'à iPhone 12/13/14) ---- */
@media (min-width: 361px) and (max-width: 480px) {
    .hero-background {
        position: fixed;
        left: 0;
        margin-top: 3vh;
        z-index: 1;
        width: 100%;
        height: 63vh;
        background-image: url('image/Acceuil/imagechatgpt.jpeg?auto=format&fit=crop&q=80');
        background-size: contain;
        background-position: top center;
        background-repeat: no-repeat;
    }
    .hero {
        height: 27.5vh;
    }
}

/* ---- Mobile grand format (phablets) ---- */
@media (min-width: 481px) and (max-width: 767px) {
    .hero-background {
        position: fixed;
        left: 0;
        margin-top: 2vh;
        z-index: 1;
        width: 100%;
        height: 55vh;
        background-image: url('image/Acceuil/imagechatgpt.jpeg?auto=format&fit=crop&q=80');
        background-size: contain;
        background-position: top center;
        background-repeat: no-repeat;
    }
    .hero {
        height: 35vh;
    }
}

/* ---- Tablette portrait ---- */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-background {
        position: fixed;
        left: 0;
        margin-top: -1%;
        z-index: 1;
        width: 100%;
        height: 63vh;
        background-image: url('image/Acceuil/imagechatgpt.jpeg?auto=format&fit=crop&q=80');
        background-size: cover;
        background-position: top center;
        background-repeat: no-repeat;
    }
    
    .hero {
        height: 60vh;
    }
}

/* ---- Tablette paysage / petits laptops ---- */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-background {
        position: fixed;
        left: 0;
        margin-top: -1%;
        z-index: 1;
        width: 100%;
        height: 75vh;
        background-image: url('image/Acceuil/imagechatgpt.jpeg?auto=format&fit=crop&q=80');
        background-size: cover;
        background-position: top center;
        background-repeat: no-repeat;
    }
    .hero {
        height: 70vh;
    }
}

/* ---- Ordinateurs standard ---- */
@media (min-width: 1200px) and (max-width: 1599px) {
    .hero {
        height: 80vh;
    }
}

/* ---- Grand écran (Full HD et +) ---- */
@media (min-width: 1600px) and (max-width: 1919px) {
    .hero {
        height: 90vh;
    }
}

/* ---- Ultra-large (2K / 4K) ---- */
@media (min-width: 1920px) {
    .hero {
        height: 100vh;
    }
}



