:root {
    --primary-orange: #ff5500;
    --dark-bg: #0d0d0d;
    --card-bg: #161616;
    --text-white: #ffffff;
    --text-gray: #b5b5b5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Application de l'image de fond purgée sur tout le site avec un voile sombre pour la lisibilité */
body {
    background-image: url('img/affiche purger.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #121212;
    color: #fff;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Enlève le fond noir du header pour qu'il soit transparent sur l'image */
header {
    background: transparent; 
    text-align: center;
    padding: 30px 20px 10px 20px;
}

/* Classes réutilisables pour l'effet Grunge */
.grunge-text {
    color: var(--primary-orange);
    background-image: url('img/grunge-texture1.png');
    background-size: cover;
    background-position: center;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(3px 3px 0px #000);
}

.grunge-vector {
    color: var(--primary-orange);
    filter: url(#grunge-effect) drop-shadow(3px 3px 0px #000);
}

/* Bordure grunge propre, robuste et sans bug de masque */
.grunge-border {
    position: relative;
    background-color: #181818;
    /* On passe la bordure à 8px pour qu'elle devienne bien massive et visible */
    border: 8px solid var(--primary-orange);
    border-radius: 4px;
    /* Ombre noire dure et décalée pour donner l'effet de relief massif sur fond noir */
    box-shadow: 
        6px 6px 0px #000000,
        0 15px 35px rgba(0,0,0,0.95);
}

h1, h2, h3, .grunge-title {
    color: var(--primary-orange);
    /* On applique le filtre SVG uniquement sur les textes de titres */
    filter: url(#grunge-box-filter) drop-shadow(3px 3px 0px #000);
}

/* 1. Le titre du haut avec l'effet SVG tordu / usé */
.logo-text {
    font-size: 3.8rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-orange);
    filter: url(#grunge-box-filter) drop-shadow(3px 3px 0px #000);
}

.slogan {
    font-size: 1.4rem;
    color: var(--primary-orange);
    font-weight: 900;
    font-style: italic;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #000;
}

main {
    flex: 1;
    max-width: 950px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.announcement {
    background-color: rgba(18, 18, 18, 0.85);
    border: 3px dashed #333;
    border-left: 8px solid var(--primary-orange);
    padding: 25px;
    margin-bottom: 35px;
    border-radius: 4px;
    box-shadow: inset 0 0 25px rgba(0,0,0,0.8);
}

.announcement h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-box {
    background-color: rgba(18, 18, 18, 0.85);
    border-radius: 6px;
    padding: 35px;
    margin-bottom: 35px;
    border: 3px solid var(--primary-orange);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.services-box h3 {
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.4rem;
    border-bottom: 3px solid var(--primary-orange);
    display: inline-block;
    padding-bottom: 5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    text-align: left;
}

.service-item {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 3px;
    font-size: 0.95rem;
    border-left: 4px solid var(--primary-orange);
    border-top: 1px solid #333;
    border-right: 1px solid #222;
    border-bottom: 1px solid #222;
}

/* 2. Le cadre de table avec l'effet SVG tordu sur la bordure, mais texte intact */
.rate-box {
    position: relative;
    background-color: rgba(18, 18, 18, 0.85);
    padding: 30px;
    margin: 35px 0;
    display: inline-block;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.95);
    overflow: visible;
}

.rate-box::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 4px solid var(--primary-orange);
    border-radius: 6px;
    pointer-events: none;
    filter: url(#grunge-box-filter);
}

.rate-content {
    position: relative;
    z-index: 2;
}

.rate-price {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.phone-btn {
    display: inline-block;
    background: linear-gradient(to bottom, #ff6600, #e04a00);
    color: var(--text-white);
    text-decoration: none;
    font-size: 2.2rem;
    font-weight: 900;
    padding: 18px 45px;
    border-radius: 4px;
    box-shadow: 0 8px 25px rgba(255, 85, 0, 0.6);
    transition: all 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #ff8833;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.4);
}

.phone-btn:hover {
    background: linear-gradient(to bottom, #e04a00, #cc4200);
    transform: scale(1.02);
}

.badges {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 35px;
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* DEBUT - Classes utilitaires propres pour l'admin */
.admin-form, .admin-card {
    margin-top: 20px;
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th, .admin-table td {
    padding: 12px;
    border: 1px solid #ddd; /* ou la couleur de bordure de ton thème */
    text-align: left;
}

.inline-edit-form {
    display: flex;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne sur petit écran */
    gap: 10px;
    align-items: center;
}

.inline-edit-form input {
    flex: 1; /* Prend l'espace disponible */
    min-width: 150px; /* Assure une taille minimale sur mobile */
}

/* Responsive : sur mobile, on empile les champs du formulaire d'ajout */
@media (max-width: 600px) {
    .inline-edit-form {
        flex-direction: column;
        align-items: stretch;
    }
}
/* FIN - Classes utilitaires propres pour l'admin */

/* debut -  hero */
/* Section Hero avec l'image de fond purgée */
.hero-section {
    position: relative;
    background-image: url('chemin/vers/ton/image-purgée.png'); /* Remplace par le nom/chemin exact de ton image */
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 20px;
}

/* Voile sombre pour que le texte ressorte bien sur l'image */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Le titre principal */
.brand-title h1 {
    font-size: 5rem;
    color: #ff5500;
    margin: 0;
    line-height: 1;
    font-weight: 900;
    font-style: italic;
}

.brand-title h2 {
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: 2px;
    color: #fff;
}

.tagline {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff5500;
    margin-top: 10px;
    text-transform: uppercase;
}

/* Le bloc tarif dynamique (80$/H) */
.pricing-badge {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #ff5500;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
}

.pricing-badge .price {
    font-size: 3rem;
    font-weight: bold;
    color: #ff5500;
}

.pricing-badge .conditions {
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
}

/* Version mobile */
@media (max-width: 768px) {
    .brand-title h1 { font-size: 3.5rem; }
    .brand-title h2 { font-size: 1.8rem; }
    .hero-content { flex-direction: column; }
}
/* fin - hero */

footer {
    text-align: center;
    padding: 25px;
    background-color: #080808;
    color: var(--text-gray);
    font-size: 0.85rem;
    border-top: 3px solid #222;
}

footer a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}