@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap");

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}


img {
    max-width: 100%;
    vertical-align: middle;
}

/* Layout Split */
.split-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
}

/* Section gauche - Blanc */
.left-section {
    flex: 0 0 66.666667%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 40px 60px;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

.content-wrapper {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

/* Logo */
.logo {
    margin-bottom: 40px;
    text-align: center;
}

.logo-img {
    max-width: 650px;
    height: auto;
    object-fit: contain;
    display: block;
    width: auto;
    margin: 0 auto;
}

.logo a {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.02);
}

/* Contenu principal */
.main-content {
    width: 100%;
}

.has-line {
    padding: 0 100px;
    position: relative;
    font-size: 22px;
    font-weight: 500;
    color: #4a4a4a;
    margin-bottom: 20px;
    text-align: center;
}

.has-line::before {
    position: absolute;
    content: '';
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #ff4444 0%, #ff8844 25%, #ffcc44 50%, #44cc44 100%);
    width: 88px;
    height: 3px;
    border-radius: 2px;
}

.has-line::after {
    position: absolute;
    content: '';
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #ff4444 0%, #ff8844 25%, #ffcc44 50%, #44cc44 100%);
    width: 120px;
    height: 3px;
    border-radius: 2px;
}

h1 {
    font-size: 52px;
    line-height: 60px;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 20px;
    word-wrap: break-word;
}

/* Slogan formaté */
.slogan {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    line-height: 1.1;
    text-align: center;
}

.slogan-line {
    display: inline;
    font-size: 52px;
    line-height: 60px;
    font-weight: 700;
    color: #2a2a2a;
    white-space: nowrap;
    margin-bottom: 0;
    text-align: center;
}

@media (max-width: 767px) {
    .slogan-line {
        white-space: normal;
        word-wrap: break-word;
    }
    
    .dash-left,
    .dash-right {
        width: 40px;
        height: 3px;
    }
}

.slogan-accent {
    background: linear-gradient(135deg, #ff4444 0%, #ff8844 25%, #ffcc44 50%, #44cc44 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Mise en valeur des mots "ici" et "partout" */
.word-highlight {
    font-weight: 700;
    background: linear-gradient(135deg, #ff4444 0%, #ff8844 25%, #ffcc44 50%, #44cc44 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

/* Tirets colorés au début et à la fin */
.dash-left,
.dash-right {
    position: relative;
    flex-shrink: 0;
    align-self: center;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff4444 0%, #ff8844 25%, #ffcc44 50%, #44cc44 100%);
    border-radius: 2px;
}

.dash-left {
    margin-right: 0;
}

.dash-right {
    margin-left: 0;
}

.subtitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.subtitle-text {
    flex: 1;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #888888;
    text-align: center;
    word-wrap: break-word;
    hyphens: none;
}

/* Form */
.form-group {
    margin-top: 30px;
    position: relative;
    display: flex;
    align-items: center;
    max-width: 100%;
}

.form-group input {
    flex: 1;
    height: 70px;
    border: 2px solid #d0d0d0;
    border-radius: 40px;
    padding-left: 30px;
    padding-right: 200px;
    font-size: 16px;
    transition: 0.3s all linear;
    font-family: 'Poppins', sans-serif;
    color: #2a2a2a;
}

.form-group input:focus {
    outline: none;
    border-color: #ffcc44;
    box-shadow: 0 0 0 3px rgba(255, 204, 68, 0.1);
}

.form-group button {
    width: 175px;
    height: 70px;
    border: none;
    border-radius: 40px;
    background: linear-gradient(135deg, #ff4444 0%, #ff8844 25%, #ffcc44 50%, #44cc44 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.form-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
    background: linear-gradient(135deg, #ff5555 0%, #ff9955 25%, #ffdd55 50%, #55dd55 100%);
}

/* Contact Section */
.contact-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.contact-label {
    font-size: 14px;
    color: #888888;
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-email {
    display: inline-block;
    font-size: 18px;
    color: #2a2a2a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #ff4444 0%, #ff8844 25%, #ffcc44 50%, #44cc44 100%);
    transition: width 0.3s ease;
}

.contact-email:hover {
    color: #ff4444;
}

.contact-email:hover::after {
    width: 100%;
}

/* Section droite - Espace */
.right-section {
    flex: 0 0 33.333333%;
    background: linear-gradient(180deg, #2a2a2a 0%, #3a3a3a 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.space-background {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(180deg, #2a2a2a 0%, #3a3a3a 50%, #2f2f2f 100%);
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255,204,68,0.6), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255,136,68,0.6), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255,204,68,0.4), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(68,204,68,0.5), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255,68,68,0.6), transparent),
        radial-gradient(1px 1px at 33% 80%, rgba(255,204,68,0.4), transparent),
        radial-gradient(1px 1px at 15% 50%, rgba(255,136,68,0.3), transparent),
        radial-gradient(1px 1px at 70% 20%, rgba(68,204,68,0.3), transparent),
        radial-gradient(2px 2px at 40% 90%, rgba(255,68,68,0.5), transparent);
    background-size: 100% 100%;
    overflow: hidden;
}

.space-background::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255,204,68,0.4) 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255,204,68,0.3);
    animation: pulse 3s ease-in-out infinite;
}

.space-background::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(68,204,68,0.3) 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(68,204,68,0.2);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Éléments graphiques IT/IA */
.tech-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 40px 20px;
    opacity: 0.9;
}

