/* Polices personnalisées */
@font-face {
    font-family: 'FontCisoft';
    src: url('../fonts/font_cisoft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'FontSlogan';
    src: url('../fonts/font_slogan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

html, body {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    background: rgb(235,67,58); /* Orange Cisoft */
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animation d'anniversaire plein écran */
.anniversary-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(235,67,58); /* Orange Cisoft */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 0.25s ease-out 1.5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        pointer-events: none;
    }
}

.text-container {
    text-align: center;
    color: white;
    transform: scale(0.3);
    opacity: 0;
    animation: zoomIn 0.5s ease-out 0.075s forwards;
}

@keyframes zoomIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Logo et texte CISOFT côte à côte */
.logo-name-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(-30px);
    animation: logoAppear 0.25s ease-out 0.125s forwards;
}

@keyframes logoAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    flex-shrink: 0;
}

.logo-container img {
    width: 160px;
    max-width: 160px;
    height: auto;
    filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.3));
    transform: translateY(-8px);
}

.company-name {
    font-family: 'FontCisoft', sans-serif;
    font-size: 120px;
    font-weight: 900;
    letter-spacing: 15px;
    text-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.slogan {
    font-family: 'FontSlogan', sans-serif;
    font-size: 50px;
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.2s ease-out 0.3s forwards;
    color: #2c2c2c; /* Anthracite */
}

.service-text {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 25px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.2s ease-out 0.45s forwards;
}

.since-text {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 30px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.2s ease-out 0.55s forwards;
}

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

.years-highlight {
    font-size: 220px;
    font-weight: 900;
    letter-spacing: 8px;
    line-height: 1;
    margin-top: 20px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: scale(0.5);
    animation: bigZoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards;
}

@keyframes bigZoom {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-5deg);
    }
    60% {
        transform: scale(1.15) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.location {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 4px;
    margin-top: 30px;
    opacity: 0;
    animation: fadeInUp 0.2s ease-out 1.05s forwards;
}

/* Effet de brillance */
.shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shine 0.5s ease-in-out 1s;
}

@keyframes shine {
    to {
        left: 150%;
    }
}

/* Particules */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(var(--drift));
        opacity: 0;
    }
}

/* Container principal - Page blanche avec logo, slogan et "Espace client" */
#main-content {
    opacity: 0;
    transition: opacity 1s ease-in;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 40px;
}

/* Élément fixe avec le résultat de l'animation (desktop uniquement) */
.fixed-animation-result {
    display: none; /* Masqué par défaut (mobile) */
}

@media (min-width: 769px) {
    .fixed-animation-result {
        display: block;
        position: fixed;
        top: 200px;
        padding-top: 40px;
        width: 280px;
        text-align: center;
        z-index: 100;
        opacity: 0;
        transition: opacity 1s ease-in;
        left: calc((100vw - 900px) / 2 - 300px);
    }

    .fixed-animation-result.visible {
        opacity: 1;
    }

    .fixed-animation-result .logo-name-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        margin-bottom: 15px;
    }

    .fixed-animation-result .logo-container {
        flex-shrink: 0;
    }

    .fixed-animation-result .logo-container img {
        width: 60px;
        max-width: 60px;
        height: auto;
        filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.3));
        transform: translateY(-3px);
        display: block;
    }

    .fixed-animation-result .company-name {
        font-family: 'FontCisoft', sans-serif;
        font-size: 48px;
        font-weight: 900;
        letter-spacing: 8px;
        color: white;
        margin: 0;
    }

    .fixed-animation-result .slogan {
        font-family: 'FontSlogan', sans-serif;
        font-size: 22px;
        font-weight: 300;
        letter-spacing: 3px;
        margin-bottom: 20px;
        color: #2c2c2c; /* Anthracite */
    }

    .fixed-animation-result .service-text {
        font-size: 16px;
        font-weight: 300;
        letter-spacing: 4px;
        margin-bottom: 8px;
        text-transform: uppercase;
        color: white;
    }

    .fixed-animation-result .since-text {
        font-size: 16px;
        font-weight: 300;
        letter-spacing: 3px;
        margin-bottom: 10px;
        text-transform: uppercase;
        color: white;
    }

    .fixed-animation-result .years-highlight {
        font-size: 36px;
        font-weight: 900;
        letter-spacing: 4px;
        margin-bottom: 15px;
        color: white;
    }

    .fixed-animation-result .location {
        font-size: 14px;
        font-weight: 300;
        letter-spacing: 2px;
        color: white;
    }
}

