/* ========================================
   BOUTONS CTA GÉNÉRIQUES - Format K + Flèche
   Styles réutilisables pour tous les CTAs du site
   ======================================== */

/* Container du bouton CTA */
.cta-btn-container {
    text-align: center;
    margin: 40px 0;
}

/* Lien CTA avec texte + pastille K */
.cta-btn-link {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px; /* Réduit de 12px à 8px */
    text-decoration: none;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Texte du CTA */
.cta-btn-text {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.2vw, 26px); /* Aligné sur Hero */
    font-weight: 600; /* Semi-Bold comme Hero */
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(249, 249, 255, 0.9);
    text-shadow: 0 0 15px rgba(249, 249, 255, 0.2),
                 0 0 25px rgba(249, 249, 255, 0.1);
    transition: all 400ms ease;
    white-space: nowrap;
    position: relative;
    z-index: 3;
}

/* Bouton pastille K avec flèche bas - K et flèche restent fixes */
.cta-btn-k-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85px; /* Aligné sur Hero */
    height: 50px; /* Aligné sur Hero */
    border-radius: 25px;
    background: transparent;
    padding: 0 12px;
    z-index: 2;
}

/* Background de la pastille - s'étend au hover */
.cta-btn-k-button::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    background: rgba(3, 3, 33, 0.6);
    backdrop-filter: blur(10px);
    transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1), background 400ms ease;
    z-index: -1;
}

/* Bordure dégradé rose/bleu filaire - s'étend au hover */
.cta-btn-k-border {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    padding: 2px;
    background: linear-gradient(135deg, 
        #FF70AE 0%, 
        #C6A7FF 50%, 
        #A7E2FF 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
    transition: width 400ms ease, opacity 400ms ease, padding 400ms ease;
    z-index: -1;
}

/* Contenu K + flèche (horizontal) */
.cta-btn-k-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.cta-btn-k-icon {
    width: 20px; /* Aligné sur Hero */
    height: auto;
    opacity: 0.75;
    filter: drop-shadow(0 0 6px rgba(255, 112, 174, 0.4))
            drop-shadow(0 0 8px rgba(167, 226, 255, 0.3));
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-btn-k-arrow {
    font-size: 22px; /* Aligné sur Hero */
    color: rgba(249, 249, 255, 0.85);
    text-shadow: 0 0 8px rgba(255, 112, 174, 0.3),
                 0 0 12px rgba(167, 226, 255, 0.2);
    transition: all 200ms ease;
    line-height: 1;
}

/* Hover states - Background et bordure s'étendent, K et flèche restent fixes */
.cta-btn-link:hover .cta-btn-text {
    color: rgba(249, 249, 255, 1);
    text-shadow: 0 0 20px rgba(255, 112, 174, 0.6),
                 0 0 30px rgba(167, 226, 255, 0.4),
                 0 0 40px rgba(198, 167, 255, 0.3);
}

/* Background s'étend via width */
.cta-btn-link:hover .cta-btn-k-button::before {
    width: 260px; /* Aligné sur Hero */
    background: transparent; /* Transparent comme Hero */
}

/* Bordure s'étend aussi */
.cta-btn-link:hover .cta-btn-k-border {
    width: 260px; /* Aligné sur Hero */
    opacity: 1;
    padding: 2.5px;
}

.cta-btn-link:hover .cta-btn-k-icon {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 112, 174, 0.6))
            drop-shadow(0 0 14px rgba(167, 226, 255, 0.5))
            drop-shadow(0 0 18px rgba(198, 167, 255, 0.4));
}

.cta-btn-link:hover .cta-btn-k-arrow {
    color: rgba(249, 249, 255, 1);
    text-shadow: 0 0 12px rgba(255, 112, 174, 0.5),
                 0 0 18px rgba(167, 226, 255, 0.4);
}

/* ========================================
   COLORATIONS SPÉCIFIQUES AU HOVER
   ======================================== */

/* Bouton "Nos offres" - Vert */
.cta-btn-link-green:hover .cta-btn-k-button::before {
    background: transparent;
    box-shadow: 0 0 30px rgba(150, 232, 195, 0.3),
                0 0 50px rgba(150, 232, 195, 0.15);
}

