/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Empêche tout débordement horizontal global (corrige bande blanche à droite) */
html { overflow-x: hidden; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-switcher {
    display: flex;
    gap: 8px;
    margin-left: 1rem;
}

.lang-btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover { background: #f9fafb; }
.lang-btn.active { border-color: #6366f1; color: #4f46e5; background: #eef2ff; }

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
}

.site-logo { height: 44px; width: auto; margin-right: 10px; display: block; }

/* Hide brand text next to the logo */
.nav-logo span { display: none; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #6366f1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Section Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-top: 80px;
    position: relative;
    overflow: hidden; /* coupe les éléments absolus (caméra) pour éviter le scroll horizontal */
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    color: #fbbf24;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #fbbf24;
    color: #1f2937;
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #6366f1;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.btn-outline:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.camera-mockup {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.camera-mockup i {
    font-size: 8rem;
    color: #fbbf24;
}

/* Nouveau mockup logiciel */
.software-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen-mockup {
    width: 400px;
    height: 300px;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.screen-header {
    background: #2a2a2a;
    padding: 8px 16px;
    display: flex;
    align-items: center;
}

.screen-dots {
    display: flex;
    gap: 6px;
}

.screen-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.screen-dots span:nth-child(2) {
    background: #ffbd2e;
}

.screen-dots span:nth-child(3) {
    background: #27ca3f;
}

.screen-content {
    padding: 20px;
    height: calc(100% - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.camera-feed {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.camera-feed i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.surveillance-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.detection-alert {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Hero Powered By */
.hero-powered-by {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* Caméra de sécurité animée (coin haut droit du hero) */
.hero-security-camera {
    position: absolute;
    top: 80px;
    right: 0;
    width: 220px;
    height: 220px;
    pointer-events: none;
    z-index: 1501;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,0.35));
}

/* Plaque de fixation au coin supérieur droit */
/* Base retirée pour un design minimal (trait seul) */

/* Douille inclinée pour une jonction homogène avec la tige */
/* Douille retirée */

.hero-security-camera .camera-arm {
    position: absolute;
    top: 0;
    right: 0;
    width: 85px;
    height: 14px;
    background: linear-gradient(180deg, #1f2937, #0d1526);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -2px 0 rgba(0,0,0,0.75), 0 6px 12px rgba(0,0,0,0.3);
    transform-origin: 100% 0%;
    transform: rotate(-45deg);
    z-index: 1;
}

.hero-security-camera .camera-arm::before { display: none; }

.hero-security-camera .camera-head {
    position: absolute;
    top: 30px; /* nudge up */
    right: 56px; /* further right */
    width: 78px;
    height: 78px;
    transform-origin: 95% 35%;
    animation: camera-sweep 5s ease-in-out infinite;
    z-index: 3;
}

/* Hub (base ronde) au point de jonction bras/caméra */
/* Retiré: hub circulaire */

.hero-security-camera .camera-body {
    width: 78px;
    height: 44px;
    background: linear-gradient(180deg, #0f172a 0%, #111827 60%, #0b1220 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    position: absolute;
    top: 12px;
    right: 0;
    box-shadow: 0 10px 24px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -2px 0 rgba(0,0,0,0.6);
}

.hero-security-camera .camera-led {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239,68,68,0.85);
    animation: led-blink 2.4s ease-in-out infinite;
}

.hero-security-camera .camera-lens {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 45% 45%, #67e8f9 0%, #22d3ee 40%, #0e7490 75%, #020617 100%);
    box-shadow: 0 0 10px rgba(34,211,238,0.85), 0 0 24px rgba(34,211,238,0.35);
    border: 2px solid rgba(255,255,255,0.15);
}

.hero-security-camera .camera-lens::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.65);
    filter: blur(0.3px);
}

@keyframes camera-sweep {
    0% { transform: rotate(-60deg); }
    50% { transform: rotate(-30deg); }
    100% { transform: rotate(-60deg); }
}

@keyframes led-blink {
  0%, 20% { opacity: 0.15; }
  25%, 35% { opacity: 1; }
  40%, 100% { opacity: 0.15; }
}

@media (max-width: 768px) {
    /* Plus d'espace en bas du hero pour éviter le chevauchement avec le badge powered-by */
    .hero { padding-bottom: 120px; }

    /* Légère marge sous le mockup pour dégager l'alerte en bas à droite */
    .screen-mockup { margin-bottom: 12px; }
  .hero-security-camera {
    top: 80px;
    right: 0;
    transform: scale(0.70);
    transform-origin: top right;
  }
  .hero-security-camera .camera-arm {
    width: 84px;
    height: 12px;
    transform: rotate(-45deg);
  }
  .hero-security-camera .camera-head {
    top: 30px;
    right: 50px;
  }
}

.hero-powered-by span {
    font-weight: 500;
}

.codally-logo {
    height: 20px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hero-powered-by:hover .codally-logo {
    opacity: 1;
}

/* Sections générales */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Problème et Solution */
.problem-solution {
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.problem-solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.problem-solution-content {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.problem-section,
.solution-section {
    flex: 1;
}

.solution-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    font-size: 18px;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.solution-arrow::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

.problem-section h2,
.solution-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.problem-section h2::after {
    content: '❌';
    position: absolute;
    top: -20px;
    right: 20%;
    font-size: 2rem;
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.problem-cards,
.solution-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.problem-card,
.solution-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(239, 68, 68, 0.18);
}

.problem-icon,
.solution-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    position: relative;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: white;
    flex-shrink: 0;
}

.problem-icon::after { display: none; }

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.3; }
}

.problem-icon i {
    font-size: 1rem;
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.problem-content,
.solution-content {
    flex: 1;
}

.problem-card h3,
.solution-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 2px 0 4px;
    color: #ffffff;
}

.problem-card p,
.solution-card p {
    font-size: 0.85rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 8px;
}

.problem-stats,
.solution-highlight {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.problem-stats > span,
.solution-highlight {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 6px 14px rgba(0,0,0,0.15);
    backdrop-filter: blur(8px);
}

/* Emphase du nombre pour les highlights Solution (sans badge intérieur) */
.solution-highlight strong {
    color: #34d399;
    font-weight: 800;
}

/* Séparateur discret entre nombre et libellé */
.solution-highlight span::before {
    content: '•';
    margin: 0 2px 0 0;
    color: rgba(255,255,255,0.5);
}

/* Hover/subtile focus */
.problem-stats > span:hover,
.solution-highlight:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 10px 18px rgba(0,0,0,0.18);
}

@media (max-width: 768px) {
  .problem-stats,
  .solution-highlight { justify-content: center; }
  .problem-stats > span,
  .solution-highlight { font-size: 0.78rem; padding: 6px 10px; }
}

/* Section Solution */
.solution-section {
    text-align: center;
    position: relative;
}

.solution-section::before { display: none; }

@keyframes sparkle {
    0%, 100% { transform: translateX(-50%) scale(1) rotate(0deg); }
    50% { transform: translateX(-50%) scale(1.2) rotate(180deg); }
}

.solution-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.solution-section h2::after { display: none; }

@keyframes checkmark {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.solution-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 1.25rem;
}

.solution-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.18);
}

.solution-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
}

.solution-icon::after { display: none; }

.solution-icon i {
    font-size: 1rem;
    color: white;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.solution-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 2px 0 4px;
    color: #ffffff;
}

.solution-card h3::after { display: none; }

.solution-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
    font-size: 0.85rem;
    margin: 0 0 8px;
}

.solution-card .solution-highlight {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    padding: 4px 8px;
    border-radius: 8px;
    border-left: 2px solid #10b981;
}

.solution-card .solution-highlight strong {
    color: #34d399;
    font-size: 0.9rem;
}

/* Section Fonctionnalités et Avantages */
.features-advantages {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.features-advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="%23e2e8f0"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.2;
}

.features-advantages .container {
    position: relative;
    z-index: 2;
}

.features-section,
.advantages-section {
    margin-bottom: 3rem;
}

.features-section h2,
.advantages-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #1f2937;
    position: relative;
}

