/* ============================================================
   ITDG - style.css
   Design fidèle aux screenshots fournis
   ============================================================ */

/* ---- Reset & Variables ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --orange:     #e85d04;
    --orange-dark:#c74e02;
    --dark:       #1a2332;
    --dark2:      #111827;
    --text:       #374151;
    --text-light: #6b7280;
    --bg:         #f4f6f9;
    --bg-white:   #ffffff;
    --border:     #e5e7eb;
    --radius:     12px;
    --shadow:     0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg:  0 8px 40px rgba(0,0,0,0.14);
    --transition: 0.3s ease;
    --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

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

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--dark);
    padding: 0;
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-text { display: flex; flex-direction: column; }

.logo-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.05em;
    line-height: 1;
}

.logo-sub {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 400;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-link {
    padding: 0.5rem 0.9rem;
    color: #d1d5db;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.nav-phone {
    margin-left: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--orange);
    font-weight: 700;
    font-size: 0.9rem;
    border: 1.5px solid var(--orange);
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
}

.nav-phone:hover {
    background: var(--orange);
    color: #fff;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    display: block;
    width: 25px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(232, 93, 4, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        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.02'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(232, 93, 4, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
}

/* Circuit pattern overlay */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(26,35,50,0.0) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26,35,50,0.0) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,35,50,0.95) 0%, rgba(17,24,39,0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 8rem 1.5rem 5rem;
    max-width: 750px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(232,93,4,0.15);
    border: 1px solid rgba(232,93,4,0.3);
    color: var(--orange);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-title span { color: var(--orange); }

.hero-desc {
    font-size: 1.1rem;
    color: #9ca3af;
    max-width: 580px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.stat-sep {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #6b7280;
    animation: bounce 2s infinite;
    z-index: 2;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    font-family: var(--font);
    text-decoration: none;
}

.btn-primary {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

.btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,93,4,0.35);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg); }

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    background: rgba(232,93,4,0.1);
    color: var(--orange);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}

.service-card:hover {
    border-color: var(--orange);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 56px;
    height: 56px;
    background: #f3f4f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--dark);
    transition: background var(--transition), color var(--transition);
}

.service-card:hover .service-icon {
    background: rgba(232,93,4,0.1);
    color: var(--orange);
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.6rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.service-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--orange);
    transition: gap var(--transition);
}

.service-link:hover { text-decoration: underline; }

/* ============================================================
   AVANTAGES
   ============================================================ */
.avantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.avantage-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.avantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.avantage-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.avantage-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.6rem;
}

.avantage-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.65;
}

/* ============================================================
   A PROPOS
   ============================================================ */
.apropos-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.apropos-img { display: flex; justify-content: center; }

.apropos-img-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.apropos-badge {
    background: var(--orange);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.apropos-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.75;
}

.apropos-skills { margin-top: 1.5rem; }

.skill { margin-bottom: 1rem; }

.skill-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.skill-bar {
    height: 8px;
    background: var(--border);
    border-radius: 50px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange), #f97316);
    border-radius: 50px;
    width: 0;
    transition: width 1.5s ease;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
}

.contact-infos { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-card {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(232,93,4,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.contact-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
}

.contact-value:hover { color: var(--orange); }

.contact-dispo {
    background: var(--dark);
    border-radius: var(--radius);
    padding: 1.75rem;
    color: #fff;
}

.contact-dispo h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.contact-dispo p {
    font-size: 0.88rem;
    color: #9ca3af;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.dispo-list { display: flex; flex-direction: column; gap: 0.4rem; }

.dispo-list li {
    font-size: 0.85rem;
    color: #d1d5db;
}

.dispo-list li::marker { color: var(--orange); }

/* Formulaire */
.contact-form-wrap {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: var(--font);
    color: var(--dark);
    background: var(--bg-white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232,93,4,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #9ca3af; }

.form-group textarea { resize: vertical; min-height: 120px; }

/* Alertes */
.form-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-weight: 500;
    font-size: 0.92rem;
    border-left: 4px solid;
}

.form-alert.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.form-alert.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

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

#btnSubmit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--dark2);
    color: #9ca3af;
    padding-top: 3.5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-top: 0.75rem;
    color: #6b7280;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-links a {
    font-size: 0.85rem;
    color: #6b7280;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--orange); }

.footer-contact p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: #6b7280;
    transition: color var(--transition);
}

.footer-contact a:hover { color: var(--orange); }

.footer-bottom {
    padding: 1.25rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: #4b5563;
}

.footer-bottom a { color: #6b7280; }
.footer-bottom a:hover { color: var(--orange); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.1s; }
.fade-in:nth-child(5) { transition-delay: 0.2s; }
.fade-in:nth-child(6) { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .avantages-grid { grid-template-columns: repeat(2, 1fr); }
    .apropos-container { grid-template-columns: 1fr; gap: 2rem; }
    .apropos-img { display: none; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px; left: 0; right: 0; bottom: 0;
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        z-index: 999;
    }

    .nav-menu.open { display: flex; }

    .nav-link { font-size: 1.2rem; }
    .nav-phone { font-size: 1.1rem; }

    .burger { display: flex; }

    .services-grid { grid-template-columns: 1fr; }
    .avantages-grid { grid-template-columns: 1fr; }

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

    .hero-btns { flex-direction: column; }

    .footer-container { grid-template-columns: 1fr; gap: 1.5rem; }

    .stat-sep { display: none; }
}

@media (max-width: 480px) {
    .section { padding: 3rem 0; }
    .hero-stats { gap: 1.5rem; }
}
