/* ==================== LANDING PAGE STYLES ==================== */

:root {
    --primary-blue: #0066cc;
    --light-blue: #e6f2ff;
    --medical-green: #10b981;
    --dark-gray: #1f2937;
    --light-gray: #f9fafb;
}

html {
    scroll-behavior: smooth;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 102, 204, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 102, 204, 0.5);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blur-in {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(0, 102, 204, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(0, 102, 204, 0.8));
    }
}

@keyframes text-shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes letter-pop {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.3);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes word-fade-in {
    0% {
        opacity: 0;
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes line-draw {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

@keyframes text-gradient-flow {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

@keyframes bounce-text {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-letter-pop {
    animation: letter-pop 0.6s ease-out forwards;
}

.animate-word-fade {
    animation: word-fade-in 0.8s ease-out forwards;
}

.animate-line-draw {
    animation: line-draw 1s ease-in-out forwards;
}

.animate-text-gradient {
    animation: text-gradient-flow 3s ease-in-out infinite;
    background-size: 200% 200%;
}

.animate-bounce-text {
    animation: bounce-text 2s ease-in-out infinite;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out forwards;
}

.animate-blur-in {
    animation: blur-in 1s ease-out forwards;
}

.animate-scale-in {
    animation: scale-in 0.6s ease-out forwards;
}

.animate-glow-pulse {
    animation: glow-pulse 3s ease-in-out infinite;
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    font-weight: bold;
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: white;
    color: #0066cc;
    font-weight: bold;
    border: 2px solid #0066cc;
    border-radius: 9999px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

section {
    padding: 5rem 0;
}

@media (min-width: 1024px) {
    section {
        padding: 8rem 0;
    }
}

.hero-gradient {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 50%, #10b981 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.card-hover {
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.card-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-mockup {
    background: linear-gradient(to bottom right, #111827, #000);
    border-radius: 2rem;
    padding: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
}

.phone-screen {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.phone-status-bar {
    background: linear-gradient(to right, #0066cc, #0052a3);
    color: white;
    font-size: 0.75rem;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgb(220, 253, 244);
    color: rgb(12, 74, 110);
    font-size: 0.875rem;
    font-weight: 500;
}

* {
    transition: colors 0.3s ease;
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 1.875rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem !important;
    }
    
    h2 {
        font-size: 2.25rem !important;
    }
}

/* ═══════════════════════════════════════════════════════
   COOKIE BANNER — sélecteur ID pour priorité maximale
   (bat Tailwind, pas de conflit hidden / display)
   ═══════════════════════════════════════════════════════ */

/* Base visuelle */
#cookie-banner {
    z-index: 1000;
    background: rgba(17, 24, 39, 0.96);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* Option 1 : Bandeau fixe en bas, sans animation */
#cookie-banner.cookie-banner--fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

/* Option 2 : Bloc intégré dans la page, non flottant */
#cookie-banner.cookie-banner--inline {
    position: relative;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

/* Option 3 : Popup centrée au milieu de l'écran */
#cookie-banner.cookie-banner--popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 680px;
}

/* Fond sombre (popup uniquement) */
.cookie-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
    backdrop-filter: blur(3px);
}
.cookie-overlay.active {
    display: block;
}

.cookie-banner__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.cookie-banner__media {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.cookie-banner__image {
    width: 110px;
    max-width: 100%;
    height: auto;
    display: block;
}

.cookie-banner__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.cookie-banner__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: justify;
}

.cookie-banner__text h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
}

.cookie-banner__text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    line-height: 1.45;
}

.cookie-banner__link {
    display: inline-block;
    margin-top: 0.75rem;
    color: #93c5fd;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner__link:hover {
    color: #bfdbfe;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    border: 0;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    font-weight: 700;
    cursor: pointer;
}

.cookie-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #0066cc 0%, #10b981 100%);
}

.cookie-btn--secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.cookie-manage {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 99;
    border: 0;
    border-radius: 9999px;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0052a3 0%, #0066cc 100%);
    box-shadow: 0 10px 24px rgba(0, 82, 163, 0.38);
    cursor: pointer;
}

@media (min-width: 768px) {
    .cookie-banner__content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1.75rem;
        padding: 1.25rem 1.5rem;
    }

    .cookie-banner__media {
        width: 180px;
    }

    .cookie-banner__image {
        width: 150px;
    }

    .cookie-banner__body {
        max-width: 720px;
    }

    .cookie-banner__text {
        max-width: 100%;
    }
}