.features-section h2::after,
.advantages-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 1.25rem;
}

.feature-card {
    background: white;
    padding: 1rem 1rem;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.12);
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-auto-rows: auto;
    column-gap: 10px;
    row-gap: 8px;
    align-items: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
}

.feature-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1;
}

.feature-icon::after { display: none; }

.feature-icon i {
    font-size: 1rem;
    color: white;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #111827;
    grid-column: 2;
}

.feature-card h3::after { display: none; }

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 4px 0 0;
    grid-column: 1 / -1;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

/* Section Avantages */
.advantages {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagons" width="30" height="30" patternUnits="userSpaceOnUse"><polygon points="15,0 30,8.66 30,21.65 15,30 0,21.65 0,8.66" fill="none" stroke="%23e2e8f0" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagons)"/></svg>');
    opacity: 0.3;
}

.advantages .container {
    position: relative;
    z-index: 2;
}

.advantages .section-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1f2937;
    text-align: center;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.advantages .section-header h2::after {
    content: '🏆';
    position: absolute;
    top: -20px;
    right: 20%;
    font-size: 2rem;
    animation: trophy 2s infinite;
}

@keyframes trophy {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.advantage-card {
    background: white;
    padding: 1rem 1rem;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.12);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.advantage-content {
    flex: 1;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
}

.advantage-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    margin: 0.25rem 0 0;
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.3);
    position: relative;
}

