/* ===== RESET CSS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
    outline: none;
    border: none;
    text-decoration: none;
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: var(--bg-light);
}

/* Dark mode support */
.dark body {
    color: #e5e7eb;
    background-color: var(--bg-dark);
}

/* ===== VARIABLES CSS ===== */
:root {
    --hover-color: #0f6bd6;
    --primary-color: #137fec;
    --primary-light: rgba(19, 127, 236, 0.1);
    --text-light: #ffffff;
    --text-gray: #9ca3af;
    --text-dark: #1f2937;
    --bg-light: #f6f7f8;
    --bg-dark: #101922;
    --bg-section: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ===== LAYOUT DE BASE ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(246, 247, 248, 0.8);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    padding: 1rem;
}

@media (min-width: 640px) {
    .header {
        padding: 1rem 2rem;
    }
}

@media (min-width: 1024px) {
    .header {
        padding: 1rem 2.5rem;
    }
}

.dark .header {
    background-color: rgba(16, 25, 34, 0.8);
    border-bottom: 1px solid rgba(55, 65, 81, 0.8);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.dark .logo {
    color: var(--text-light);
}

.logo img {
    width: 2.5rem;
    height: 2.5rem;
}

@media (min-width: 640px) {
    .logo img {
        width: 3rem;
        height: 3rem;
    }
}

.nav {
    display: none;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dark .nav a {
    color: var(--text-light);
}

.nav a:hover {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    transition: background-color 0.3s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    margin-left: auto;
    width: auto;
}

.cta-button:hover {
    background-color: var(--hover-color);
    color: var(--text-light);
}

.hero-button:hover {
    background-color: var(--hover-color);
    color: var(--text-light);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    background-image: linear-gradient(to top, rgba(16, 25, 34, 0.8) 0%, rgba(16, 25, 34, 0) 60%), url('../img/rose.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 640px) {
    .hero {
        min-height: 90vh;
        padding: 0 1rem;
    }
}

.hero-services {
    background-image: linear-gradient(to top, rgba(16, 25, 34, 0.8) 0%, rgba(16, 25, 34, 0) 60%), url('../img/violet.webp');
}

.hero-realisations {
    background-image: linear-gradient(to top, rgba(16, 25, 34, 0.8) 0%, rgba(16, 25, 34, 0) 60%), url('../img/homme_rose.webp');
}

/* Masquer les images de fond sur mobile - utiliser uniquement le dégradé bleu vers noir */
@media (max-width: 768px) {
    .hero,
    .hero-services,
    .hero-realisations {
        background-image: linear-gradient(to bottom, var(--primary-color) 0%, var(--bg-dark) 100%);
        background-size: 100% 100%;
    }
}

@media (min-width: 640px) {
    .hero {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 0 2rem;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .hero-content {
        padding: 0 1.5rem;
    }
}

.hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.05em;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    /* -webkit-text-stroke: 1px rgba(0, 0, 0, 0.5);
    text-stroke: 1px rgba(0, 0, 0, 0.5); */
}

@media (min-width: 375px) {
    .hero h1 {
        font-size: 2.25rem;
    }
}

.hero p {
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3.75rem;
    }
}

.hero p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.5rem;
}

@media (min-width: 375px) {
    .hero p {
        font-size: 1.125rem;
        padding: 0;
    }
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.25rem;
    }
}

.hero-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease !important;
    width: auto;
    max-width: 100%;
}

@media (min-width: 375px) {
    .hero-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero-cta .cta-button {
    margin: 0;
}

.hero-reassurance {
    font-size: 0.9rem !important;
    opacity: 0.9;
    margin-bottom: 0 !important;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.process-list {
    text-align: left;
    max-width: 36rem;
    margin: 2rem auto 0;
    padding-left: 1.5rem;
}

.process-list li {
    margin-bottom: 1.25rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.dark .process-list li {
    color: var(--text-light);
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 0;
    background-color: transparent;
}

.section.services {
    background-color: var(--bg-section);
}

.dark .section.services {
    background-color: rgba(16, 25, 34, 0.5);
}

@media (min-width: 640px) {
    .section {
        padding: 6rem 0;
    }
}

.section-content {
    text-align: center;
    max-width: 80rem;
    margin: 0 auto;
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.dark .section h2 {
    color: var(--text-light);
}

@media (min-width: 640px) {
    .section h2 {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .section h2 {
        font-size: 2.25rem;
    }
}

.section p {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .section p {
        font-size: 1.125rem;
    }
}

.dark .section p {
    color: #9ca3af;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    gap: 2rem;
    margin: 3rem auto 0;
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 1400px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    justify-content: flex-start;
    max-width: 400px;
    width: 100%;
}

.dark .service-card {
    background-color: rgba(31, 41, 55, 0.5);
    border-color: #374151;
}

.service-card:hover {
    transform: translateY(-8px) !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
        border-color: rgba(59, 130, 246, 0.3) !important;
}

.service-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.dark .service-card h3 {
    color: var(--text-light);
}

.service-card p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin-top: 0.5rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.dark .service-card p {
    color: #9ca3af;
}

/* ===== CGU PAGE ===== */
.cgu-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    line-height: 1.8;
}

.cgu-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cgu-section:last-of-type {
    border-bottom: none;
}

.cgu-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.cgu-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 600;
}

.cgu-section p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    text-align: justify;
}

.cgu-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.cgu-section li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.cgu-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.cgu-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.cgu-section a:hover {
    text-decoration: underline;
}

.cgu-contact {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 0.5rem;
    color: white;
}

.cgu-contact h2 {
    color: white;
    margin-bottom: 1rem;
    border-bottom: 2px solid white;
}

.cgu-contact .cta-button {
    background: white;
    color: var(--primary-color);
    margin-top: 1rem;
}

.cgu-contact .cta-button:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cgu-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .cgu-section h2 {
        font-size: 1.3rem;
    }
    
    .cgu-section p {
        text-align: left;
    }
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-section);
    padding: 2rem 0;
    text-align: center;
    
}

