/* ============================================================
   Clefs JNJ – Feuille de styles principale
   Design : sombre / rouge / blanc  (inspiré EcuTech)
   ============================================================ */

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red:      #cc0000;
    --red-dark: #990000;
    --dark:     #0d0d0d;
    --dark2:    #1a1a1a;
    --dark3:    #252525;
    --mid:      #333333;
    --light:    #f5f5f5;
    --white:    #ffffff;
    --font:     'Arial', 'Helvetica Neue', sans-serif;
    --header-h: 95px;
    --radius:   6px;
    --trans:    0.25s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
address { font-style: normal; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.accent { color: var(--red); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 2px solid var(--red);
    z-index: 1000;
    transition: background var(--trans), box-shadow var(--trans);
}

.site-header.scrolled {
    background: rgba(5, 5, 5, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 24px;
}

.logo-link { flex-shrink: 0; }

.site-logo {
    height: 85px;
    width: auto;
    object-fit: contain;
}

.main-nav { margin-left: auto; }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius);
    transition: background var(--trans), color var(--trans);
}

.nav-link:hover,
.nav-link.active {
    background: var(--red);
    color: var(--white);
}

.header-tel {
    flex-shrink: 0;
    background: var(--red);
    color: var(--white);
    padding: 8px 18px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background var(--trans);
}

.header-tel:hover { background: var(--red-dark); }

/* Burger mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    cursor: pointer;
    margin-left: auto;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--trans), opacity var(--trans);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 0;
    padding-top: var(--header-h);
}

.hero-slides { position: relative; width: 100%; height: 100%; }

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active { opacity: 1; z-index: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.45) 60%,
        rgba(0,0,0,0.15) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding: 0 60px;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 18px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Contrôles slider */
.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.45);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.25);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--trans);
}
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-prev:hover,
.hero-next:hover { background: var(--red); }

.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: background var(--trans), transform var(--trans);
}

.hero-dot.active,
.hero-dot:hover { background: var(--red); transform: scale(1.25); }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--trans), color var(--trans), border-color var(--trans);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-sm  { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg  { padding: 14px 36px; font-size: 1rem; }

/* ============================================================
   BANNIÈRE AVANTAGES
   ============================================================ */
.advantages-bar {
    background: var(--dark2);
    border-top: 3px solid var(--red);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 24px 0;
}

.advantages-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-right: 1px solid rgba(255,255,255,0.07);
}
.advantage-item:last-child { border-right: none; }

.advantage-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
    color: var(--red);
}

.advantage-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
}
.advantage-item span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
}

/* ============================================================
   SECTIONS COMMUNES
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
}

/* ============================================================
   NOUVELLES PRESTATIONS
   ============================================================ */
.prestations-section {
    padding: 72px 0;
    background: var(--dark3);
}

.prestations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.prestation-card {
    background: var(--dark2);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
    display: flex;
    flex-direction: column;
}

.prestation-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(204,0,0,0.25);
    border-color: var(--red);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--mid);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.prestation-card:hover .card-image img { transform: scale(1.05); }

.card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1e1e, #2e2e2e);
}

.placeholder-icon { font-size: 3rem; opacity: 0.35; }

.card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--white);
}

.card-text {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.6;
    flex: 1;
}

.card-body .btn { align-self: flex-start; margin-top: 8px; }

/* ============================================================
   NOS SERVICES
   ============================================================ */
.services-section {
    padding: 72px 0;
    background: var(--dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--dark2);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 30px 22px;
    text-align: center;
    transition: border-color var(--trans), transform var(--trans);
}

.service-card:hover {
    border-color: var(--red);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--white);
}

.service-card p {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 18px;
    line-height: 1.6;
}

.service-link {
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 700;
    transition: color var(--trans);
}
.service-link:hover { color: #ff4444; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
    padding: 60px 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-content h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 900;
    margin-bottom: 8px;
}

.cta-content p {
    font-size: 0.95rem;
    opacity: 0.88;
}

.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.cta-section .btn-primary {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
}
.cta-section .btn-primary:hover {
    background: var(--light);
    border-color: var(--light);
}
.cta-section .btn-outline {
    border-color: rgba(255,255,255,0.7);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #080808;
    border-top: 3px solid var(--red);
    padding: 56px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
}

.footer-col p,
.footer-col address p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-bottom: 6px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    transition: color var(--trans);
}
.footer-col ul li a:hover,
.footer-col address a:hover { color: var(--red); }

.footer-col address a { color: rgba(255,255,255,0.5); }

.footer-bottom {
    text-align: center;
    padding: 18px 20px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--red); }

/* ============================================================
   PAGES INTERNES (nos-services, FRM3, contact)
   ============================================================ */
.page-header {
    background: var(--dark2);
    border-bottom: 3px solid var(--red);
    padding: calc(var(--header-h) + 30px) 0 30px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    margin-bottom: 8px;
}

.page-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 20px;
}

.page-content h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--red);
    margin: 32px 0 12px;
    border-left: 4px solid var(--red);
    padding-left: 12px;
}

.page-content ul {
    list-style: none;
    margin-bottom: 20px;
}

.page-content ul li {
    padding: 6px 0 6px 18px;
    position: relative;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.78);
}

.page-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--red);
}

.page-content p { color: rgba(255,255,255,0.72); margin-bottom: 14px; }

