/* Reset et variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --noir: #000000;
    --blanc: #ffffff;
    --rouge: #dc2626;
    --rouge-hover: #b91c1c;
    --gris-clair: #f5f5f5;
    --gris: #6b7280;
    --gris-fonce: #374151;
}

/* Typographie */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--noir);
    background-color: var(--blanc);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
    margin-bottom: 1rem;
    color: var(--gris-fonce);
}

a {
    color: var(--rouge);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--rouge-hover);
}

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

/* Header et Navigation */
header {
    background-color: var(--blanc);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    background-image: url('../img/Staz.Tech_logo_seul_black.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 150px;
    height: 80px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--noir);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
    display: block;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown > a::after {
    content: ' ▼';
    font-size: 0.7em;
    color: var(--rouge);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--blanc);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0.375rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--noir);
    font-weight: 400;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: var(--gris-clair);
    color: var(--rouge);
    border-left-color: var(--rouge);
}

.dropdown-menu a::after {
    display: none;
}

/* Menu mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--noir);
    transition: all 0.3s ease;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 2rem;
}

.language-switcher a {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.language-switcher a:hover {
    opacity: 1;
}

.language-switcher a.active {
    opacity: 1;
}

.language-switcher img {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--noir) 0%, var(--gris-fonce) 100%);
    color: var(--blanc);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, var(--rouge) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    color: var(--rouge);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--blanc);
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background-color: var(--rouge);
    color: var(--blanc);
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    background-color: var(--rouge-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 38, 38, 0.4);
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: var(--gris-clair);
}

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

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

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

.service-card {
    background-color: var(--blanc);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--rouge);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--rouge);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--blanc);
}

/* Solutions Section */
.solutions {
    padding: 4rem 0;
}

.solutions-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.solution-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.solution-item-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-color: var(--rouge);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanc);
    font-weight: bold;
}

/* Stats Section */
.stats {
    background-color: var(--noir);
    color: var(--blanc);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--rouge);
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta {
    background-color: var(--rouge);
    color: var(--blanc);
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--blanc);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--blanc);
    color: var(--rouge);
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--gris-clair);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--noir);
    color: var(--blanc);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--rouge);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--blanc);
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--rouge);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }

    .solutions-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--blanc);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        margin-left: 1rem;
        background-color: var(--gris-clair);
    }

    .dropdown > a::after {
        content: '';
    }

    .menu-toggle {
        display: flex;
    }

    .language-switcher {
        margin-left: 0;
        margin-right: 1rem;
        order: -1;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        padding: 2rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.5rem;
    }

    .stat-item h3 {
        font-size: 2rem;
        margin-bottom: 0.25rem;
    }

    .stat-item p {
        text-align: center;
        width: 100%;
        font-size: 0.85rem;
        margin: 0;
    }
}

/* Animations au scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--rouge);
    transform: translateY(-3px);
}

.social-icons svg {
    width: 20px;
    height: 20px;
    fill: var(--blanc);
}

/* Page Header (pour pages internes) */
.page-header {
    background: linear-gradient(135deg, var(--noir) 0%, var(--gris-fonce) 100%);
    color: var(--blanc);
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, var(--rouge) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 8s ease-in-out infinite;
}

.page-header h1 {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.page-header p {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    opacity: 0.9;
    color: var(--blanc);
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--blanc);
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    opacity: 0.6;
}

/* Services Sections pour pages internes */
.services-section,
.service-section {
    padding: 4rem 0;
}

.services-section:nth-child(even),
.service-section:nth-child(even) {
    background-color: var(--gris-clair);
}

.service-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.service-text h2 {
    color: var(--noir);
    margin-bottom: 1.5rem;
}

.service-text h2 span {
    color: var(--rouge);
}

/* Features List */
.features-list,
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    list-style: none;
    padding: 0;
}

.feature-item,
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-color: var(--rouge);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanc);
    font-weight: bold;
    font-size: 0.8rem;
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background-color: var(--blanc);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--rouge);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

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

.pricing-header h3 {
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--rouge);
}

.price .period {
    font-size: 1rem;
    color: var(--gris);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gris-clair);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--rouge);
    font-weight: bold;
}

/* Contact Form */
.contact-form {
    background-color: var(--blanc);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--noir);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gris);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--rouge);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Additional responsive rules for new components */
@media (min-width: 1024px) {
    .pricing-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

    .features-list,
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .service-content {
        grid-template-columns: 1fr;
    }
}