.tech-icon {
    width: 120px;
    height: 120px;
    opacity: 0.85;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 204, 68, 0.4));
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.tech-icon:hover {
    transform: scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 20px rgba(255, 204, 68, 0.6));
}

.tech-icon:nth-child(1) {
    animation-delay: 0s;
    align-self: flex-start;
    margin-left: 5%;
    width: 110px;
    height: 110px;
}

.tech-icon:nth-child(2) {
    animation-delay: 1s;
    align-self: flex-end;
    margin-right: 10%;
    width: 130px;
    height: 130px;
}

.tech-icon:nth-child(3) {
    animation-delay: 2s;
    align-self: flex-start;
    margin-left: 15%;
    width: 115px;
    height: 90px;
}

.tech-icon:nth-child(4) {
    animation-delay: 1.5s;
    align-self: flex-end;
    margin-right: 5%;
    width: 140px;
    height: 100px;
}

.tech-icon:nth-child(5) {
    animation-delay: 0.5s;
    align-self: center;
    width: 105px;
    height: 105px;
}

.tech-icon:nth-child(6) {
    animation-delay: 2.5s;
    align-self: flex-start;
    margin-left: 8%;
    width: 100px;
    height: 120px;
}

.tech-icon:nth-child(7) {
    animation-delay: 1.2s;
    align-self: flex-end;
    margin-right: 12%;
    width: 135px;
    height: 110px;
}

.tech-icon:nth-child(8) {
    animation-delay: 3s;
    align-self: flex-start;
    margin-left: 20%;
    width: 125px;
    height: 95px;
}

.tech-icon:nth-child(9) {
    animation-delay: 0.8s;
    align-self: flex-end;
    margin-right: 8%;
    width: 115px;
    height: 100px;
}

.tech-icon:nth-child(10) {
    animation-delay: 2.2s;
    align-self: center;
    width: 120px;
    height: 120px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.75;
    }
    50% {
        transform: translateY(-25px) rotate(8deg);
        opacity: 1;
    }
}

/* Forcer les animations sur tous les appareils */
@media (prefers-reduced-motion: no-preference) {
    .tech-icon {
        animation: float 6s ease-in-out infinite;
    }
    
    .space-background::before,
    .space-background::after {
        animation: pulse 3s ease-in-out infinite;
    }
}