.advantage-icon::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    opacity: 0.3;
    z-index: -1;
    animation: pulse-ring 2s infinite;
}

.advantage-icon i {
    font-size: 1rem;
    color: white;
    animation: none;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)); }
}

.advantage-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 2px 0 4px;
    color: #111827;
}

.advantage-card p {
    color: #6b7280;
    line-height: 1.45;
    font-size: 0.85rem;
    margin: 0 0 8px;
}

.advantage-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    background: rgba(245, 158, 11, 0.08);
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.advantage-stat::before { display: none; }

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: #b45309;
}

.stat-label {
    font-size: 0.75rem;
    color: #92400e;
    letter-spacing: 0.2px;
    font-weight: 600;
}





/* Section Contact et Devis */
.contact {
    padding: 4rem 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden; /* évite tout débordement horizontal (caméra décorative) */
}

/* Caméra décorative pour la section contact (coin haut gauche) */
.contact-security-camera {
    position: absolute;
    top: -8px;
    left: 0;
    width: 220px;
    height: 160px;
    pointer-events: none;
    z-index: 1;
}

.contact-security-camera .camera-arm {
    position: absolute;
    top: 0;
    left: 0;
    width: 110px;
    height: 12px;
    background: linear-gradient(180deg, #1f2937, #0d1526);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -2px 0 rgba(0,0,0,0.75), 0 6px 12px rgba(0,0,0,0.15);
    transform-origin: 0% 0%;
    transform: rotate(45deg);
}

.contact-security-camera .camera-head {
    position: absolute;
    top: 46px;
    left: 70px;
    width: 78px;
    height: 78px;
    transform-origin: 5% 35%;
    animation: contact-camera-sweep 5s ease-in-out infinite;
}

.contact-security-camera .camera-body {
    width: 78px;
    height: 44px;
    background: linear-gradient(180deg, #0f172a 0%, #111827 60%, #0b1220 100%);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    position: absolute;
    top: 12px;
    left: 0;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -2px 0 rgba(0,0,0,0.6);
}

.contact-security-camera .camera-led {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239,68,68,0.65);
    animation: led-blink 2.4s ease-in-out infinite;
}

.contact-security-camera .camera-lens {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 45% 45%, #67e8f9 0%, #22d3ee 40%, #0e7490 75%, #020617 100%);
    box-shadow: 0 0 10px rgba(34,211,238,0.45), 0 0 20px rgba(34,211,238,0.25);
    border: 2px solid rgba(255,255,255,0.15);
}

@keyframes contact-camera-sweep {
    0% { transform: rotate(30deg); }
    50% { transform: rotate(5deg); }
    100% { transform: rotate(30deg); }
}

@media (max-width: 768px) {
  .contact-security-camera { top: -6px; left: 0; transform: scale(0.8); transform-origin: top left; }
  .contact-security-camera .camera-arm { width: 90px; transform: rotate(40deg); }
  .contact-security-camera .camera-head { top: 30px; left: 58px; }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.contact-info p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-reasons {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.contact-reasons li {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    overflow-wrap: anywhere; /* évite le dépassement horizontal */
    word-break: break-word;
}

.contact-reasons li:last-child {
    border-bottom: none;
}

.contact-reasons i {
    color: #10b981;
    margin-right: 1rem;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-reasons strong {
    color: #1f2937;
}

/* Empêche les spans traduits de déborder en mobile */
.contact-reasons li span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-form-container {
    display: flex;
    justify-content: center;
}

.contact-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.form-toggle {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, #eef2ff, #f3f4f6);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 6px;
    gap: 6px;
    margin: 0 auto 1rem; /* center horizontally */
    width: max-content;  /* shrink to content (desktop) */
    overflow: hidden;
}

.form-toggle .toggle-indicator {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.25s ease;
}

.toggle-btn {
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: normal; /* autorise le saut de ligne dans les libellés longs */
    word-break: break-word;
}

.toggle-btn i { color: #6b7280; font-size: 0.95rem; }
.toggle-btn.active i { color: #4f46e5; }
.toggle-btn.active { color: #111827; }

.quote-only { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

@media (max-width: 768px) {
  /* La bascule devis/contact doit s'adapter à la largeur écran sur mobile */
  .form-toggle { width: 100%; }
  .toggle-btn { text-align: center; }
  .quote-only { grid-template-columns: 1fr; }
}

.contact-form-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
    text-align: center;
}

.contact-form-card p {
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form .form-group:last-child {
    margin-bottom: 0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-buttons .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Éléments de contact */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-wrap: anywhere; /* casse les emails/urls/numéros si besoin */
    word-break: break-word;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #6b7280;
}

.contact-item i {
    color: #6366f1;
    font-size: 1.2rem;
    width: 20px;
}

/* Styles généraux pour les formulaires */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
}



/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 0.5rem;
    color: #6366f1;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #6366f1;
}

.footer-language {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-language .lang-switcher { margin-top: 0; }

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #9ca3af;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #6366f1;
}

/* Footer Powered By */
.footer-powered-by {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #9ca3af;
    background: rgba(55, 65, 81, 0.1);
    transition: all 0.3s ease;
}

.footer-powered-by:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.footer-powered-by span {
    font-weight: 500;
}

.footer-powered-by .codally-logo {
    height: 18px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-powered-by:hover .codally-logo {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .camera-mockup {
        width: 200px;
        height: 200px;
    }

    .camera-mockup i {
        font-size: 5rem;
    }

    .screen-mockup {
        width: 300px;
        height: 225px;
    }

    .problem-solution-content {
        flex-direction: column;
        gap: 2rem;
    }

    .solution-arrow {
        transform: rotate(90deg);
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .problem-cards,
    .solution-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Centrage horizontal des cartes Solution */
    .solution-cards { justify-items: center; }
    .solution-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .solution-card .solution-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .solution-card .solution-highlight { align-items: center; }

    .features-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .problem-card,
    .solution-card,
    .advantage-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .problem-icon,
    .solution-icon,
    .advantage-icon {
        margin: 0 auto;
    }

    /* Centrage parfait des cartes Solution en mobile */
    .solution-card { text-align: center; }
    .solution-card .solution-content { display: grid; place-items: center; }
    .solution-card .solution-highlight {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }
    .solution-card .solution-highlight strong { display: block; line-height: 1; }
    .solution-card .solution-highlight span { display: block; line-height: 1.1; }



    .form-buttons {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-powered-by {
        bottom: 10px;
        right: 10px;
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    .hero-powered-by .codally-logo {
        height: 16px;
    }
    
    .footer-powered-by {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    .footer-powered-by .codally-logo {
        height: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Section Cas d'utilisation */
.use-cases {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.use-cases .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.use-cases .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.use-case-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.use-case-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.use-case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.use-case-card:hover .use-case-image img {
    transform: scale(1.05);
}

.use-case-content {
    padding: 1.5rem;
}

.use-case-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.use-case-content p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive pour la section cas d'utilisation */
@media (max-width: 768px) {
    .use-cases {
        padding: 60px 0;
    }
    
    .use-cases .section-header h2 {
        font-size: 2rem;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .use-case-image {
        height: 180px;
    }
    
    .use-case-content {
        padding: 1.25rem;
    }
}
