/* Styles spécifiques pour la page À propos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.5;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Styles spécifiques à la page d'accueil */
.hero-subtitle, .service-first-title, .why-choose-title, .info-title {
    font: var(--font-size-l);
    background: var(--dgrad-bleu);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-subtitle {
    font: var(--font-size-m);
    background: var(--dgrad-bleu);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 56px;
    text-align: center;
}

/* Hero Section */
.hero-section {
    position: relative;
    border-radius: 0 0 50px 50px;
    margin: 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
    background-image: url('svg/hero-section-background.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-content {
    color: var(--text-color);
}

.hero-title {
    font: var(--font-size-xxl);
    background: var(--dgrad-bleu);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.hero-subtitle {
    margin-bottom: 32px;
}

.hero-description {
    margin-bottom: 32px;
}

.two-cta-buttons{
    display: flex;
    gap:32px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animation flottante pour l'illustration de la hero section */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Application de l'animation à l'image de la hero section */
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    animation: float 8s ease-in-out infinite;
}


.homepage-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 144px 20px;
}

.service-first-title {
    margin-bottom: 24px;
    text-align: center;
}

.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 56px;
    justify-items: center;
}

.service-card {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    padding: 24px;
    width: 416px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.30);
    box-shadow: 0px 4px 26.3px 0px rgba(153, 153, 153, 0.35);
    backdrop-filter: blur(20px);
}

.service-card-content {
    position: relative;
    z-index: 2;
}

