/* ================================================
   ELH - Services Audiovisuels Metz
   CSS complet - Mobile First
   ================================================ */

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

:root {
    --red: #BD1522;
    --black: #111111;
    --dark-gray: #222222;
    --text-gray: #555555;
    --white: #FFFFFF;
    --light-bg: #f5f5f5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
    background: var(--white);
    overflow-x: hidden;
}

a {
    color: var(--red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--black);
    line-height: 1.3;
}

h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
}

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

/* --- Separator .hrdeg --- */
.hrdeg {
    border: none;
    border-top: 1.5px solid var(--red);
    max-width: 95px;
    margin: 15px 0 20px 0;
    transform: rotate(-3deg);
}

.hrdeg-center {
    border: none;
    border-top: 1.5px solid var(--red);
    max-width: 95px;
    margin: 15px auto 20px auto;
    transform: rotate(-3deg);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--red);
    background: transparent;
    color: var(--red);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--red);
    color: var(--white);
}

.btn-white {
    border-color: var(--white);
    color: var(--white);
}

.btn-white:hover {
    background: var(--white);
    color: var(--red);
}

/* ================================================
   HEADER & NAVIGATION
   ================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 20px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.transparent {
    background: transparent;
}

.site-header.header-inner {
    background: rgba(17, 17, 17, 0.95);
}

.site-header.scrolled {
    background: rgba(17, 17, 17, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.burger-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 1001;
    transition: color 0.3s ease;
}

.burger-btn:hover {
    color: var(--red);
}

.header-logo img {
    height: 40px;
    width: auto;
}

/* --- Sidebar Nav --- */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-nav {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: var(--black);
    border-right: 4px solid var(--red);
    z-index: 9999;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    padding: 80px 30px 30px;
}

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

.sidebar-logo {
    margin-bottom: 40px;
}

.sidebar-logo img {
    max-width: 150px;
}

.sidebar-nav ul li {
    margin-bottom: 0;
}

.sidebar-nav ul li a {
    display: block;
    padding: 15px 0;
    color: var(--white);
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
    color: var(--red);
    padding-left: 10px;
}

.sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.sidebar-close:hover {
    color: var(--red);
}

/* ================================================
   HERO SECTIONS
   ================================================ */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-compact {
    height: 50vh;
    min-height: 350px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.hero-content img {
    max-width: 300px;
    margin: 0 auto;
}

.hero-content h1 {
    color: var(--white);
    font-size: 2rem;
    margin-top: 20px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Mobile fallback image (hide video on small screens) */
.hero-mobile-img {
    display: none;
}

/* ================================================
   SVG WAVE
   ================================================ */

.svg-wave {
    position: relative;
    margin-top: -2px;
    line-height: 0;
}

.svg-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ================================================
   CONTENT SECTIONS
   ================================================ */

.section {
    padding: 60px 0;
}

.section-light {
    background: var(--light-bg);
}

.section-dark {
    background: var(--black);
    color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.8);
}

.text-center {
    text-align: center;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-intro h1,
.section-intro h2 {
    text-align: center;
}

/* --- Lists --- */
.styled-list {
    margin: 20px 0;
    padding-left: 0;
}

.styled-list li {
    position: relative;
    padding: 8px 0 8px 25px;
    color: var(--text-gray);
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 10px;
    height: 2px;
    background: var(--red);
}

/* ================================================
   SERVICE CARDS (public cible)
   ================================================ */

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 40px 0;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    height: 280px;
    cursor: pointer;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
}

.card:hover .card-overlay {
    background: rgba(189, 21, 34, 0.7);
}

.card:hover .card-img {
    transform: scale(1.08);
}

.card-overlay h3 {
    color: var(--white);
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 2px;
}

/* ================================================
   SERVICE DETAIL (alternance image/texte)
   ================================================ */

.service-detail {
    padding: 60px 0;
}

.service-detail:nth-child(even) {
    background: var(--light-bg);
}

.service-row {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.service-row.reverse {
    flex-direction: column;
}

.service-img-wrap {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
}

.service-img-wrap img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-img-wrap:hover img {
    transform: scale(1.03);
}

.service-text {
    width: 100%;
}

.service-text h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.service-text h3 {
    font-size: 1.1rem;
    color: var(--red);
    margin-top: 20px;
    margin-bottom: 5px;
}

.service-text ul {
    margin: 10px 0 15px 0;
    padding-left: 0;
}

.service-text ul li {
    position: relative;
    padding: 4px 0 4px 20px;
}

.service-text ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--red);
    font-size: 12px;
}