.dark .footer {
    background-color: rgba(16, 25, 34, 0.5);
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin: 0;
}

.footer a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* ===== UTILITAIRES ===== */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: fixed;
    top: 1rem;
    right: 1rem;
    border-radius: 0.25rem;
}

.mobile-menu-btn span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--text-dark);
    margin: 2px 0;
    transition: all 0.3s ease;
}

.dark .mobile-menu-btn span {
    background-color: var(--text-light);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-light);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.dark .mobile-menu {
    background-color: var(--bg-dark);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
    z-index: 1003;
}

.mobile-menu-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.dark .mobile-menu-close {
    color: var(--text-light);
}

.dark .mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 2rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.mobile-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dark .mobile-nav a {
    color: var(--text-light);
}

.mobile-nav a:hover {
    color: var(--primary-color);
}

.mobile-cta {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    transition: background-color 0.3s ease !important;
}

.mobile-cta:hover {
    background-color: var(--hover-color);
    color: var(--text-light);
}

/* Animation du bouton burger */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== PORTFOLIO ===== */
.portfolio-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 1400px;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-item {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    max-width: 400px;
    width: 100%;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.dark .portfolio-item {
    background-color: rgba(31, 41, 55, 0.5);
    border-color: #374151;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay span {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.125rem;
    text-align: center;
}

.portfolio-content {
    padding: 1.5rem;
    text-align: center;
}

.portfolio-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.dark .portfolio-content h3 {
    color: var(--text-light);
}

.portfolio-content p {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* Améliorations pour très petits écrans */
@media (max-width: 374px) {
    .logo {
        font-size: 1rem;
    }
    
    .logo img {
        width: 2rem;
        height: 2rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .hero-button {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .service-card,
    .portfolio-item {
        padding: 1rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .cta-button:not(.hero-button):not(.mt-4):not(#submit-btn):not(.confirmation-actions .cta-button) {
        display: none;
    }
    
    .hero-button {
        display: inline-flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    /* Contact page mobile improvements */
    .hero-contact {
        padding: 3rem 1rem;
        min-height: 50vh;
    }
    
    .hero-contact h1 {
        font-size: 2rem;
    }
    
    .hero-contact p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 1rem;
    }
    
    .contact-form h2,
    .contact-info h2 {
        font-size: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
    
    .contact-item {
        gap: 0.75rem;
    }
    
    .contact-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .contact-item h3 {
        font-size: 0.875rem;
    }
    
    .contact-item a {
        font-size: 0.75rem;
    }
}

/* ===== CONTACT PAGE STYLES ===== */
.hero-contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 100%);
    color: var(--text-light);
    text-align: center;
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-contact {
        padding: 6rem 0;
        min-height: 70vh;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.contact-form {
    background: var(--bg-section);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .contact-form {
        padding: 2rem;
    }
}

.dark .contact-form {
    background: rgba(55, 65, 81, 0.3);
}

.contact-form h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .contact-form h2 {
        font-size: 1.875rem;
    }
}

.dark .contact-form h2 {
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .form-group label {
        font-size: 1rem;
    }
}

.dark .form-group label {
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.dark .form-group input,
.dark .form-group textarea {
    background: var(--bg-dark);
    color: var(--text-light);
    border-color: rgba(55, 65, 81, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-info {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .contact-info {
        padding: 2rem;
    }
}

.contact-info h2 {
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .contact-info h2 {
        font-size: 1.875rem;
    }
}

.dark .contact-info h2 {
    color: var(--text-light);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .contact-icon {
        width: 3rem;
        height: 3rem;
    }
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .contact-item h3 {
        font-size: 1.125rem;
    }
}

.dark .contact-item h3 {
    color: var(--text-light);
}

.contact-item a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .contact-item a {
        font-size: 1rem;
    }
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* ===== FORMULAIRE - STYLES D'ERREUR ===== */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.field-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.dark .form-error {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.dark .form-group select {
    background: var(--bg-dark);
    color: var(--text-light);
    border-color: rgba(55, 65, 81, 0.5);
}

.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Styles pour la page de confirmation */
.confirmation-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    color: #10b981;
    margin-bottom: 2rem;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.cta-button.secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .confirmation-actions {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .confirmation-actions .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    /* Centrage du contenu de confirmation sur mobile */
    .confirmation-content {
        text-align: center;
        padding: 0 1rem;
    }
    
/* Styles pour les pages projets */
.project-breadcrumb {
    margin-bottom: 2rem;
}

.project-breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.project-breadcrumb a:hover {
    opacity: 1;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.project-type, .project-year {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-overview {
    padding: 4rem 0;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.project-image {
    position: relative;
    border-radius: 1rem;
    aspect-ratio: 16/9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    display: block;
}

.project-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.project-content h3 {
    margin: 2rem 0 1rem 0;
    color: var(--text-light);
    font-size: 1.2rem;
}

.project-content ul {
    list-style: none;
    padding: 0;
}

.project-content li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.project-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.project-solution {
    background: var(--bg-light);
    padding: 4rem 0;
}

.dark .project-solution {
    background: rgba(17, 24, 39, 0.5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.dark .feature-card {
    background: var(--bg-dark);
    border: 1px solid rgba(55, 65, 81, 0.3);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    max-width: 2rem;
    flex-shrink: 0;
    display: block;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.project-results {
    padding: 4rem 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.result-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 1rem;
}

.dark .result-item {
    background: rgba(17, 24, 39, 0.5);
}

.result-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.result-description {
    color: var(--text-light);
    opacity: 0.8;
}

.testimonial {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 3rem;
    border-left: 4px solid var(--primary-color);
}

.dark .testimonial {
    background: rgba(17, 24, 39, 0.5);
}

.testimonial blockquote {
    font-style: italic;
    margin: 0 0 1rem 0;
    color: var(--text-light);
}

.testimonial cite {
    color: var(--text-light);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===== CARROUSEL (pages projet) ===== */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    pointer-events: none;
}

.carousel-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .carousel-container,
    .carousel-container.is-gallery {
        overflow: visible;
        border-radius: 0;
        box-shadow: none;
    }

    .carousel-container .carousel-wrapper,
    .carousel-container.is-gallery .carousel-wrapper {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        transform: none !important;
        transition: none;
    }

    .carousel-container .carousel-slide,
    .carousel-container.is-gallery .carousel-slide {
        min-width: 100%;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .carousel-container .carousel-caption,
    .carousel-container.is-gallery .carousel-caption {
        position: static;
        background: transparent;
        color: var(--text-light);
        text-align: center;
        padding: 1rem 0 0;
        font-size: 0.9rem;
        opacity: 0.8;
    }

    .carousel-container .carousel-controls,
    .carousel-container .carousel-dots,
    .carousel-container.is-gallery .carousel-controls,
    .carousel-container.is-gallery .carousel-dots {
        display: none !important;
    }
}

.project-gallery {
    background: var(--bg-light);
    padding: 4rem 0;
}

.dark .project-gallery {
    background: rgba(17, 24, 39, 0.5);
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.gallery-item {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 640px) {
    .gallery-item {
        flex: 0 0 calc(50% - 1rem);
        max-width: 400px;
    }
}

.gallery-item img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive pour la galerie - déjà géré ci-dessus */

.gallery-caption {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-light);
    opacity: 0.8;
    font-size: 0.9rem;
}

.project-cta {
    padding: 4rem 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Responsive pour les pages projets */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

/* Styles pour la page de confirmation */
.confirmation-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    color: #10b981;
    margin-bottom: 2rem;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.cta-button.secondary:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    pointer-events: none;
}

.carousel-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .carousel-container,
    .carousel-container.is-gallery {
        overflow: visible;
        border-radius: 0;
        box-shadow: none;
    }

    .carousel-container .carousel-wrapper,
    .carousel-container.is-gallery .carousel-wrapper {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        transform: none !important;
        transition: none;
    }

    .carousel-container .carousel-slide,
    .carousel-container.is-gallery .carousel-slide {
        min-width: 100%;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .carousel-container .carousel-caption,
    .carousel-container.is-gallery .carousel-caption {
        position: static;
        background: transparent;
        color: var(--text-light);
        text-align: center;
        padding: 1rem 0 0;
        font-size: 0.9rem;
        opacity: 0.8;
    }

    .carousel-container .carousel-controls,
    .carousel-container .carousel-dots,
    .carousel-container.is-gallery .carousel-controls,
    .carousel-container.is-gallery .carousel-dots {
        display: none !important;
    }
}