/* Responsive pour les éléments tech */
@media (max-width: 991px) {
    .tech-elements {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 25px 15px;
        position: relative;
        width: 100%;
        height: auto;
        min-height: 300px;
    }

    .tech-icon {
        width: 70px;
        height: 70px;
        animation: float 6s ease-in-out infinite !important;
        will-change: transform;
    }

    .tech-icon:nth-child(1),
    .tech-icon:nth-child(2),
    .tech-icon:nth-child(3),
    .tech-icon:nth-child(4),
    .tech-icon:nth-child(5),
    .tech-icon:nth-child(6),
    .tech-icon:nth-child(7),
    .tech-icon:nth-child(8),
    .tech-icon:nth-child(9),
    .tech-icon:nth-child(10) {
        align-self: center;
        margin: 0;
        width: 70px;
        height: 70px;
    }

    .tech-icon:nth-child(2),
    .tech-icon:nth-child(4),
    .tech-icon:nth-child(7) {
        width: 75px;
        height: 75px;
    }

    .tech-icon:nth-child(3),
    .tech-icon:nth-child(8) {
        width: 70px;
        height: 55px;
    }

    .tech-icon:nth-child(6) {
        width: 65px;
        height: 80px;
    }
}

@media (max-width: 767px) {
    .tech-elements {
        gap: 15px;
        padding: 20px 10px;
        min-height: 250px;
    }

    .tech-icon {
        width: 50px;
        height: 50px;
        animation: float 5s ease-in-out infinite !important;
    }

    .tech-icon:nth-child(1),
    .tech-icon:nth-child(2),
    .tech-icon:nth-child(3),
    .tech-icon:nth-child(4),
    .tech-icon:nth-child(5),
    .tech-icon:nth-child(6),
    .tech-icon:nth-child(7),
    .tech-icon:nth-child(8),
    .tech-icon:nth-child(9),
    .tech-icon:nth-child(10) {
        width: 50px;
        height: 50px;
    }

    .tech-icon:nth-child(2),
    .tech-icon:nth-child(4),
    .tech-icon:nth-child(7) {
        width: 55px;
        height: 55px;
    }

    .tech-icon:nth-child(3),
    .tech-icon:nth-child(8) {
        width: 50px;
        height: 40px;
    }

    .tech-icon:nth-child(6) {
        width: 45px;
        height: 60px;
    }
}

/* Courbe de séparation organique */
.wave-divider {
    position: absolute;
    left: 66.666667%;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 3;
    pointer-events: none;
    transform: translateX(-50%);
}

.wave-divider::before {
    display: none;
}

/* Version SVG pour une courbe plus fluide */
.wave-divider .wave-svg {
    position: absolute;
    left: -50px;
    top: 0;
    width: 100px;
    height: 100%;
    fill: #ffffff;
}

/* Notifications */
.notifications {
    margin-bottom: 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: linear-gradient(135deg, rgba(68,204,68,0.1) 0%, rgba(68,204,68,0.05) 100%);
    color: #2d7a2d;
    border: 2px solid rgba(68,204,68,0.3);
}

.alert-error {
    background: linear-gradient(135deg, rgba(255,68,68,0.1) 0%, rgba(255,68,68,0.05) 100%);
    color: #cc3333;
    border: 2px solid rgba(255,68,68,0.3);
}