.cta-btn-link-green:hover .cta-btn-k-border {
    background: linear-gradient(135deg, 
        #96E8C3 0%, 
        #A8EDD0 50%, 
        #BAF2DD 100%); /* Gradient vert intense */
    opacity: 1;
}

/* Bouton "Rejoindre l'équipe" - Iced Bleu (Cyan) */
.cta-btn-link-cyan:hover .cta-btn-k-button::before {
    background: transparent;
    box-shadow: 0 0 30px rgba(167, 226, 255, 0.3),
                0 0 50px rgba(167, 226, 255, 0.15);
}

.cta-btn-link-cyan:hover .cta-btn-k-border {
    background: linear-gradient(135deg, 
        #A7E2FF 0%, 
        #B9E8FF 50%, 
        #CBEEFF 100%); /* Gradient cyan intense */
    opacity: 1;
}

/* Bouton "Envoyer" - Rose */
.cta-btn-link-pink:hover .cta-btn-k-button::before {
    background: transparent;
    box-shadow: 0 0 30px rgba(255, 112, 174, 0.3),
                0 0 50px rgba(255, 112, 174, 0.15);
}

.cta-btn-link-pink:hover .cta-btn-k-border {
    background: linear-gradient(135deg, 
        #FF70AE 0%, 
        #FF8FC0 50%, 
        #FFADD2 100%); /* Gradient rose intense */
    opacity: 1;
}

/* Bouton "Nos offres" - Full Iced Blue (background plein) */
.cta-btn-link-icedblue:hover .cta-btn-k-button::before {
    background: #A7E2FF; /* Background bleu icid plein */
    box-shadow: 0 0 30px rgba(167, 226, 255, 0.4),
                0 0 50px rgba(167, 226, 255, 0.2);
}

.cta-btn-link-icedblue:hover .cta-btn-k-border {
    background: #A7E2FF; /* Bordure bleu icid plein */
    opacity: 1;
}

.cta-btn-link-icedblue:hover .cta-btn-text {
    color: #030321; /* Texte bleu nuit sur fond bleu icid */
    text-shadow: none; /* Pas de halo sur fond coloré */
}

.cta-btn-link-icedblue:hover .cta-btn-k-icon,
.cta-btn-link-icedblue:hover .cta-btn-k-arrow {
    filter: brightness(0) saturate(100%) invert(4%) sepia(12%) saturate(7481%) hue-rotate(201deg) brightness(93%) contrast(101%);
    /* Filtre pour transformer le K et la flèche en bleu nuit #030321 */
}

/* Responsive tablet */
@media (max-width: 968px) {
    .cta-btn-text {
        font-size: clamp(18px, 4vw, 24px); /* Aligné sur Hero */
        font-weight: 600; /* Semi-Bold */
    }
    
    .cta-btn-link {
        gap: 6px; /* Réduit de 10px à 6px pour tablet */
    }
    
    .cta-btn-k-button {
        width: 78px; /* Aligné sur Hero */
        height: 48px; /* Aligné sur Hero */
        border-radius: 24px;
    }
    
    .cta-btn-link:hover .cta-btn-k-button::before {
        width: 240px; /* Aligné sur Hero */
    }
    
    .cta-btn-link:hover .cta-btn-k-border {
        width: 240px; /* Aligné sur Hero */
    }
    
    .cta-btn-k-content {
        gap: 5px;
    }
    
    .cta-btn-k-icon {
        width: 18px; /* Aligné sur Hero */
    }
    
    .cta-btn-k-arrow {
        font-size: 20px; /* Aligné sur Hero */
    }
}

/* Responsive mobile */
@media (max-width: 768px) {
    .cta-btn-text {
        font-size: clamp(18px, 5vw, 22px); /* Aligné sur Hero */
        font-weight: 600; /* Semi-Bold */
    }
    
    .cta-btn-link {
        gap: 6px; /* Réduit de 8px à 6px pour mobile */
    }
    
    .cta-btn-k-button {
        width: 74px; /* Aligné sur Hero */
        height: 46px; /* Aligné sur Hero */
        border-radius: 23px;
    }
    
    .cta-btn-link:hover .cta-btn-k-button::before {
        width: 220px; /* Aligné sur Hero */
    }
    
    .cta-btn-link:hover .cta-btn-k-border {
        width: 220px; /* Aligné sur Hero */
    }
    
    .cta-btn-k-content {
        gap: 4px;
    }
    
    .cta-btn-k-icon {
        width: 17px; /* Aligné sur Hero */
    }
    
    .cta-btn-k-arrow {
        font-size: 19px; /* Aligné sur Hero */
    }
}

/* ========================================
   VARIANTE LARGE (pour textes longs comme "Rejoindre l'équipe")
   ======================================== */

.cta-btn-link-large:hover .cta-btn-k-button::before {
    width: 300px; /* Étendu de 280px à 300px */
}

.cta-btn-link-large:hover .cta-btn-k-border {
    width: 300px; /* Étendu de 280px à 300px */
}

@media (max-width: 968px) {
    .cta-btn-link-large:hover .cta-btn-k-button::before {
        width: 280px; /* Étendu de 260px à 280px */
    }
    
    .cta-btn-link-large:hover .cta-btn-k-border {
        width: 280px; /* Étendu de 260px à 280px */
    }
}

@media (max-width: 768px) {
    .cta-btn-link-large:hover .cta-btn-k-button::before {
        width: 260px; /* Étendu de 240px à 260px */
    }
    
    .cta-btn-link-large:hover .cta-btn-k-border {
        width: 260px; /* Étendu de 240px à 260px */
    }
}

/* ========================================
   BOUTON SUBMIT (Formulaire)
   ======================================== */

.cta-btn-submit {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px; /* Réduit de 12px à 8px */
    text-decoration: none;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0 auto;
}

.cta-btn-submit .cta-btn-text {
    display: block;
}

.cta-btn-submit .cta-btn-k-button {
    display: flex;
}

/* Hover pour submit - Légèrement étendu pour couvrir "Envoyer" */
.cta-btn-submit:hover .cta-btn-text {
    color: rgba(249, 249, 255, 1);
    text-shadow: 0 0 20px rgba(255, 112, 174, 0.6),
                 0 0 30px rgba(167, 226, 255, 0.4),
                 0 0 40px rgba(198, 167, 255, 0.3);
}

.cta-btn-submit:hover .cta-btn-k-button::before {
    width: 220px; /* Étendu de 200px à 220px */
    background: transparent; /* Transparent avec coloration rose */
    box-shadow: 0 0 30px rgba(255, 112, 174, 0.3),
                0 0 50px rgba(255, 112, 174, 0.15);
}

.cta-btn-submit:hover .cta-btn-k-border {
    width: 220px; /* Étendu de 200px à 220px */
    background: linear-gradient(135deg, 
        #FF70AE 0%, 
        #FF8FC0 50%, 
        #FFADD2 100%); /* Gradient rose intense */
    opacity: 1;
    padding: 2.5px;
}

.cta-btn-submit:hover .cta-btn-k-icon {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 112, 174, 0.6))
            drop-shadow(0 0 14px rgba(167, 226, 255, 0.5))
            drop-shadow(0 0 18px rgba(198, 167, 255, 0.4));
}

.cta-btn-submit:hover .cta-btn-k-arrow {
    color: rgba(249, 249, 255, 1);
    text-shadow: 0 0 12px rgba(255, 112, 174, 0.5),
                 0 0 18px rgba(167, 226, 255, 0.4);
}

/* ========================================
   SECTION PROJET
   ======================================== */

.projet-section {
    padding: 80px 0;
    text-align: center;
}

.projet-content {
    max-width: 900px;
    margin: 0 auto;
}

.projet-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #F9F9FF;
    margin: 0 0 40px 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .projet-section {
        padding: 60px 0;
    }
    
    .projet-title {
        font-size: clamp(24px, 6vw, 40px);
    }
}
