@font-face {
    font-family: 'BBHSansBartle-Regular'; 
    src: url('../fonts/BBHSansBartle-Regular.ttf') format('truetype');
    font-weight: normal; 
    font-style: normal;
    /* Optionnel: pour éviter un flash de texte invisible */
    font-display: swap; 
}
@font-face {
    font-family: 'Creepster-Regular'; 
    src: url('../fonts/Creepster-Regular.ttf') format('truetype');
    font-weight: normal; 
    font-style: normal;
    /* Optionnel: pour éviter un flash de texte invisible */
    font-display: swap; 
}
@font-face {
    font-family: 'Doto-Bold'; 
    src: url('../fonts/Doto-Bold.ttf') format('truetype');
    font-weight: normal; 
    font-style: normal;
    /* Optionnel: pour éviter un flash de texte invisible */
    font-display: swap; 
}
:root {
    --primary-color: #00d2ff;
    --secondary-color: #3a7bd5;
    --dark-bg: #0f172a;
    --light-bg: #1e293b;
    --text-color: #f8fafc;
    --accent-color: #38bdf8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

/* NAVBAR */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    height: 70px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #334155;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'BBHSansBartle-Regular', sans-serif;
}

.logo span { color: var(--primary-color); }

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    transition: 0.3s;
}

.nav-links li a:hover { color: var(--primary-color); }

/* HERO BANNER */
.hero {
    min-height: 450px;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), 
                url('../img/banner.jpeg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.highlight { color: var(--primary-color); }

.btn {
    display: inline-block;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: transform 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover { transform: scale(1.05); }

/* SECTIONS */
.section { padding: 5rem 0; }
.bg-light { background-color: var(--light-bg); }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #334155;
    transition: 0.3s;
}

.service-card:hover { border-color: var(--primary-color); }
.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Section: Formulaire de contact */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}
/* --- PAGE SERVICES --- */
.services-page {
    margin-top: -50px;
    padding-bottom: 5rem;
}

.hero-small {
    height: 40vh;
    min-height: 300px;
}

.tool-card {
    background: var(--light-bg);
    border: 1px solid #334155;
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.tool-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tool-desc {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.copy-box {
    display: flex;
    gap: 10px;
}

.copy-box input {
    flex: 1;
    background: var(--dark-bg) !important;
}

.copy-box button {
    background: #334155;
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.copy-box button:hover {
    background: var(--primary-color);
}

.grayed {
    background-color: #0f172a !important;
    color: #64748b !important;
    cursor: not-allowed;
}

.error-msg {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 10px;
    border-left: 3px solid #ef4444;
    background: rgba(251, 191, 36, 0.1);
}

.warning-msg {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 10px;
    border-left: 3px solid #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.info-msg {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Alertes résultats */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1.5rem;
    font-weight: bold;
}
.alert.success { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid #22c55e; }
.alert.error { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid #ef4444; }
.alert.info { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid #3b82f6; }

/* Deepfake Result */
.deepfake-res {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--dark-bg);
    border-radius: 10px;
}

.percentage {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}
