* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Accessibilité */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus styles pour l'accessibilité */
*:focus {
    outline: 2px solid #DBAF52;
    outline-offset: 2px;
}

/* Header */
.header {
    background-color: #002147;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 130px;
    position: relative;
}

#logo {
    color: #ffff;
    padding: 17px;
    font-family: "Modak", serif;
    font-style: normal;
    font-size: clamp(2rem, 5vw, 4rem);
    transition: transform 0.3s ease;
    cursor: pointer;
}

#logo a {
    color: inherit;
    text-decoration: none;
    display: block;
}

#logo:hover {
    transform: scale(1.03);
}

/* Navigation */
.navbar {
    padding: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lien {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 5vw, 12rem);
    list-style: none;
    flex-wrap: wrap;
}

.lien li a {
    color: #333;
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.lien li a:hover {
    color: #29d9d5;
    background-color: rgba(41, 217, 213, 0.1);
}

.lien li a[aria-current="page"] {
    color: #DBAF52;
    font-weight: 600;
}

.lien li a[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #DBAF52;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 2rem 1rem;
}

#p1 {
    text-decoration: underline #DBAF52 10px;
    font-family: "Raleway", serif;
    margin-top: 73px;
    font-size: 2rem;
    font-weight: 600;
    color: #002147;
}

span {
    color: #DBAF52;
}

/* Content Sections */
.descrip1, .descrip2 {
    margin-top: 2rem;
    min-height: 480px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    padding: 2rem 1rem;
}

.descrip1 {
    background-color: #002147;
    color: white;
}

.descrip2 {
    background-color: white;
    color: #333;
}

.descrip1:hover, .descrip2:hover {
    transform: scale(1.01);
}

.content {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

#pdesc, #pdesc2 {
    font-family: "Raleway", serif;
    font-size: 1.1rem;
    line-height: 1.8;
}

#img1, #img2 {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#img1:hover, #img2:hover {
    transform: scale(1.05);
}

/* Portfolio Section */
.portfolio-section {
    margin-top: 4rem;
    padding: 2rem 1rem;
}

.photo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.f1, .f2 {
    background: white;
    border: 2px solid #000;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.f1:hover, .f2:hover {
    transform: scale(1.1);
    background-color: #f0f0f0;
    border-color: #DBAF52;
}

.f1:active, .f2:active {
    transform: scale(0.95);
}

.p1, .p2, .p3 {
    display: flex;
    width: clamp(250px, 30vw, 310px);
    height: clamp(200px, 25vw, 297px);
    background: #FFF;
    box-shadow: 0px 12px 30px 8px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.p1:hover, .p2:hover, .p3:hover {
    transform: scale(1.05);
    box-shadow: 0px 20px 40px 12px rgba(0, 0, 0, 0.2);
}

#x1, #x2, #x3 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#x1:hover, #x2:hover, #x3:hover {
    transform: scale(1.1);
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    padding: 2rem 1rem;
    background-color: #04132A;
    color: white;
    margin-top: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    margin-bottom: 1rem;
    color: #DBAF52;
    font-size: 1.2rem;
}

.footer-column p,
.footer-column a {
    font-size: 0.9rem;
    color: white;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #29d9d5;
    text-decoration: underline;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .lien { gap: 1rem; margin: 0; }
    .descrip1, .descrip2 { flex-direction: column; text-align: center; padding: 2rem 1rem; }
    .descrip1 .content { order: 2; margin-top: 1rem; }
    .descrip2 .content { order: 1; margin-bottom: 1rem; }
    .photo { flex-direction: column; gap: 1rem; }
    .f1, .f2 { order: 2; }
    .footer { flex-direction: column; text-align: center; }
    .footer-column { min-width: auto; }
}

@media (max-width: 480px) {
    .header { height: 100px; }
    #logo { font-size: 2rem; padding: 10px; }
    .navbar { padding: 1rem; }
    .lien { flex-direction: column; gap: 0.5rem; }
    .lien li a { display: block; padding: 0.75rem; text-align: center; }
    .descrip1, .descrip2 { margin-top: 1rem; padding: 1rem; }
    #pdesc, #pdesc2 { font-size: 1rem; }
    .p1, .p2, .p3 { width: 100%; max-width: 300px; }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.descrip1, .descrip2, .portfolio-section {
    animation: fadeIn 0.8s ease-out;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Skip to main content for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #002147;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}
.about-container, .services-container, .contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
          
.about-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
          
.about-section h2 {
    color: #002147;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}
          
.about-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #DBAF52;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about-text {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.about-image {
    text-align: center;
}
          
.about-image img,
.service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover,
.service-image img:hover {
    transform: scale(1.05);
}

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

.value-card {
    background: linear-gradient(135deg, #002147 0%, #04132A 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.value-card h3 {
    color: #DBAF52;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}
          
.team-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

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

.team-member {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-member img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.team-member h4 {
    color: #002147;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #666;
    font-size: 0.9rem;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
          
.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #DBAF52;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #002147;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-section {
        padding: 1.5rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .about-section h2 {
        font-size: 1.5rem;
    }
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.gradient-panel { 
    background: linear-gradient(135deg, #002147 0%, #04132A 100%); 
    color: white; 
}

.contact-info {
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    color: #DBAF52;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.contact-item i {
    margin-right: 1rem;
    font-size: 1.2rem;
    color: #DBAF52;
    width: 20px;
}
          
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    transition: all 0.3s ease;
}

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

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

.submit-btn {
    background: linear-gradient(135deg, #DBAF52 0%, #c19b4a 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(219, 175, 82, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading .submit-btn {
    position: relative;
    color: transparent;
}

.loading .submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}
          
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #DBAF52;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
    display: none;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
    display: none;
}

.field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"],
.form-group select[aria-invalid="true"] {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

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

.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.service-header {
    padding: 2rem;
    position: relative;
}

.service-header h3 {
    color: #DBAF52;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

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

.service-text {
    line-height: 1.8;
    color: #333;
}

.service-text h4 {
    color: #f2f3f5;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-text ul {
    list-style: none;
    padding: 0;
}

.service-text li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #DBAF52;
    font-weight: bold;
}

.service-image {
    text-align: center;
}

.service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.service-features {
    background: #f8f9fa;
    padding: 2rem;
    border-top: 1px solid #e9ecef;
}
          
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-weight: 600;
    color: #002147;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #DBAF52 0%, #c19b4a 100%);
    color: white;
    border-radius: 12px;
    margin-top: 3rem;
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.cta-button {
    background: white;
    color: #DBAF52;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .service-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-header {
        padding: 1.5rem;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .service-features {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-section h3 {
        font-size: 1.5rem;
    }
}

.service-card:nth-child(even) .service-content {
    direction: rtl;
}

.service-card:nth-child(even) .service-content > * {
    direction: ltr;
}
          