.page-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.page-content th,
.page-content td {
    border: 1px solid rgba(255,255,255,0.12);
    padding: 10px 14px;
    font-size: 0.88rem;
}
.page-content th {
    background: var(--red);
    color: var(--white);
    font-weight: 700;
}
.page-content td { color: rgba(255,255,255,0.72); }

/* Bouton contact existant */
.btn-contact {
    display: inline-block;
    padding: 12px 28px;
    background: var(--red);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: background var(--trans);
}
.btn-contact:hover { background: var(--red-dark); }

/* Formulaire de contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 20px;
}

.contact-info,
.contact-form {
    background: var(--dark2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 28px;
}

.contact-info h2,
.contact-form h2 {
    font-size: 1.1rem;
    color: var(--red);
    margin-bottom: 16px;
}

.contact-info p { font-size: 0.88rem; color: rgba(255,255,255,0.62); margin-bottom: 8px; }

.contact-form form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px 14px;
    background: var(--dark3);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 0.9rem;
    transition: border-color var(--trans);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--red);
}

button[type="submit"] {
    padding: 12px 28px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--trans);
    align-self: flex-start;
}
button[type="submit"]:hover { background: var(--red-dark); }

/* ============================================================
   ADMIN (pages /admin/)
   ============================================================ */
.admin-body {
    background: #0f0f0f;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--white);
}

.admin-header {
    background: var(--dark2);
    border-bottom: 3px solid var(--red);
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header h1 { font-size: 1.1rem; font-weight: 800; }
.admin-header a  { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.admin-header a:hover { color: var(--red); }

.admin-main { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }

.admin-card {
    background: var(--dark2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 32px;
    margin-bottom: 28px;
}

.admin-card h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 24px;
}

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th,
.admin-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 0.86rem;
    text-align: left;
}
.admin-table th { color: rgba(255,255,255,0.45); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; }
.admin-table td { color: rgba(255,255,255,0.78); }
.admin-table tr:hover td { background: rgba(255,255,255,0.03); }

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-active   { background: rgba(0,200,80,0.15);  color: #00c850; }
.badge-inactive { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.35); }

.admin-actions { display: flex; gap: 6px; }
.btn-edit   { background: rgba(255,170,0,0.15);  color: #ffaa00; padding: 4px 12px; border-radius: 4px; font-size: 0.78rem; font-weight: 700; }
.btn-delete { background: rgba(200,0,0,0.15);    color: #cc3333; padding: 4px 12px; border-radius: 4px; font-size: 0.78rem; font-weight: 700; }
.btn-toggle { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.5); padding: 4px 12px; border-radius: 4px; font-size: 0.78rem; font-weight: 700; }
.btn-edit:hover   { background: rgba(255,170,0,0.3); }
.btn-delete:hover { background: rgba(200,0,0,0.3); }
.btn-toggle:hover { background: rgba(255,255,255,0.14); }

.admin-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.admin-form-group label { font-size: 0.82rem; color: rgba(255,255,255,0.5); font-weight: 600; }
.admin-form-group input,
.admin-form-group textarea,
.admin-form-group select {
    padding: 10px 14px;
    background: var(--dark3);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 0.9rem;
}
.admin-form-group input:focus,
.admin-form-group textarea:focus {
    outline: none;
    border-color: var(--red);
}
.admin-form-group textarea { resize: vertical; min-height: 90px; }

.alert {
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    margin-bottom: 20px;
}
.alert-success { background: rgba(0,200,80,0.12); border: 1px solid rgba(0,200,80,0.3); color: #00c850; }
.alert-error   { background: rgba(200,0,0,0.12);  border: 1px solid rgba(200,0,0,0.3);  color: #ff5555; }

/* Login */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
}

.login-box {
    background: var(--dark2);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 4px solid var(--red);
    border-radius: 10px;
    padding: 40px 36px;
    width: 100%;
    max-width: 380px;
}

.login-box h1 {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.login-box p { font-size: 0.84rem; color: rgba(255,255,255,0.45); margin-bottom: 28px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .services-grid          { grid-template-columns: repeat(2, 1fr); }
    .advantages-bar .container { grid-template-columns: repeat(2, 1fr); }
    .advantage-item:nth-child(2) { border-right: none; }
    .footer-inner           { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --header-h: 60px; }

    .nav-toggle { display: flex; }
    .header-tel { display: none; }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--dark2);
        border-top: 1px solid rgba(255,255,255,0.1);
        padding: 16px;
        display: none;
        z-index: 999;
    }
    .main-nav.open { display: block; }
    .main-nav ul   { flex-direction: column; gap: 4px; }
    .nav-link      { padding: 10px 14px; }

    .hero          { height: calc(100svh - var(--header-h)); }
    .hero-content  { padding: 0 24px; }

    .prestations-grid       { grid-template-columns: 1fr 1fr; }
    .services-grid          { grid-template-columns: 1fr 1fr; }
    .advantages-bar .container { grid-template-columns: 1fr 1fr; gap: 0; }
    .advantage-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }

    .cta-inner { flex-direction: column; text-align: center; }
    .cta-actions { justify-content: center; }

    .footer-inner           { grid-template-columns: 1fr; }
    .contact-container      { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .prestations-grid   { grid-template-columns: 1fr; }
    .services-grid      { grid-template-columns: 1fr; }
    .hero-title         { font-size: 1.7rem; }
    .hero-cta           { flex-direction: column; }
    .hero-prev, .hero-next { width: 36px; height: 36px; font-size: 0.9rem; }
}