/* ================================================
   ABOUT PAGE
   ================================================ */

.about-logo {
    text-align: center;
    margin-bottom: 40px;
}

.about-logo img {
    max-width: 250px;
    margin: 0 auto;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

/* ================================================
   CONTACT PAGE
   ================================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-info-block {
    margin-bottom: 25px;
}

.contact-info-block h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--red);
}

.contact-info-block p {
    margin-bottom: 5px;
    line-height: 1.8;
}

.contact-info-block a {
    color: var(--text-gray);
}

.contact-info-block a:hover {
    color: var(--red);
}

.contact-logo {
    max-width: 180px;
    margin-bottom: 20px;
}

/* --- Form --- */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--black);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    background: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--black);
    transition: border-color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--red);
}

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

.contact-form .btn {
    width: 100%;
}

/* --- Messages --- */
.alert {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-left: 4px solid;
    font-size: 14px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #28a745;
}

.alert-error {
    background: rgba(189, 21, 34, 0.1);
    border-color: var(--red);
    color: var(--red);
}

/* --- Google Maps --- */
.map-section {
    width: 100%;
    height: 400px;
    background: var(--dark-gray);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(80%) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-section:hover iframe {
    filter: grayscale(30%) contrast(1.05);
}

/* ================================================
   MENTIONS LEGALES
   ================================================ */

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.3rem;
    margin-top: 35px;
    margin-bottom: 10px;
}

.legal-content h3 {
    font-size: 1.05rem;
    color: var(--red);
    margin-top: 20px;
    margin-bottom: 8px;
    text-transform: none;
}

/* ================================================
   FOOTER
   ================================================ */

.footer-wave {
    position: relative;
    line-height: 0;
    margin-top: -2px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

.site-footer {
    background: var(--dark-gray);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--red);
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--red);
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 14px;
    position: relative;
    padding-left: 15px;
}

.footer-col ul li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--red);
    font-size: 12px;
}

.footer-logo {
    max-width: 120px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--red);
    border-color: var(--red);
}

.footer-label {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.footer-bottom {
    background: var(--black);
    text-align: center;
    padding: 18px 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: var(--red);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ================================================
   RESPONSIVE - Tablet (768px+)
   ================================================ */

@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-content img {
        max-width: 400px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-row {
        flex-direction: row;
    }

    .service-row.reverse {
        flex-direction: row-reverse;
    }

    .service-img-wrap {
        width: 50%;
        flex-shrink: 0;
    }

    .service-text {
        width: 50%;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .contact-form .btn {
        width: auto;
    }
}

/* ================================================
   RESPONSIVE - Desktop (1024px+)
   ================================================ */

@media (min-width: 1024px) {
    .section {
        padding: 80px 0;
    }

    h1 {
        font-size: 2.8rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .service-img-wrap img {
        height: 450px;
    }

    .service-detail {
        padding: 80px 0;
    }
}

/* ================================================
   RESPONSIVE - Mobile (<768px)
   ================================================ */

@media (max-width: 767px) {
    .hero-video {
        display: none;
    }

    .hero-mobile-img {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -2;
    }

    .card {
        height: 220px;
    }

    .footer-grid {
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-logo {
        margin: 0 auto 20px;
    }
}
