:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand i {
    color: var(--warning-color);
    margin-right: 10px;
}

.brand-text {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.navbar .nav-link.btn-primary {
    color: #ffffff !important;
}

.navbar .nav-link.btn-primary:hover {
    color: #ffffff !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3498db 100%);
    color: white;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 45%),
                radial-gradient(circle at 80% 80%, rgba(46, 204, 113, 0.12) 0%, rgba(46, 204, 113, 0) 48%);
    opacity: 0.9;
}


.hero-content {
    padding: 40px 0;
}

.hero-buttons {
    gap: 16px;
    margin-bottom: 60px;
}

.hero-buttons .btn {
    min-width: 260px;
    padding: 14px 24px;
    border-radius: 12px;
}

.animate-text {
    background: linear-gradient(45deg, #fff, #3498db, #2ecc71);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 200% auto;
    animation: gradient 3s ease-in-out infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-slide-up {
    animation: slideUp 1s ease-out;
}

.animate-slide-up-delay {
    animation: slideUp 1s ease-out 0.3s both;
}

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.hero-image {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
}

@media (min-width: 992px) {
    .hero-image-desktop {
        max-width: 125% !important;
        transform: translateY(-80px);
    }
}

.floating-card {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    width: 220px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    --tx: 0;
    --ty: 0;
    transform: translate(var(--tx), var(--ty));
}

.floating-card:hover {
    transform: translate(var(--tx), var(--ty)) translateY(-10px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.floating-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--warning-color);
    display: block;
}

.floating-card p {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Bandeau cookies */
.cookie-banner {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.cookie-banner.show {
    opacity: 1;
    pointer-events: auto;
}

.cookie-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.cookie-content {
    position: relative;
    background: #111827;
    color: #f9fafb;
    border-radius: 16px;
    padding: 24px 28px;
    width: min(720px, 92vw);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.cookie-content h6 {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.cookie-banner a {
    color: #93c5fd;
    text-decoration: underline;
}

.cookie-banner .btn {
    border-radius: 10px;
    font-weight: 600;
}

.card1, .card2, .card3 { 
    animation: float 5s ease-in-out infinite;
    width: 220px;
    height: 150px;
}

@keyframes float {
    0%, 100% {
        transform: translate(var(--tx), var(--ty)) translateY(0px);
    }
    50% {
        transform: translate(var(--tx), var(--ty)) translateY(-15px);
    }
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
    transform: rotateY(180deg);
}

.wave-divider .shape-fill {
    fill: #FFFFFF;
}

/* Sections */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.about-section, .features-section, .contact-section {
    padding: 100px 0;
}

.contact-section {
    background: linear-gradient(180deg, #f6f9fc 0%, #eef4fb 100%);
    padding: 80px 0;
}

.contact-shell {
    background: #ffffff;
    border: 1px solid rgba(27, 38, 59, 0.08);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(27, 38, 59, 0.12);
    padding: 28px;
}

.contact-info-panel {
    background: linear-gradient(155deg, #0f2238 0%, #1f3f62 100%);
    border-radius: 18px;
    color: #f8fbff;
    padding: 26px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-info-panel::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    right: -90px;
    top: -90px;
    background: radial-gradient(circle, rgba(124, 196, 255, 0.28) 0%, rgba(124, 196, 255, 0) 70%);
    pointer-events: none;
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(124, 196, 255, 0.16);
    border: 1px solid rgba(124, 196, 255, 0.38);
    color: #d7ecff;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.contact-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 18px;
}

.contact-metric {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}

.contact-metric strong {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.1;
}

.contact-metric small {
    color: rgba(232, 241, 251, 0.82);
    font-size: 0.75rem;
}

.contact-info-panel h4 {
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-info-panel p {
    color: rgba(248, 251, 255, 0.82);
    margin-bottom: 18px;
}

.contact-points {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.contact-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.contact-point i {
    color: #7cc4ff;
    margin-top: 2px;
}

.contact-point span {
    color: rgba(248, 251, 255, 0.92);
    font-size: 0.92rem;
}

.contact-form-panel {
    background: #ffffff;
    border-radius: 18px;
    padding: 8px 4px;
    height: 100%;
}

.contact-form-head {
    margin-bottom: 16px;
}

.contact-form-head h5 {
    color: #1f3246;
    font-weight: 700;
}

.contact-form-head p {
    color: #607286;
    font-size: 0.92rem;
}

.contact-form-panel .form-label {
    font-weight: 600;
    color: #243447;
    margin-bottom: 6px;
}

.contact-form-panel .form-control {
    padding: 10px 12px;
    border-radius: 10px;
}

.contact-input-group {
    border-radius: 10px;
}

.contact-input-group .input-group-text {
    border: 2px solid #e9ecef;
    border-right: 0;
    background: #f8fafc;
    color: #6b7f94;
}

.contact-input-group .form-control {
    border-left: 0;
}

.contact-input-group:focus-within .input-group-text,
.contact-input-group:focus-within .form-control {
    border-color: var(--secondary-color);
}

.contact-form-panel textarea.form-control {
    min-height: 130px;
}

.contact-form-panel .btn-primary {
    min-width: 230px;
}

.contact-note {
    color: #728499;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .contact-shell {
        padding: 18px;
    }
    .contact-info-panel,
    .contact-form-panel {
        padding: 18px;
    }

    .contact-metrics {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

/* Désactiver l'animation hover pour la carte du formulaire de contact */
.contact-section .card {
    transition: none !important;
}

.contact-section .card:hover {
    transform: none !important;
}

.features-section {
    position: relative;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7fd 100%);
    overflow: hidden;
    padding: 72px 0;
}

.features-section::before,
.features-section::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.features-section::before {
    top: -140px;
    right: -90px;
    background: radial-gradient(circle at center, rgba(52, 152, 219, 0.15) 0%, rgba(52, 152, 219, 0) 70%);
}

.features-section::after {
    left: -120px;
    bottom: -170px;
    background: radial-gradient(circle at center, rgba(46, 204, 113, 0.14) 0%, rgba(46, 204, 113, 0) 70%);
}

.features-section .container {
    position: relative;
    z-index: 1;
}

.feature-card {
    height: 100%;
    border-radius: 12px;
    border: 1px solid #dbe6f2 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 4px 12px rgba(25, 45, 74, 0.07) !important;
    position: relative;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    max-width: 378px;
    margin: 0 auto;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 0;
    width: 4px;
    border-radius: 0 6px 6px 0;
    background: #3498db;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(25, 45, 74, 0.12) !important;
    border-color: rgba(52, 152, 219, 0.32) !important;
}

.feature-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 1.12rem 1.1rem 1.1rem 1.25rem !important;
}

.feature-card .card-title {
    font-weight: 600;
    color: #1f3044;
    margin-bottom: 0.2rem;
    font-size: 1.04rem;
}

.feature-card .card-text {
    color: #5c7087;
    margin-bottom: 0;
    font-size: 0.92rem;
    line-height: 1.45;
}

.feature-icon {
    margin-bottom: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #eef5ff;
    box-shadow: none;
    border: 1px solid #d5e4f5;
    transition: transform 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
}

.feature-icon i {
    font-size: 1.18rem !important;
    color: inherit !important;
}

.feature-icon i {
    transition: transform 0.28s ease;
}

.feature-card:hover .feature-icon {
    transform: translateY(-2px);
    background: #e6f1ff;
    border-color: #bfd8f4;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.03);
}

.feature-grid > div:nth-child(1) .feature-card::before { background: #3498db; }
.feature-grid > div:nth-child(2) .feature-card::before { background: #2ecc71; }
.feature-grid > div:nth-child(3) .feature-card::before { background: #f39c12; }
.feature-grid > div:nth-child(4) .feature-card::before { background: #17a2b8; }
.feature-grid > div:nth-child(5) .feature-card::before { background: #e74c3c; }
.feature-grid > div:nth-child(6) .feature-card::before { background: #6c757d; }

.feature-grid > div:nth-child(1) .feature-icon { background: #eef6ff; border-color: #cfe3fb; color: #2d84d2; }
.feature-grid > div:nth-child(2) .feature-icon { background: #ecfbf3; border-color: #ccefdc; color: #26a65b; }
.feature-grid > div:nth-child(3) .feature-icon { background: #fff8ec; border-color: #f8e1bd; color: #d88912; }
.feature-grid > div:nth-child(4) .feature-icon { background: #ecf9fb; border-color: #c8eaf0; color: #15879a; }
.feature-grid > div:nth-child(5) .feature-icon { background: #fff0ef; border-color: #f3d0cd; color: #cf4a3d; }
.feature-grid > div:nth-child(6) .feature-icon { background: #f3f4f6; border-color: #dfe3e9; color: #596273; }

.contact-shell .row {
    align-items: flex-start;
}

.contact-form-panel {
    max-width: 620px;
    margin-left: auto;
    height: auto;
}

.feature-grid > div {
    animation: featureAppear 0.7s ease both;
}

.feature-grid > div:nth-child(1) { animation-delay: 0.04s; }
.feature-grid > div:nth-child(2) { animation-delay: 0.12s; }
.feature-grid > div:nth-child(3) { animation-delay: 0.2s; }
.feature-grid > div:nth-child(4) { animation-delay: 0.28s; }
.feature-grid > div:nth-child(5) { animation-delay: 0.36s; }
.feature-grid > div:nth-child(6) { animation-delay: 0.44s; }

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

/* Forms */
.form-control {
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.form-select {
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* Buttons */
.btn {
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    border: none;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color) !important;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer a {
    color: var(--light-color);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: linear-gradient(90deg, var(--secondary-color), var(--success-color));
    transition: width 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer a:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-content {
        padding: 70px 0;
    }
    .hero-buttons .btn {
        min-width: 220px;
    }
}

@media (max-width: 992px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    .nav-link {
        margin: 0 6px;
        padding: 6px 8px;
    }
    .hero-content {
        padding: 60px 0;
    }
    .hero-section h1 {
        font-size: 2.4rem;
        line-height: 1.2;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .hero-image {
        gap: 16px;
        margin-left: -5% !important;

    .contact-form-panel .btn-primary {
        width: 100%;
        min-width: 0;
    }
        margin-top: -40px !important;
    }
    .hero-image img {
        max-width: 110% !important;
    }
    .floating-card {
        width: 150px;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }
    .hero-content {
        padding: 50px 0;
    }
    .hero-section h1 {
        font-size: 2.1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .hero-image {
        flex-direction: column;
        align-items: center;
        margin-left: 0 !important;
        margin-top: 0 !important;
    }
    .hero-image img {
        max-width: 100% !important;
        height: auto !important;
    }
    .floating-card {
        width: 140px;
    }
    .hero-buttons .btn {
        min-width: 0;
    }
    .card {
        box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    }
}

@media (max-width: 576px) {
    body {
        font-size: 15px;
    }
    .navbar-brand {
        font-size: 1.1rem;
    }
    .nav-link {
        margin: 0 4px;
    }
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    .hero-content .lead {
        margin-bottom: 8px;
    }
    .hero-section .row {
        flex-direction: column;
    }
    .hero-image {
        margin-top: -8px !important;
        margin-left: -8% !important;
        margin-bottom: 24px;
    }
    .hero-image-inline {
        padding: 8px 0;
        margin-top: 0 !important;
        margin-bottom: 8px;
    }
    .hero-image img {
        max-width: 110% !important;
        height: auto;
    }
    .hero-content {
        padding: 40px 0 20px 0;
    }
    .hero-buttons .btn,
    .btn-lg {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
    }
    .floating-card {
        width: 120px;
        padding: 14px;
    }
    .floating-card i {
        font-size: 1.4rem;
    }
    .feature-icon {
        width: 68px;
        height: 68px;
        border-radius: 18px;
    }
    .feature-icon i {
        font-size: 2rem !important;
    }
    .feature-card:hover {
        transform: translateY(-8px);
    }
    .section-title {
        font-size: 1.6rem;
    }
    .footer {
        padding: 40px 0 16px;
    }
}

/* Dashboard Sidebar */
.sidebar {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar .nav {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.sidebar .nav-item:last-child {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}