/* Cloud Page Specific Styles */
.nav-links a.active::after {
    width: 100%;
}

.dropdown-menu a.active {
    background-color: var(--gris-clair);
    color: var(--rouge);
    border-left-color: var(--rouge);
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-header h1 span {
    color: var(--rouge);
}

/* Schéma Multicloud */
.multicloud-diagram {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--gris-clair);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.diagram-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
}

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

.client-project {
    background-color: var(--blanc);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.client-project:hover {
    border-color: var(--rouge);
    transform: translateX(5px);
}

.client-project-icon {
    width: 40px;
    height: 40px;
    background-color: var(--rouge);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanc);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.central-interface {
    background: linear-gradient(135deg, var(--noir) 0%, var(--gris-fonce) 100%);
    color: var(--blanc);
    padding: 3rem 2rem;
    border-radius: 1rem;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transform: scale(1.05);
}

.central-interface::before,
.central-interface::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rouge), transparent);
}

.central-interface::before {
    left: -100px;
    animation: flowLeft 3s ease-in-out infinite;
}

.central-interface::after {
    right: -100px;
    animation: flowRight 3s ease-in-out infinite;
}

@keyframes flowLeft {
    0%, 100% { transform: translateY(-50%) translateX(0); opacity: 0; }
    50% { transform: translateY(-50%) translateX(50px); opacity: 1; }
}

@keyframes flowRight {
    0%, 100% { transform: translateY(-50%) translateX(0); opacity: 0; }
    50% { transform: translateY(-50%) translateX(-50px); opacity: 1; }
}

.interface-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--rouge);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
}

.interface-logo::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--rouge);
    border-radius: 50%;
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.cloud-provider {
    background-color: var(--blanc);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.cloud-provider:hover {
    border-color: var(--rouge);
    transform: translateX(-5px);
}

.cloud-provider-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 0.375rem;
}

.aws { background-color: #FF9900; color: white; }
.azure { background-color: #0078D4; color: white; }
.gcp { background-color: #4285F4; color: white; }
.ovh { background-color: #000E9C; color: white; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--blanc);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--rouge);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-card-icon {
    width: 50px;
    height: 50px;
    background-color: var(--rouge);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--blanc);
}

/* Additional responsive rules for cloud page */
@media (max-width: 968px) {
    .diagram-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .central-interface::before,
    .central-interface::after {
        display: none;
    }

    .client-project:hover,
    .cloud-provider:hover {
        transform: translateY(-5px);
    }
}

@media (min-width: 768px) {
    .service-section:nth-child(even) .service-content {
        direction: rtl;
    }

    .service-section:nth-child(even) .service-text {
        direction: ltr;
    }
}

/* Development Page Specific Styles */

/* Dev Process Diagram */
.dev-process-diagram {
    background-color: var(--gris-clair);
    padding: 3rem 2rem;
    border-radius: 1rem;
    margin: 3rem 0;
}

.process-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    flex: 1 1 0;
    min-width: 180px;
    max-width: 280px;
    min-height: 200px;
    background-color: var(--blanc);
    padding: 1.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--blanc);
}

.step-icon.client {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.step-icon.platform {
    background: linear-gradient(135deg, var(--rouge), #ef4444);
}

.step-icon.community {
    background: linear-gradient(135deg, #059669, #10b981);
}

.process-step h4 {
    margin: 0.5rem 0 1rem 0;
    font-size: 1.2rem;
    color: var(--noir);
    font-weight: 600;
}

.process-step p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--gris-fonce);
    line-height: 1.4;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.process-arrow {
    width: 50px;
    height: 3px;
    background-color: var(--rouge);
    position: relative;
    margin: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.process-arrow.arrow1::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--rouge);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.process-arrow.arrow2 {
    background-color: var(--rouge);
}

.process-arrow.arrow2::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-right: 8px solid var(--rouge);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.process-arrow.arrow2::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--rouge);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* AI Tools Box */
.ai-tools-box {
    background: linear-gradient(135deg, var(--noir), var(--gris-fonce));
    color: var(--blanc);
    padding: 3rem 2rem;
    border-radius: 1rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.ai-tools-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, var(--rouge) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 8s ease-in-out infinite;
}

.ai-tools-box h3 {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.ai-tools-box > p {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.ai-tool-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.ai-tool-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.ai-tool-item h4 {
    margin-bottom: 0.75rem;
    color: var(--blanc);
    font-size: 1.1rem;
}

.ai-tool-item p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--blanc);
}

/* CI/CD Pipeline Diagram */
.cicd-pipeline {
    background-color: var(--gris-clair);
    padding: 3rem 2rem;
    border-radius: 1rem;
    margin: 3rem 0;
}

.pipeline-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.pipeline-step {
    background-color: var(--blanc);
    padding: 1.5rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.pipeline-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pipeline-step::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--rouge);
}

