h1 {
    display: none;
}

body { 
    background-image: url('../images/allover-plain.jpg');
    background-size: cover;
    background-attachment: fixed; /* l'image reste fixe au scroll = continuité parfaite */
    background-position: center;
    background-color: #FFEFE6;
}

/* HERO */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* plus de background-image ici */
}

/* BULLES */
.chat-bubbles {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.chat-row {
    display: flex;
    align-items: flex-end;
    gap: 100px;
}

.chat-row-left  { justify-content: flex-start; }
.chat-row-right { justify-content: flex-end; }

.bubble {
    max-width: 55%;
    padding: 2rem 2.5rem;
    border-radius: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.bubble-pink {
    background-color: #FFD3EA;
    border-bottom-left-radius: 0.25rem; /* pointe bulle gauche */
}

.bubble-green {
    background-color: #2A5842;
    color: #FFEFE6;
    border-bottom-right-radius: 0.25rem; /* pointe bulle droite */
}

.hero-title {
    font-family: 'GillSans-UltraBold', sans-serif;
    font-weight: bold;
    font-size: 2.2rem;
    text-transform: uppercase;
    color: #2A5842;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-family: 'Americane-Regular', sans-serif;
    font-size: 1.1rem;
    color: #6EA14F;
}

.bubble-green p {
    font-family: 'Americane-Regular', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #FFEFE6;
}

.bubble {
    position: relative;
}

/* ÉTOILE */
.bubble-star {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    z-index: 2;
    pointer-events: none;
}

/* GIF */ 
.hero-gif {
    width: 230px;
    height: auto;
}

/* optionnel : ajustement position selon effet voulu */

.hero-gif-left {
    order: 0;
}

.hero-gif-right {
    order: 1;
}

/* ANIMATIONS */
.slide-left,
.slide-right {
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.slide-left  { transform: translateX(-80px); }
.slide-right { transform: translateX(80px); transition-delay: 0.2s; }

.slide-left.is-visible,
.slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* SERVICES */
.services {
    padding: 4rem 2rem;
}

.services-title {
    font-family: 'Blisstwin', cursive;
    font-size: 2.2rem;
    color: #FF1D0F;
    text-align: center;
    margin-bottom: 2.5rem;

    /* Lignes de part et d'autre */
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.services-title::before,
.services-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: #FF1D0F;
}

.services-grid {
    display: flex; /* flex plutôt que grid pour forcer 1 ligne */
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    text-decoration: none;
    flex: 1; /* chaque carte prend la même largeur */
    min-width: 0; /* évite le débordement */
    background-color: #FFA3C8;
    border-radius: 1rem;
    padding: 2.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
    will-change: transform, background-color;
}

.service-card:hover {
    background-color: #FF1D0F;
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.service-card-title {
    font-family: 'GillSans', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.service-card-text {
    font-family: 'Americane', sans-serif;
    font-size: 0.95rem;
    color: #FF1D0F;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.service-card:hover .service-card-title,
.service-card:hover .service-card-text {
    color: #FFEFE6;
}

/* ANIMATIONS */
.animate-block {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.animate-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* PROJETS */
.projects {
    width: 100%;
}

.projects-title {
    font-family: 'GillSans-UltraBold', sans-serif;
    font-weight: bold;
    font-size: 2.5rem;
    text-transform: uppercase;
    color: #FFD3EA;
    text-align: center;
    background-color: #2A5842;
    padding: 2rem 2rem;
    margin-top: 0;
    margin-bottom: 0;
}

.projects-carousel {
    background-color: #2A5842;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem 3rem;
    position: relative;
}

.carousel-track {
    flex: 1;
    position: relative;
    min-height: 260px;
}

.carousel-slide {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.carousel-slide.is-active {
    display: flex;
}

/* Logo */
.carousel-logo {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.carousel-logo-placeholder {
    font-family: 'GillSans', sans-serif;
    font-weight: bold;
    color: #FFA3C8;
    font-size: 1rem;
    text-transform: uppercase;
}

/* Contenu */
.carousel-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    max-width: 500px;
}

.carousel-content .btn-discover {
    align-self: flex-start;
}

.btn-discover {
    background-color: #FFD3EA;
    color: #2A5842;
    font-family: 'GillSans-UltraBold', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s, transform 0.15s, color 0.2s;
    cursor: pointer;
}

.btn-discover:hover {
    background-color: #6EA14F;
    color: #FFD3EA;
    transform: scale(1.04);
}

.carousel-project-title {
    font-family: 'Blisstwin', cursive;
    font-size: 1.4rem;
    color: #FFD3EA;
    text-transform: uppercase;
}

.carousel-project-desc {
    font-family: 'Americane-Regular', sans-serif;
    font-size: 1rem;
    color: #FFEFE6;
    line-height: 1.6;
    max-width: 500px;
    margin: 0;
}

/* Flèches */
.carousel-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.carousel-arrow img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.carousel-arrow-left img {
    transform: rotate(180deg);
}

.carousel-arrow:hover {
    transform: scale(1.1);
}

.carousel-arrow-left:hover {
    transform: scale(1.1);
}

/* BOX */
.box-info { 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 4rem 2rem;
}

/* BASE BOX */
.info-box {
    position: relative;
    text-decoration: none;
    width: 100%;
    max-width: 700px;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.box-star {
    position: absolute;
    top: -40px;
    right: -40px;
    opacity: 0;
    transform: scale(0.5) rotate(-20deg);
    transition: opacity 0.25s ease, transform 0.3s ease;
    pointer-events: none;
    width: 100px;
    height: 100px;
}

.info-box:hover .box-star {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.info-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* BOX 1 - ROSE FORT */
.info-box-pink {
    background-color: #FFA3C8;
    color: #2A5842;
}

.info-box-pink .info-title {
    color: #2A5842;
}

.info-box-pink .info-text {
    color: #2A5842;
}

/* BOX 2 - ROSE CLAIR */
.info-box-lightpink {
    background-color: #FFD3EA;
    color: #6EA14F;
}

.info-box-lightpink .info-title {
    color: #6EA14F;
}

.info-box-lightpink .info-text {
    color: #6EA14F;
}

/* TITRE */
.info-title {
    font-family: 'GillSans-UltraBold', sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* TEXTE */
.info-text {
    font-family: 'Americane', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* AVIS */
.reviews {
    width: 100%;
    background-color: #2A5842;
    padding: 2rem 0 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reviews .projects-title {
    margin-bottom: 1.5rem;
}

.reviews .projects-carousel {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.review-card {
    background-color: #FFEFE6;
    border-radius: 20px;
    padding: 1.8rem;
    width: 400px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease;
}

.review-card:hover {
    transform: translateY(-6px);
}

/* NOM */
.review-name {
    font-family: 'GillSans-UltraBold', sans-serif;
    font-size: 1.5rem;
    color: #FF1D0F;
    text-transform: uppercase;
}

/* STARS */
.review-stars {
    display: flex;
    gap: 0.2rem;
}

.review-stars img {
    width: 25px;
    height: 25px;
}

/* TEXTE AVIS */
.review-text {
    font-family: 'Americane', sans-serif;
    font-size: 1rem;
    color: #2A5842;
    text-align: center;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* BOUTON BAS */
.reviews-footer {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}


/* CONTACT */
.contact-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 3rem 0 4rem;
}

.contact-btn {
    background-color: #FFA3C8;
    color: #2A5842;
    font-family: 'GillSans-UltraBold', sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 7rem;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.contact-btn:hover {
    transform: translateY(-3px) scale(1.03);
    background-color: #FFA3C8;
    color: #FF1D0F;
}


/* MEDIA QUERY */
/* =============================
   TABLETTE 768px – 1023px
   ============================= */
@media (max-width: 1023px) {

    /* HERO */
    .bubble {
        max-width: 75%;
    }

    /* SERVICES */
    .services-grid {
        gap: 1rem;
    }

    .service-card {
        padding: 2rem 0.8rem;
    }

    /* CAROUSEL PROJETS */
    .carousel-logo {
        width: 200px;
        height: 200px;
    }

    .carousel-slide {
        gap: 2rem;
    }

    /* AVIS - 2 cartes au lieu de 3 */
    .review-card {
        width: 240px;
    }

    /* BOX INFO */
    .info-box {
        max-width: 90%;
    }
}

/* =============================
   MOBILE ≤767px
   ============================= */
@media (max-width: 767px) {

    /* HERO */
    .chat-bubbles {
        padding: 2rem 1.2rem;
        gap: 1.5rem;
    }
    .chat-row {
        gap: 30px;
        align-items: center;
    }

    .hero-gif {
        width: 90px;
    }

    .bubble {
        max-width: 90%;
        padding: 1.5rem 1.2rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle,
    .bubble-green p {
        font-size: 0.95rem;
    }

    .bubble-star {
        width: 55px;
        height: 55px;
        top: -20px;
        right: -15px;
    }

    /* SERVICES */
    .services {
        padding: 2.5rem 0;
    }

    .services-title {
        font-size: 1.5rem;
        padding: 0 1.2rem;
        margin-bottom: 1.5rem;
    }

    .services-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding: 0 1.2rem 1rem;
        /* Cacher la scrollbar */
        scrollbar-width: none;
    }

    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        flex: 0 0 70vw; /* largeur fixe, pas de retour à la ligne */
        scroll-snap-align: center;
        padding: 2rem 1rem;
        border-radius: 1rem;
    }

    .service-card-title {
        font-size: 1rem;
    }

    /* PROJETS */
    .projects-title {
        font-size: 1.6rem;
        padding: 1.5rem 1.2rem;
    }

    .projects-carousel {
        padding: 2rem 1rem;
        gap: 0.5rem;
    }

    .carousel-track {
        min-height: auto;
    }

    .carousel-slide {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }

    /* Masquer le logo sur mobile */
    .carousel-logo {
        display: none;
    }

    .carousel-content {
        align-items: center;
        text-align: center;
    }

    .carousel-content .btn-discover {
        align-self: center;
    }

    .carousel-project-title {
        font-size: 1.2rem;
    }

    .carousel-project-desc {
        font-size: 0.95rem;
    }

    .carousel-arrow img {
        width: 28px;
        height: 28px;
    }

    /* BOX INFO */
    .box-info {
        padding: 2.5rem 1.2rem;
        gap: 1.2rem;
    }

    .info-box {
        max-width: 100%;
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .info-title {
        font-size: 1.3rem;
    }

    .info-text {
        font-size: 0.95rem;
    }

    /* AVIS */
    .reviews {
        padding: 1.5rem 0 2.5rem;
    }

    .reviews .projects-carousel {
        padding: 1.5rem 1rem;
    }

    /* 1 carte visible à la fois */
    .reviews .carousel-slide {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* On force 1 seule carte visible */
    .reviews .carousel-slide .review-card:not(:first-child) {
        display: none;
    }

    .reviews .projects-carousel {
        padding: 1.5rem 1rem;
        overflow: hidden;
    }

    .reviews .carousel-track {
        overflow: hidden;
        width: 100%;
    }

    .reviews .carousel-slide {
        width: 100%;
    }

    .review-card {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        padding: 1.5rem;
        box-sizing: border-box;
    }

    .review-name {
        font-size: 1rem;
    }

    .review-stars img {
        width: 15px;
        height: 15px;
    }

    .review-text {
        font-size: 0.8rem;
    }

    .reviews-footer {
        margin-top: 1.5rem;
    }

    /* CONTACT */
    .contact-cta {
        padding: 2.5rem 1.2rem 3rem;
    }

    .contact-btn {
        font-size: 1.2rem;
        padding: 1rem 3rem;
        text-align: center;
        width: 100%;
        max-width: 340px;
    }
}