.service-number {
    font-family: 'Viga', sans-serif;
    font-size: 4rem;
    background: var(--dgrad-bleu);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.service-title {
    font: var(--font-size-xs);
    margin-bottom: 24px;
    text-align: center;
}

.service-description {
    text-align: left;
}

/* Backgrounds spécifiques pour chaque carte */
.service-card-1 {
    background-image: url('svg/bg-bloc-1.svg');
    min-height:416px;
}

.service-card-2 {
    background-image: url('svg/bg-bloc-2.svg');
    min-height:416px;
}

.service-card-3 {
    background-image: url('svg/bg-bloc-3.svg');
    max-height: 416px;
}

.service-card-4 {
    background-image: url('svg/bg-bloc-4.svg');
    max-height: 416px;
}

.cta-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

/* Section Pourquoi choisir XavPC */
.why-choose-section {
    padding-top:0px;
    max-width: 1200px;
    margin: 0 auto 0 auto;
}

.why-choose-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-choose-content {
    padding-right: 20px;
}

.why-choose-title {
    margin-bottom: 56px;
}

.why-choose-text {
    margin-bottom: 20px;
    text-align: justify;
}

.why-choose-text:last-of-type {
    margin-bottom: 56px;
}

.why-choose-image {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-choose-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Section Le saviez-vous */
.info-section {
    background-image: url('svg/bg-section.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px;
    margin: 144px 0px;
    position: relative;
    overflow: hidden;
}

.center-button {
    display: block;
    margin: 1em auto 0;
    text-align: center;
    width: fit-content;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.info-content {
    border: 3px solid #ffffff30;
    background: rgba(255, 255, 255, 0.30);
    box-shadow: 0px 4px 26.3px 0px rgba(153, 153, 153, 0.35);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 48px 128px;
    max-width: 1000px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.info-title {
    margin-bottom: 56px;
}

.info-text {
    margin-bottom: 56px;
}

.info-text p {
    text-align: left;
}

.info-text p:last-child {
    margin-bottom: 0;
}

.info-bulb {
    position: absolute;
    z-index: 1;
}

.info-bulb-left {
    left: -3%;
    top: -15%;
}

.info-bulb-right {
    right: -3%;
    bottom: -15%;
}

.bulb-icon {
    height: 250px;
    opacity: 0;
}

.info-bulb-left .bulb-icon {
    animation: fadeInOut 10s ease-in-out infinite;
}

.info-bulb-right .bulb-icon {
    animation: fadeInOutFlipped 10s ease-in-out infinite 4s;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInOutFlipped {
    0%, 100% {
        opacity: 0;
        transform: scaleX(-1) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(-1) scale(1);
    }
}



/* Responsive Design */
@media screen and (max-width: 1210px) {
    .info-content {
        max-width: 700px;
        padding: 48px 60px;
    }
    
    .info-bulb-left {
        left: 7%;
        top: -10%;
    }
    
    .info-bulb-right {
        right: 7%;
        bottom: -10%;
    }
}


/* Tablettes - max-width: 1024px */
@media screen and (max-width: 1024px) {
    .top-right {
        top: -500px;
        right: -100px;
    }

    .bottom-right {
        bottom: -400px;
        right: -150px;
    }

    .bottom-left {
        bottom: -300px;
        left: -150px;
    }

    .cta-button {
        justify-content: center;
        margin-right: auto;
        margin-left: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .two-cta-buttons {
        flex-direction: column;
        gap:24px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title, .hero-subtitle {
        text-align: center;
    }

    .homepage-container {
        padding: 30px 15px;
    }
    
    .services-grid {
        gap: 40px;
    }
    
    .service-card {
        width: 360px;
        height: 360px;
        padding: 24px;
        min-height: 416px;
    }
    
    .service-number {
        font-size: 3.5rem;
    }
    
    .why-choose-section {
        margin: 60px auto 0 auto;
        padding: 0 15px;
    }
    
    .why-choose-container {
        gap: 40px;
    }
    
    .why-choose-content {
        padding-right: 15px;
    }
    
    .why-choose-title {
        margin-bottom: 40px;
    }

    .why-choose-text:last-of-type {
        margin-bottom: 40px;
    }
    
    .info-section {
        padding: 60px 15px;
        margin-top: 60px;
    }
    
    .info-content {
        padding: 40px 80px;
    }
    
    .info-title {
        margin-bottom: 40px;
    }
    
    .info-text {
        margin-bottom: 40px;
    }

    .info-bulb-left {
        left: 3%;
        top: -10%;
    }
    
    .info-bulb-right {
        right: 3%;
        bottom: -10%;
    }
    
    .bulb-icon {
        height: 200px;
    }
}

/* Tablettes portrait - max-width: 768px */
@media screen and (max-width: 768px) {
    .hero-section {
        background-image: url('svg/hero-section-background-mobile.svg');
        margin-bottom: 40px;
        padding: 120px 0 20px 0;
    }

    .homepage-container {
        padding: 25px 15px;
    }
    
    .hero-title {
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        margin-bottom: 40px;
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-10px);
        }
    }
    
    .hero-image img {
        animation: float 6s ease-in-out infinite;
        width: 50%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        justify-items: center;
    }
    
    .service-card {
        width: 100%;
        max-width: 400px;
        height: 320px;
        padding: 24px;
    }
    
    .service-number {
        font-size: 3rem;
    }
    
    .service-title {
        margin-bottom: 20px;
    }
    
    .cta-section {
        margin-top: 40px;
    }
    
    .why-choose-section {
        margin: 50px auto 0 auto;
    }
    
    .why-choose-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .why-choose-content {
        padding-right: 0;
        order: 2;
    }
    
    .why-choose-image {
        order: 1;
        height: 250px;
        margin: 80px 0 40px 0;
    }
    
    .why-choose-title {
        margin-bottom: 30px;
    }
    
    .info-section {
        padding: 50px 15px;
        margin-top: 50px;
    }
    
    .info-content {
        padding: 30px 40px;
    }
    
    .info-title {
        margin-bottom: 30px;
    }
    
    .info-text {
        margin-bottom: 30px;
    }

    .info-bulb {
        display: none;
    }
}

/* Mobile - max-width: 480px */
@media screen and (max-width: 480px) {
    * {
        font-size: 16px;
    }

    .hero-container {
        padding: 0 16px;
    }

    .hero-title {
        font: var(--font-size-xxl-m);
        margin: 0px 0 16px 0;
    }

    .hero-subtitle, .service-first-title, .why-choose-title, .info-title {
        font: var(--font-size-l-m);
    }

    .service-subtitle, .renseignement-title {
        font: var(--font-size-s-m);
    }

    .service-subtitle br {
        display: none;
    }
    
    .hero-section {
        margin-bottom: 40px;
    }
    
    .hero-subtitle {
        margin-bottom: 30px;
    }

    .hero-description {
        padding: 0px 16px;
    }

    .homepage-container {
        padding: 16px 16px;
    }
    
    .services-section {
        padding: 0 10px;
        margin-bottom: 40px;
    }
    
    .services-grid {
        gap: 40px;
    }
    
    .service-card {
        width: 100%;
        max-width: none;
        height: 280px;
        padding: 20px;
    }
    
    .service-number {
        font-size: 2.5rem;
    }
    
    .service-title {
        font: var(--font-size-xs-m);
        margin-bottom: 16px;
    }
    
    .cta-section {
        padding: 0 10px;
        margin-top: 40px;
    }
    
    .why-choose-section {
        margin: 40px 16px;
        padding: 0 10px;
    }
    
    .why-choose-container {
        gap: 20px;
    }
    
    .why-choose-image {
        height: 200px;
    }
    
    .why-choose-title {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .why-choose-text {
        margin-bottom: 16px;
        text-align: left;
    }
    
    .info-section {
        padding: 30px 16px;
        margin: 40px 0;
    }
    
    .info-content {
        padding: 20px 16px;
        border-radius: 15px;
    }
    
    .info-title {
        margin-bottom: 20px;
    }
    
    .info-text {
        margin-bottom: 40px;
    }
    
}