.alert-info {
    background: linear-gradient(135deg, rgba(255,204,68,0.1) 0%, rgba(255,204,68,0.05) 100%);
    color: #b8941f;
    border: 2px solid rgba(255,204,68,0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .split-layout {
        flex-direction: column;
        min-height: auto;
    }

    .left-section {
        flex: 1;
        padding: 30px 20px;
        min-height: auto;
        width: 100%;
        align-items: flex-start;
    }

    .right-section {
        flex: 1;
        min-height: 300px;
        width: 100%;
    }

    .wave-divider {
        display: none;
    }

    .content-wrapper {
        max-width: 100%;
        width: 100%;
    }

    h1 {
        font-size: 36px;
        line-height: 44px;
    }

    .slogan-line {
        font-size: 36px;
        line-height: 44px;
    }

    .has-line {
        padding: 0 20px;
        text-align: center;
        font-size: 18px;
    }

    .has-line::before {
        display: block;
        top: -8px;
        width: 60px;
    }

    .has-line::after {
        display: block;
        bottom: -8px;
        width: 80px;
    }

    .form-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .form-group input {
        width: 100%;
        padding-right: 20px;
        height: 55px;
    }

    .form-group button {
        position: relative;
        width: 100%;
        height: 55px;
    }
}

@media (max-width: 767px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    .split-layout {
        flex-direction: column;
        width: 100%;
        overflow-x: hidden;
    }

    .left-section {
        padding: 20px 15px;
        min-height: auto;
        width: 100%;
        flex: 1;
        align-items: center;
        justify-content: center;
    }

    .content-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .logo {
        margin-bottom: 25px;
        text-align: center;
        width: 100%;
    }

    .logo-img {
        max-width: 320px;
        margin: 0 auto;
        display: block;
    }

    .main-content {
        width: 100%;
    }

    h1 {
        font-size: 28px;
        line-height: 36px;
        text-align: center;
        margin-bottom: 15px;
        width: 100%;
    }

    .slogan {
        text-align: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
        width: 100%;
    }

    .slogan-line {
        font-size: 28px;
        line-height: 36px;
        white-space: normal;
        display: inline-block;
    }

    .subtitle {
        margin-bottom: 25px;
        width: 100%;
        gap: 10px;
    }
    
    .subtitle-text {
        font-size: 0.9rem;
    }

    .has-line {
        font-size: 16px;
        padding: 0 15px;
        text-align: center;
        margin-bottom: 15px;
        width: 100%;
    }

    .has-line::before {
        display: block;
        top: -8px;
        width: 50px;
    }

    .has-line::after {
        display: block;
        bottom: -8px;
        width: 70px;
    }

    .form-group {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
        width: 100%;
    }

    .form-group input {
        width: 100% !important;
        height: 50px;
        font-size: 14px;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }

    .form-group button {
        position: relative;
        width: 100%;
        height: 50px;
        font-size: 16px;
    }

    .contact-section {
        margin-top: 35px;
        padding-top: 20px;
        text-align: center;
        width: 100%;
    }

    .contact-label {
        font-size: 12px;
    }

    .contact-email {
        font-size: 14px;
        word-break: break-word;
        display: inline-block;
    }

    .right-section {
        min-height: 300px;
        width: 100%;
    }

    /* Activer les animations sur mobile */
    .tech-icon {
        animation: float 6s ease-in-out infinite !important;
        will-change: transform;
    }

    .space-background::before,
    .space-background::after {
        animation: pulse 3s ease-in-out infinite !important;
    }
}

/* Media query spécifique pour très petits écrans */
@media (max-width: 480px) {
    .left-section {
        padding: 15px 12px;
    }

    .logo-img {
        max-width: 250px;
    }

    h1 {
        font-size: 24px;
        line-height: 32px;
    }

    .slogan-line {
        font-size: 24px;
        line-height: 32px;
    }

    .subtitle-text {
        font-size: 0.85rem;
    }

    .has-line {
        font-size: 14px;
    }

    .form-group input {
        font-size: 14px;
        padding-left: 15px;
    }

    .form-group button {
        font-size: 14px;
    }

    .contact-email {
        font-size: 13px;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .left-section {
        padding: 40px 40px;
    }

    h1 {
        font-size: 52px;
        line-height: 60px;
    }

    .slogan-line {
        font-size: 52px;
        line-height: 60px;
    }

    .form-group input {
        padding-right: 180px;
    }

    .form-group button {
        width: 160px;
    }
}

@media (min-width: 1400px) {
    .left-section {
        padding: 60px 80px;
    }

    .content-wrapper {
        max-width: 900px;
    }

    h1 {
        font-size: 60px;
        line-height: 68px;
    }

    .slogan-line {
        font-size: 60px;
        line-height: 68px;
    }

    .subtitle-text {
        font-size: 1.3rem;
    }
}