#main-content.visible {
    opacity: 1;
}

.espace-client-container {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.espace-client-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.espace-client-logo-img {
    height: 144px;
    width: auto;
}

.espace-client-company-name {
    font-family: 'FontCisoft', sans-serif;
    font-size: 120px;
    font-weight: 900;
    letter-spacing: 15px;
    color: rgb(235,67,58);
    margin: 0;
    line-height: 1;
}

.espace-client-slogan {
    font-family: 'FontSlogan', sans-serif;
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 4px;
    color: #2c2c2c; /* Anthracite */
    margin: 0;
    margin-bottom: 40px;
}

.espace-client-divider {
    width: 60vw;
    height: 1px;
    background: rgb(235,67,58); /* Orange Cisoft */
    margin: 70px 0 20px 0;
}

.espace-client-title {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 56px;
    font-weight: 300;
    color: #2c2c2c; /* Anthracite */
    margin: 0;
    margin-top: 80px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    color: rgb(235,67,58); /* Orange Cisoft */
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 14px;
    z-index: 10001;
}

/* Bouton de fermeture */
.close-button {
    position: absolute;
    top: -200px;
    right: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgb(235,67,58);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.close-button:hover {
    background: rgb(235,67,58);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(235, 67, 58, 0.4);
}

.close-button::before,
.close-button::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: rgb(235,67,58);
    transition: all 0.3s ease;
}

.close-button::before {
    transform: rotate(45deg);
}

.close-button::after {
    transform: rotate(-45deg);
}

.close-button:hover::before,
.close-button:hover::after {
    background: white;
}

/* Effet de fade out */
body.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    /* Masquer l'élément fixe sur mobile */
    .fixed-animation-result {
        display: none !important;
    }

    #main-content {
        padding: 20px;
    }

    .espace-client-logo-section {
        flex-direction: column;
        gap: 20px;
    }

    .espace-client-logo-img {
        height: 72px;
    }

    .espace-client-company-name {
        font-size: 60px;
        letter-spacing: 8px;
        line-height: 1;
    }

    .espace-client-slogan {
        font-size: 32px;
        letter-spacing: 3px;
    }

    .espace-client-title {
        font-size: 40px;
        font-weight: 300;
        letter-spacing: 2px;
    }

    .espace-client-slogan {
        margin-bottom: 40px;
    }

    .espace-client-divider {
        width: 60vw;
        margin: 70px 0 20px 0;
    }

    .espace-client-title {
        margin-top: 80px;
    }

    .logo-name-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .logo-container img {
        width: 80px;
        max-width: 80px;
    }
    
    .company-name {
        font-size: 60px;
        letter-spacing: 8px;
    }
    
    .slogan {
        font-size: 16px;
        letter-spacing: 3px;
    }
    
    .service-text {
        font-size: 20px;
        letter-spacing: 4px;
    }
    
    .since-text {
        font-size: 20px;
        letter-spacing: 3px;
    }
    
    .years-highlight {
        font-size: 120px;
        letter-spacing: 4px;
    }
    
    .location {
        font-size: 14px;
        letter-spacing: 2px;
    }

    /* Responsive pour le bouton de fermeture */
    .close-button {
        top: -150px;
        right: 0;
        width: 45px;
        height: 45px;
    }

    .close-button::before,
    .close-button::after {
        width: 20px;
    }
}







