/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Navigation */
.navbar {
    background: #2c3e50;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
}

.nav-logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: auto;
}

.nav-logo {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
}

.nav-subtitle {
    color: white;
    font-size: 0.9rem;
    font-weight: normal;
    opacity: 0.9;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
}

/* ============================= */
/* HAMBURGER MENU                */
/* ============================= */

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    margin-left: 1rem;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero Section réduit */
.hero-compact {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.hero-content-compact h1 {
    font-size: 2rem;
    margin-bottom: 0;
    line-height: 1.2;
}

/* Container principal */
.container-compact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem;
}

/* Sections */
.section-row {
    margin: 1rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 0 !important;
}

/* Grilles */
.two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Blocs photos */
.photo-block {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.photo-block:hover {
    transform: translateY(-5px);
}

.block-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.block-text {
    padding: 1.5rem;
    text-align: center;
}

.block-text h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.block-text p {
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}

/* Footer */
.footer-compact {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.footer-content-compact p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-contacts-compact {
    opacity: 0.8;
    font-size: 0.85rem;
}

/* Animation de transition pour les images */
.rotating-image {
    transition: opacity 0.5s ease;
}

/* Indicateur de projet */
.project-indicator {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2 0 1rem;
}

.project-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-dot.active {
    background: #3498db;
    transform: scale(1.2);
}

.project-dot:hover {
    background: #2980b9;
}

.project-indicator.minimal {
    margin: 1rem 0 0rem;
}

.project-dot.minimal {
    width: 6px;
    height: 6px;
    background: transparent;
    border: 1px solid #bdc3c7;
}

.project-dot.minimal.active {
    background: #3498db;
    border-color: #3498db;
}

.project-dot.minimal:hover {
    background: #3498db;
    border-color: #3498db;
}

/* ============================= */
/* RESPONSIVE                    */
/* ============================= */

@media (max-width: 1024px) {
    .three-column-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Nav: row layout with hamburger */
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }

    .nav-logo-container {
        flex-direction: row;
        align-items: center;
    }

    .nav-hamburger {
        display: flex;
    }

    /* Menu hidden by default on mobile, shown when .open */
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        margin-left: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #2c3e50;
        z-index: 999;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .nav-link {
        display: block;
        padding: 0.9rem 1.5rem;
    }

    /* Content */
    .hero-content-compact h1 {
        font-size: 1.6rem;
    }

    .two-column-grid,
    .three-column-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .block-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .section-row {
        margin: 2rem 0;
    }

    .block-text {
        padding: 1.2rem;
    }

    .nav-logo-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-subtitle {
        font-size: 0.8rem;
    }
}

/* ============================= */
/* STYLES SPÉCIFIQUES PRODUITS   */
/* ============================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.page-header h1 {
    color: #2c3e50;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    color: #666;
    font-size: 1.3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-image {
    height: 250px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #e9ecef;
}

.image-placeholder {
    color: #999;
    font-size: 1.1rem;
    text-align: center;
    padding: 2rem;
}

.product-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 0;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 0;
}

.product-features li {
    padding: 0.3rem 0;
    color: #27ae60;
    font-size: 0.9rem;
}

.product-specs {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.spec-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.spec-item strong {
    color: #2c3e50;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fff5f5;
    border-radius: 10px;
    border: 2px solid #e74c3c;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.product-actions .cta-button {
    flex: 2;
    text-align: center;
    padding: 0.8rem 1.5rem;
}

.secondary-button {
    flex: 1;
    background: #6c757d;
    color: white;
    padding: 0.8rem 1rem;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.secondary-button:hover {
    background: #5a6268;
    color: white;
}

.contact-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 3rem;
}

.contact-cta h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.contact-cta p {
    margin-bottom: 2rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

.cta-button.large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}

.footer {
    background: #34495e;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* ============================= */
/* RESPONSIVE PRODUITS           */
/* ============================= */

@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
        margin-top: 80px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-card {
        margin: 0;
    }

    .product-actions {
        flex-direction: column;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .contact-cta {
        padding: 2rem 1rem;
    }

    .contact-cta h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-content {
        padding: 1.5rem;
    }

    .product-title {
        font-size: 1.2rem;
    }

    .product-price {
        font-size: 1.3rem;
        padding: 0.8rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }
}

/* ============================= */
/* STYLES GÉNÉRAUX               */
/* ============================= */

.cta-button {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.cta-button:hover {
    background: #c0392b;
}

/* ============================= */
/* STYLES SPÉCIFIQUES CONTACT    */
/* ============================= */

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    color: #2c3e50;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    color: #666;
    font-size: 1.2rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.contact-icon {
    font-size: 2.5rem;
    min-width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details {
    flex: 1;
}

.contact-details h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.contact-person {
    font-size: 1.1rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.contact-label {
    min-width: 80px;
    color: #666;
}

.contact-value {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-value:hover {
    color: #3498db;
}

.company-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.8rem;
    margin-top: 2rem;
    border: 1px solid #e9ecef;
}

.company-info h4 {
    color: #2c3e50;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.info-item {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #666;
}

.info-item strong {
    color: #2c3e50;
    min-width: 120px;
    display: inline-block;
}

.form-container {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.form-container h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.form-container p {
    color: #666;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.full-width {
    width: 100%;
}

.location-block {
    background: white;
    border-radius: 15px;
    padding: 1.8rem;
    margin-top: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.location-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.location-icon {
    font-size: 2rem;
}

.location-header h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin: 0;
}

.location-content {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
}

.location-description {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: #333;
}

.location-access {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.access-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.access-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #666;
}

.access-icon {
    font-size: 1.2rem;
    min-width: 24px;
}

.emergency-contact {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 3rem 0 2rem;
}

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

.emergency-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.emergency-text p {
    opacity: 0.9;
    margin-bottom: 0.3rem;
}

.emergency-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Responsive Contact */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-side {
        order: 2;
    }

    .contact-form-side {
        order: 1;
    }

    .access-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .contact-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-container h2 {
        font-size: 1.5rem;
    }

    .contact-header h1 {
        font-size: 2.2rem;
    }

    .emergency-text h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .contact-label {
        min-width: auto;
    }

    .company-info {
        padding: 1.2rem;
    }

    .info-item strong {
        display: block;
        margin-bottom: 0.2rem;
    }
}

/* Liens téléphone/mail */
a[href^="tel"] {
    color: inherit;
    text-decoration: none;
}

a[href^="mailto"] {
    color: inherit;
    text-decoration: none;
}

/* Logo image */
.logo-image {
    height: 70px;
    width: auto;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .logo-image {
        height: 55px;
    }
}
