/* ========================================
   VARIABLES CSS
======================================= */
:root {
    --bg-main: #05070a;
    --bg-elevated: #11151f;
    --bg-soft: #151925;
    --text-main: #f5f5f5;
    --text-muted: #b2b6c5;
    --border-soft: rgba(255, 255, 255, 0.06);
    --accent: #4f8cff;
    --accent-soft: #6c9eff;
    --radius-card: 16px;
    --shadow-soft: 0 16px 45px rgba(0, 0, 0, 0.75);
}

/* ========================================
   BASE
======================================= */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at top, #101522 0%, var(--bg-main) 55%);
    color: var(--text-main);
    line-height: 1.6;
}

/* ========================================
   HEADER
======================================= */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 7, 10, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-soft), var(--accent));
    box-shadow: 0 0 0 2px #05070a, 0 8px 20px rgba(79, 140, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand h1 {
    font-size: 1.15rem;
    margin: 0;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand p {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

nav {
    display: flex;
    gap: 14px;
    font-size: 0.9rem;
}

nav a {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    padding-bottom: 2px;
    transition: color 0.18s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: width 0.18s ease;
}

nav a:hover {
    color: var(--text-main);
}

nav a:hover::after { width: 100%; }

/* ========================================
   SECTIONS
======================================= */
.section {
    max-width: 1100px;
    margin: 56px auto;
    padding: 0 20px;
}

.section h2 {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 32px;
}

/* ========================================
   HERO / ACCUEIL
======================================= */
.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: start;
}

.hero-text h2 {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 16px;
}

.hero-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.hero-text p strong {
    color: var(--accent);
    font-size: 1.1em;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    font-size: 0.98rem;
}

.hero-list li {
    margin-bottom: 6px;
}

.hero-list li::before {
    content: "•";
    color: var(--accent-soft);
    margin-right: 8px;
}

.hero-panels {
    display: grid;
    gap: 14px;
}

.hero-panel {
    background: linear-gradient(135deg, var(--bg-soft), #101524);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.hero-panel h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.hero-panel p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========================================
   BOUTONS CTA
======================================= */
.cta-button {
    display: inline-block;
    background: var(--accent);
    color: #05070a;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 12px 32px rgba(79, 140, 255, 0.45);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--accent-soft);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(79, 140, 255, 0.6);
}

/* ========================================
   SERVICES
======================================= */
.services { margin-top: 72px; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-soft);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
    border-color: rgba(79, 140, 255, 0.5);
}

.service-card .icon { 
    font-size: 2.5rem; 
    margin-bottom: 16px; 
}

.service-card h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    margin: 0 0 16px;
    font-size: 1rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
}

.service-card ul li {
    margin-bottom: 6px;
}

.service-card ul li::before {
    content: "›";
    color: var(--accent);
    margin-right: 8px;
}

/* ========================================
   FORMULAIRES & CONTACT
======================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

.contact-form,
.contact-infos {
    background: var(--bg-elevated);
    border-radius: var(--radius-card);
    padding: 24px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #05070a;
    color: var(--text-main);
    font: inherit;
    transition: all 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.2);
    background: rgba(7, 10, 16, 0.9);
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   PAGES DÉTAIL SERVICE
======================================= */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    margin-top: 40px;
	align-items: start;
}

.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.tarif-item {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 1px solid var(--border-soft);
}

.tarif-prix {
    font-size: 2em;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 8px;
}

.service-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
    gap: 16px;
    align-items: start; /* Aligne en haut */
}

.service-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

/* ========================================
   RÉSEAUX SOCIAUX FLOTTANTS
======================================= */
.floating-social {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 100;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    transition: all 0.25s ease;
}

.social-link img,
.social-link svg { width: 24px; height: 24px; }

.social-link:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8);
}

.social-link.insta {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.fb { background: #1877f2; }

.social-link.tiktok { background: linear-gradient(135deg, #ff0050, #ff4500); }

/* ========================================
   FOOTER
======================================= */
footer {
    border-top: 1px solid var(--border-soft);
    padding: 24px 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========================================
   RESPONSIVE
======================================= */
@media (max-width: 1000px) {
    .hero-grid,
    .contact-grid,
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    
    nav { justify-content: flex-start; }
}

@media (max-width: 768px) {
    .floating-social { display: none; }
    
    .section { margin: 40px auto; padding: 0 16px; }
    
    .section h2 { font-size: 1.8rem; }
    
    .hero-text h2 { font-size: 2rem; }
}

@media (max-width: 600px) {
    .service-grid { grid-template-columns: 1fr; }
    .tarifs-grid { grid-template-columns: 1fr; }
}

/* Page Localisation - ANCIEN VISUEL CORRIGÉ */
.localisation-hero {
    background: rgba(5, 7, 10, 0.9);
    backdrop-filter: blur(10px);
    color: #e5f0ff;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.localisation-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.localisation-content p {
    font-size: 1.3rem;
    margin-bottom: 32px;
}

.localisation-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--accent);
}

.cta-button.secondary:hover {
    background: var(--accent);
    color: #05070a;
}

.localisation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.zone-item {
    background: var(--bg-elevated);
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    font-size: 1.1rem;
}

.map-container {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.access-item {
    text-align: center;
    padding: 24px;
    background: var(--bg-elevated);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-soft);
    transition: all 0.3s ease;
}

.access-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.access-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.access-item h3 {
    color: var(--accent);
    margin: 12px 0 8px;
}

@media (max-width: 900px) {
    .localisation-grid { grid-template-columns: 1fr; }
    .localisation-buttons { flex-direction: column; align-items: center; }
}

/* Logo cliquable header */
.brand-link {
    display: contents; /* Garde le layout parfait */
    text-decoration: none;
    color: inherit;
}

.brand-link:hover .logo-circle {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.brand-link:hover h1 {
    color: var(--accent);
    transition: color 0.2s ease;
}

/* Sur pages services, logo ramène à index */
@media (hover: hover) {
    .brand-link:hover .logo-circle {
        box-shadow: 0 0 0 2px var(--accent), 0 8px 25px rgba(79, 140, 255, 0.8);
    }
}

/* AVERTISSEMENT ROUGE - Contact */
.warning-box {
    background: linear-gradient(135deg, #ff4f5e, #ff6b70);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 79, 94, 0.3);
    border-left: 6px solid #d32f2f;
}

.warning-icon {
    font-size: 1.5rem;
    margin-right: 8px;
    vertical-align: middle;
}

.warning-asterisk {
    color: #ff4f5e;
    font-weight: bold;
    font-size: 1.2em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.contact-infos h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

/* Téléphone cliquable */
.contact-infos a {
    color: var(--accent);
    text-decoration: none;
}

.contact-infos a:hover {
    text-decoration: underline;
}

/* Horaires améliorés */
.horaires-sub {
    margin: 8px 0 0 20px !important;
    font-size: 0.95rem;
}

.horaires-sub li {
    margin-bottom: 2px;
}