/* ========================================
   PORTAIL RH - Style Illustratif
   ======================================== */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   PAGE D'ACCUEIL (Landing)
   ======================================== */

.landing-page {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-container {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #2c5f8d;
    max-width: 700px;
    padding: 3rem 2rem;
    background: #ffffff;
    border-radius: 30px;
    border: 2px solid #2c5f8d;
    box-shadow: 0 15px 50px rgba(44, 95, 141, 0.15);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c5f8d;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: #5a7fa0;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ========================================
   BOUTON DE CONNEXION STYLE BULLE
   ======================================== */

.login-section {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn-login {
    background: white;
    border: 3px solid #2c5f8d;
    color: #2c5f8d;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 95, 141, 0.2);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login:hover {
    background: #2c5f8d;
    color: white;
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0 8px 25px rgba(44, 95, 141, 0.3);
}

.btn-login:active {
    transform: translateY(-1px) rotate(0deg);
}

.btn-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.btn-login:hover .btn-icon {
    transform: translateX(5px);
}

/* ========================================
   FOOTER HERO
   ======================================== */

.hero-footer {
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.footer-text {
    font-size: 1rem;
    color: #7a9cba;
    font-weight: 400;
    font-style: italic;
}

/* ========================================
   GRANDE TUILE CENTRALE
   ======================================== */

.main-card {
    position: relative;
    z-index: 10;
    background: #ffffff;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    padding: 4rem 3rem;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.main-card h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c5f8d;
    margin-bottom: 1rem;
}

.main-card p {
    font-size: 1.25rem;
    color: #5a7fa0;
    margin: 0 0 2rem 0;
}

/* ========================================
   3 PETITES TUILES
   ======================================== */

.small-card-grid {
    position: relative;
    z-index: 10;
    max-width: 600px;
    width: 90%;
    margin: 1.5rem auto 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mini-card {
    background: #ffffff;
    width: 150px;
    height: 100px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    transition: all 0.3s ease;
}

.mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.mini-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c5f8d;
    margin: 0;
}

/* ========================================
   3 TUILES CARRÉES
   ======================================== */

.card-grid {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 90%;
    margin: 2rem auto 0;
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.small-card {
    background: #ffffff;
    width: 250px;
    height: 250px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

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

.small-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5f8d;
    margin-bottom: 0.5rem;
}

.small-card p {
    font-size: 1rem;
    color: #7a9cba;
    margin: 0;
}

/* ========================================
   BULLES DE DIALOGUE STYLE CROQUIS
   ======================================== */

.bubble {
    position: absolute;
    background: white;
    border: 2px solid #2c5f8d;
    border-radius: 20px;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    color: #2c5f8d;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(44, 95, 141, 0.1);
    animation: floatBubble 15s infinite ease-in-out;
    z-index: 2;
}

.bubble::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.bubble-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    transform: rotate(-3deg);
}

.bubble-1::after {
    bottom: -15px;
    left: 20px;
    border-width: 15px 15px 0 0;
    border-color: #2c5f8d transparent transparent transparent;
}

.bubble-2 {
    top: 20%;
    right: 8%;
    animation-delay: 5s;
    transform: rotate(2deg);
}

.bubble-2::after {
    bottom: -12px;
    right: 25px;
    border-width: 12px 0 0 12px;
    border-color: transparent transparent transparent #2c5f8d;
}

.bubble-3 {
    bottom: 15%;
    left: 10%;
    animation-delay: 10s;
    transform: rotate(-2deg);
}

.bubble-3::after {
    top: -15px;
    left: 30px;
    border-width: 0 15px 15px 0;
    border-color: transparent #2c5f8d transparent transparent;
}

@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

/* ========================================
   FORMES DÉCORATIVES STYLE CROQUIS
   ======================================== */

.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 25s infinite ease-in-out;
    mix-blend-mode: normal;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -120px;
    left: -120px;
    background: radial-gradient(circle, rgba(80, 130, 220, 0.25) 0%, transparent 70%);
    animation-delay: 0s;
}

.shape-2 {
    width: 350px;
    height: 350px;
    bottom: -120px;
    right: -120px;
    background: radial-gradient(circle, rgba(255, 130, 170, 0.2) 0%, transparent 70%);
    animation-delay: 7s;
}

.shape-3 {
    width: 320px;
    height: 320px;
    top: 5%;
    right: -100px;
    background: radial-gradient(circle, rgba(255, 220, 100, 0.2) 0%, transparent 70%);
    animation-delay: 14s;
}

.shape-4 {
    width: 300px;
    height: 300px;
    bottom: 8%;
    left: -100px;
    background: radial-gradient(circle, rgba(90, 150, 240, 0.25) 0%, transparent 70%);
    animation-delay: 3s;
}

.shape-5 {
    width: 330px;
    height: 330px;
    top: -120px;
    left: 45%;
    background: radial-gradient(circle, rgba(255, 190, 120, 0.2) 0%, transparent 70%);
    animation-delay: 8s;
}

.shape-6 {
    width: 290px;
    height: 290px;
    bottom: -100px;
    right: 8%;
    background: radial-gradient(circle, rgba(255, 150, 180, 0.2) 0%, transparent 70%);
    animation-delay: 12s;
}

/* ========================================
   PETITS CERCLES DÉCORATIFS
   ======================================== */

.circle {
    position: absolute;
    border-radius: 50%;
    border: 3px solid;
    animation: floatCircle 10s infinite ease-in-out;
}

.circle-1 {
    width: 60px;
    height: 60px;
    top: 15%;
    left: 20%;
    border-color: rgba(80, 130, 220, 0.8);
    animation-delay: 0s;
}

.circle-2 {
    width: 45px;
    height: 45px;
    top: 60%;
    left: 10%;
    border-color: rgba(255, 130, 170, 0.7);
    animation-delay: 2s;
}

.circle-3 {
    width: 70px;
    height: 70px;
    top: 25%;
    right: 15%;
    border-color: rgba(255, 220, 100, 0.7);
    animation-delay: 4s;
}

.circle-4 {
    width: 35px;
    height: 35px;
    bottom: 25%;
    right: 25%;
    border-color: rgba(179, 212, 229, 0.5);
    animation-delay: 6s;
}

.circle-5 {
    width: 45px;
    height: 45px;
    top: 40%;
    left: 8%;
    border-color: rgba(255, 200, 180, 0.5);
    animation-delay: 3s;
}

.circle-6 {
    width: 25px;
    height: 25px;
    bottom: 35%;
    right: 12%;
    border-color: rgba(255, 182, 193, 0.5);
    animation-delay: 7s;
}

@keyframes floatCircle {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-30px) scale(1.3) rotate(180deg);
        opacity: 0.3;
    }
}

/* ========================================
   LIGNES ONDULÉES
   ======================================== */

.wave {
    position: absolute;
    width: 100%;
    height: 120px;
    opacity: 0.6;
    animation: waveMove 12s infinite linear;
}

.wave-1 {
    top: 20%;
    animation-delay: 0s;
}

.wave-2 {
    bottom: 15%;
    animation-delay: 5s;
}

@keyframes waveMove {
    0% {
        transform: translateX(0) scaleX(1);
    }
    50% {
        transform: translateX(-100px) scaleX(1.1);
    }
    100% {
        transform: translateX(-200px) scaleX(1);
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translate(20px, -20px) scale(1.05) rotate(5deg);
        opacity: 0.4;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-login {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
    
    .hero-container {
        padding: 2rem 1.5rem;
    }
    
    .shape-1,
    .shape-2,
    .shape-3 {
        width: 150px;
        height: 150px;
    }
}