.pipeline-step:last-child::after {
    display: none;
}

.pipeline-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.pipeline-step h4 {
    font-size: 0.9rem;
    margin: 0.5rem 0;
    color: var(--noir);
}

.pipeline-step p {
    font-size: 0.8rem;
    color: var(--gris-fonce);
    margin: 0;
}

/* Tech Stack Grid */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tech-item {
    background-color: var(--blanc);
    padding: 1.5rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--rouge);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.tech-item h4 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--noir);
}

/* WebApp Grid */
.webapp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.webapp-card {
    background-color: var(--blanc);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.webapp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--rouge);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.webapp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.webapp-card:hover::before {
    transform: translateX(0);
}

.webapp-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.webapp-card h3 {
    color: var(--noir);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.webapp-card p {
    color: var(--gris-fonce);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.webapp-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.webapp-card li {
    color: var(--gris-fonce);
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

/* Project Carousel */
.project-carousel {
    background: linear-gradient(135deg, var(--noir), var(--gris-fonce));
    color: var(--blanc);
    border-radius: 1rem;
    padding: 3rem 2rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.project-carousel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, var(--rouge) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 8s ease-in-out infinite;
}

.project-slides {
    position: relative;
    width: 100%;
    height: auto;
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.project-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.carousel-label {
    color: var(--blanc);
    font-weight: 600;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanc);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid transparent;
}

.indicator.active {
    background-color: var(--rouge);
    transform: scale(1.1);
    border-color: var(--blanc);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.6);
    color: var(--noir);
}

.project-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.project-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-feature {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.project-feature:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.project-feature h4 {
    color: var(--rouge);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.project-feature p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Development Methodology */
.methodology {
    background-color: var(--gris-clair);
    padding: 3rem 2rem;
    border-radius: 1rem;
    margin: 3rem 0;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.methodology-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--blanc);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.methodology-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.methodology-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.methodology-item h4 {
    color: var(--noir);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.methodology-item p {
    color: var(--gris-fonce);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Desktop layout optimization */
@media (min-width: 1024px) {
    .process-flow {
        max-width: 1200px;
        gap: 2rem;
    }
    
    .process-step {
        max-width: 300px;
        padding: 2rem 1.5rem;
    }
    
    .process-arrow {
        width: 60px;
        margin: 0 1rem;
    }
}

/* Tablet layout */
@media (max-width: 1023px) and (min-width: 769px) {
    .process-flow {
        flex-wrap: nowrap;
        gap: 1rem;
        max-width: 900px;
    }
    
    .process-step {
        min-width: 160px;
        max-width: 250px;
        padding: 1.5rem 1rem;
    }
    
    .process-arrow {
        width: 40px;
        margin: 0 0.5rem;
    }
}

/* Mobile layout */
@media (max-width: 768px) {
    .process-flow {
        flex-direction: column;
        gap: 1rem;
    }

    .process-step {
        max-width: 100%;
        width: 90%;
        min-height: 180px;
        margin: 0 auto;
        padding: 1.5rem 1.5rem;
        text-align: center;
    }

    .process-step .step-icon {
        margin-bottom: 0.75rem;
    }

    .process-step h4 {
        font-size: 1.1rem;
        margin: 0 0 0.75rem 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .process-step p {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .process-arrow {
        transform: rotate(90deg);
        width: 40px;
        height: 3px;
        margin: 1rem 0;
    }
    
    .process-arrow.arrow1::after {
        right: -8px;
        transform: translateY(-50%) rotate(90deg);
    }
    
    .process-arrow.arrow2::before {
        left: -8px;
        transform: translateY(-50%) rotate(-90deg);
    }
    
    .process-arrow.arrow2::after {
        right: -8px;
        transform: translateY(-50%) rotate(90deg);
    }
    
    .ai-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .pipeline-flow {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pipeline-step::after {
        content: '↓';
        right: 50%;
        top: 100%;
        transform: translateX(50%);
    }
    
    .tech-stack {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 1rem;
    }
    
    .webapp-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-carousel {
        padding: 1.5rem 1rem;
        margin: 2rem 0;
    }

    .project-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-content h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .project-content h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .project-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .project-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .project-feature {
        padding: 1rem;
    }

    .project-feature h4 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .project-feature p {
        font-size: 0.8rem;
    }

    .carousel-indicators {
        margin-top: 1.5rem;
    }

    .methodology-grid {
        grid-template-columns: 1fr;
    }
}

/* Focus pour accessibilité */
*:focus {
    outline: 2px solid var(--rouge);
    outline-offset: 2px;
}

/* GDPR Cookie Consent Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--noir), var(--gris-fonce));
    color: var(--blanc);
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
    border-top: 3px solid var(--rouge);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text h3 {
    color: var(--rouge);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cookie.accept {
    background-color: var(--rouge);
    color: var(--blanc);
}

.btn-cookie.accept:hover {
    background-color: var(--rouge-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-cookie.reject {
    background-color: transparent;
    color: var(--blanc);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cookie.reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.cookie-link {
    color: var(--rouge);
    text-decoration: underline;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: var(--blanc);
}

/* Cookie Policy Modal */
#cookie-policy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
}

.modal-overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: var(--blanc);
    border-radius: 0.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gris-clair);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--noir);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gris);
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: var(--gris-clair);
}

.modal-body {
    padding: 1.5rem;
    color: var(--gris-fonce);
}

.modal-body h3 {
    color: var(--rouge);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gris-clair);
    display: flex;
    justify-content: flex-end;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .btn-cookie {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
}

/* Contact Page Specific Styles */
.contact-section {
    padding: 5rem 0;
    background-color: var(--blanc);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-form-wrapper {
    background-color: var(--gris-clair);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-form-wrapper h2 {
    margin-bottom: 2rem;
    color: var(--noir);
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--noir);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--blanc);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--rouge);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: var(--rouge);
    color: var(--blanc);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--rouge-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Contact Info */
.contact-info {
    padding: 2rem;
}

.contact-info h2 {
    margin-bottom: 2rem;
    color: var(--noir);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--gris-clair);
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--rouge);
    border-radius: 50%;
}

.info-content h3 {
    color: var(--rouge);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-content p {
    color: var(--gris-fonce);
    margin: 0;
    line-height: 1.5;
}

.office-image {
    margin-top: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.office-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.office-image:hover img {
    transform: scale(1.05);
}

/* Map Section */
.map-section {
    padding: 4rem 0;
    background-color: var(--gris-clair);
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Page Responsive */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }

    .info-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .map-container {
        height: 300px;
    }
}

/* Captcha Styles */
.captcha-group {
    background-color: var(--gris-clair);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.captcha-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--noir);
    background: var(--blanc);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    min-width: 200px;
}

.captcha-question span {
    color: var(--rouge);
    font-weight: 700;
}

.captcha-container input[type="number"] {
    width: 100px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.captcha-refresh {
    background: var(--rouge);
    color: var(--blanc);
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    background: var(--rouge-hover);
}

.captcha-error {
    font-weight: 500;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@media (max-width: 768px) {
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-question {
        text-align: center;
        min-width: auto;
    }

    .captcha-container input[type="number"] {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .captcha-refresh {
        align-self: center;
        width: 100%;
        max-width: 200px;
    }
}

/* Checkbox Styles */
.checkbox-group {
    background-color: transparent;
    padding: 0;
    border: none;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--rouge);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label {
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.checkbox-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--gris-fonce);
}

.privacy-link {
    color: var(--rouge);
    text-decoration: underline;
    font-weight: 500;
}

.privacy-link:hover {
    color: var(--rouge-hover);
}

.privacy-error {
    font-weight: 500;
    animation: shake 0.5s ease-in-out;
    margin-left: 2rem;
}

/* Privacy consent specific styling */
.checkbox-group:has(#privacy-consent) .checkbox-item {
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: var(--gris-clair);
    margin-bottom: 0.5rem;
}

/* Newsletter styling */
.checkbox-group:has(#newsletter) .checkbox-item {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: #f9fafb;
}

@media (max-width: 768px) {
    .checkbox-item {
        gap: 0.5rem;
    }

    .checkbox-text {
        font-size: 0.9rem;
    }

    .privacy-error {
        margin-left: 1.5rem;
    }
}