/* =============================================
   ADS Sécurité Privée — Feuille de style
   ============================================= */

/* === VARIABLES === */
:root {
    --dark:         #020617;
    --surface:      #0f172a;
    --accent:       #D94C4C;
    --accent-hover: #b83c3c;
    --accent-light: rgba(217, 76, 76, 0.15);
    --text:         #e2e8f0;
    --muted:        #94a3b8;
    --border:       rgba(255, 255, 255, 0.08);
    --card:         rgba(255, 255, 255, 0.04);
    --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius:       14px;
}

/* === RESET === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* === BASE === */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* === TYPOGRAPHY === */
h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.15; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2;  font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
p  { color: var(--muted); line-height: 1.8; }

/* === HEADER === */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

header.scrolled {
    padding: 14px 40px;
    background: rgba(2, 6, 23, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* === NAV === */
nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 500;
    position: relative;
    transition: color var(--transition);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width var(--transition);
}

nav a:hover               { color: var(--text); }
nav a:hover::after        { width: 100%; }

.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 9px 20px;
    border-radius: 30px;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
}

.nav-cta::after           { display: none !important; }
.nav-cta:hover            { background: var(--accent-hover) !important; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(217,76,76,.35); }

/* === HAMBURGER === */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--surface);
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.45;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(2,6,23,.35) 0%,
        rgba(2,6,23,.5)  55%,
        rgba(2,6,23,1)   100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 80px 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Badge animé */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    border: 1px solid rgba(217,76,76,.3);
    color: #f87171;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 28px;
    width: max-content;
}

.hero-badge-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.4); }
}

.hero h1 {
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 30px rgba(0,0,0,.5);
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 44px;
    letter-spacing: .04em;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Indicateur de scroll */
.scroll-down {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: .4;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text);
    animation: float 3s ease-in-out infinite;
}

.scroll-down::after {
    content: '';
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--text), transparent);
}

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

/* === BOUTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: inherit;
    line-height: 1;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217,76,76,.4);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.25);
    transform: translateY(-2px);
}

/* === LOGO SVG === */
.logo-svg {
    width: 90px;
    margin: 0 auto 28px;
}

.logo-svg circle,
.logo-svg path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: draw 2s ease forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

/* === SECTIONS === */
.section {
    padding: 100px 40px;
    max-width: 1160px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header { margin-bottom: 56px; }

/* === INTRO / À PROPOS === */
.intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.intro-text p {
    font-size: 1.05rem;
    margin-top: 16px;
    margin-bottom: 32px;
}

.intro-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover {
    border-color: rgba(217,76,76,.3);
    transform: translateY(-3px);
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: .78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* === GRILLE SERVICES === */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: var(--radius);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(217,76,76,.25);
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.card-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 18px;
    color: var(--accent);
}

.card h3 {
    color: var(--text);
    margin-bottom: 10px;
}

/* === TÉMOIGNAGES === */
.testimonial { position: relative; }

.card-quote {
    font-size: 4rem;
    color: var(--accent);
    opacity: .3;
    line-height: 1;
    font-family: Georgia, serif;
    position: absolute;
    top: 16px; left: 24px;
}

.testimonial-body { padding-top: 20px; }

.stars {
    color: #fbbf24;
    font-size: .85rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.7;
}

.testimonial-author {
    font-size: .82rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* === CONTACT === */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
}
.contact-item:hover { border-color: rgba(217,76,76,.25); }

.contact-item-icon  { font-size: 1.2rem; flex-shrink: 0; margin-top: 3px; color: var(--accent); width: 20px; text-align: center; }

.contact-item-label {
    font-size: .74rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 4px;
}

.contact-item-value {
    color: var(--text);
    font-weight: 500;
    font-size: .92rem;
}

.contact-item-value a {
    color: var(--text);
    transition: color var(--transition);
}
.contact-item-value a:hover { color: var(--accent); }

/* === FORMULAIRE === */
.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group { margin-bottom: 18px; }

label {
    display: block;
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 7px;
    font-weight: 500;
}

input,
textarea,
select {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

input::placeholder,
textarea::placeholder { color: rgba(255,255,255,.25); }

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,.07);
    box-shadow: 0 0 0 3px rgba(217,76,76,.12);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

select option {
    background: var(--surface);
    color: var(--text);
}

textarea { min-height: 130px; resize: vertical; }

.form-submit {
    width: 100%;
    background: var(--accent);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 30px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217,76,76,.35);
}

.form-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* === ALERTES === */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: .9rem;
}

.alert-success {
    background: rgba(74,222,128,.1);
    border: 1px solid rgba(74,222,128,.3);
    color: #4ade80;
}

.alert-error {
    background: rgba(248,113,113,.1);
    border: 1px solid rgba(248,113,113,.3);
    color: #f87171;
}

/* === FOOTER === */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 40px;
}

.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: .85rem;
    color: var(--muted);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
    font-size: .82rem;
    color: var(--muted);
    width: 100%;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
}

/* === ANIMATION REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    header            { padding: 16px 24px; }
    header.scrolled   { padding: 12px 24px; }

    .hamburger        { display: flex; }

    nav {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(2,6,23,.97);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 999;
    }

    nav a             { font-size: 1.4rem; color: var(--text); }
    nav a::after      { display: none; }
    nav.open          { display: flex; }

    .nav-cta          { padding: 14px 32px !important; font-size: 1rem !important; }

    .intro-grid,
    .contact-wrapper  { grid-template-columns: 1fr; gap: 40px; }

    .form-row         { grid-template-columns: 1fr; }
    .section          { padding: 70px 24px; }
    .hero-actions     { flex-direction: column; align-items: stretch; }

    .footer-inner     { flex-direction: column; text-align: center; }
    .footer-links     { justify-content: center; }
}

@media (max-width: 600px) {
    .intro-stats { grid-template-columns: 1fr 1fr; }
    .form-card   { padding: 24px 20px; }
    footer       { padding: 40px 24px; }
}

/* ── Spinner bouton formulaire ── */
@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

.btn-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}

/* ── Apparition du message de succès ── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

#form-success,
#form-error {
    animation: fade-up .45s ease forwards;
}
