/* Style Principal - D2S Vitrerie (Esthétique v4 Restaurée) */

:root {
    --primary-color: #0056b3;
    --secondary-color: #f8f9fa;
    --accent-color: #ffc107;
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #212529;
    --transition-speed: 0.4s;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header {
    background-color: var(--light-text);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo img {
    height: 100px; /* Logo agrandi conservé */
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

.hero {
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--light-text);
    text-align: center;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #004494;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.3);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.btn-accent:hover {
    background-color: #e0a800;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

section {
    padding: 5rem 0;
}

h2 {
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-speed) ease;
}

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

/* Content Flex pour les pages locales */
.content-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.text-content { flex: 1; }
.text-content a { color: var(--primary-color); text-decoration: none; font-weight: bold; }
.text-content a:hover { text-decoration: underline; }
.image-content { flex: 1; }
.image-content img { width: 100%; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* Formulaire de contact */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
}

/* Animations au défilement */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
    transition-duration: 0.8s;
    transition-timing-function: ease-out;
}

[data-aos="fade-up"] { transform: translateY(30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="zoom-in"] { transform: scale(0.9); }

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0) scale(1);
}

.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer-section p, .footer-section a {
    color: #bbb;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

.footer-section a:hover { color: var(--light-text); }

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Responsive */
@media (max-width: 992px) {
    .content-flex { flex-direction: column; }
}

@media (max-width: 768px) {
    nav { flex-direction: column; }
    .logo img { height: 80px; }
    nav ul { margin-top: 1.5rem; flex-wrap: wrap; justify-content: center; }
    nav ul li { margin: 5px 12px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.2rem; }
    section { padding: 3rem 0; }
}

/* Style pour les cartes Google Maps */
.map-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 300px;
    }
}
