body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f9;
    color: #333;
    font-size: 16px;
    font-size: clamp(14px, 2.5vw, 18px);
}

header {
    text-align: center;
    padding: 2rem 0;
    position: relative;
}

#logo {
    max-width: 100%;
    height: auto;
    width: clamp(200px, 80vw, 600px);
}

.parallax-container {
    position: relative;
    height: 60vh;
    min-height: 300px;
    overflow: hidden;
    margin-top: 0;
}

.parallax-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(169, 156, 131, 0.2);
    z-index: 0;
}

.parallax-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #27201d;
    text-align: center;
    z-index: 1;
    width: 90%;
    max-width: 800px;
    font-weight: bold;
}

.parallax-text h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    color: #ab7e00;
}

.parallax-text h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    color: white;
}

.parallax-text p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.5;
    font-family: 'Julius Sans One', sans-serif;
}

.parallax-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.4;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
    transform: translateY(0);
}

main {
    padding: 2rem;
}

h1, h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
    color: #AB7E00;
}

#offerings {
    text-align: center;
}

.offering-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.offering-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    transition: transform 0.3s;
}

.offering-card:hover {
    transform: translateY(-10px);
}

.offering-card img {
    width: 100%;
    height: auto;
}

.offering-card h3 {
    margin-top: 1rem;
    font-size: clamp(1.1rem, 3vw, 1.25rem);
}

.offering-card p,
.offering-card ul {
    padding: 0 1rem 1rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.5;
}

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

.offering-card li {
  margin-bottom: 1rem; 
}

#interpreters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.interpreter-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    transition: transform 0.3s;
}

.interpreter-card:hover {
    transform: translateY(-10px);
}

.interpreter-card video {
    width: 100%;
    height: auto;
}

.interpreter-info {
    padding: 1rem;
}

.interpreter-info h3 {
    margin-top: 0;
    font-size: clamp(1.1rem, 3vw, 1.25rem);
}

.interpreter-info p {
    margin: 0.5rem 0;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.interpreter-info a {
    color: #AB7E00;
    text-decoration: none;
}

.interpreter-info a:hover {
    text-decoration: underline;
}

/* ==================== SECTION CONTACT MODERNISÉE ==================== */
#contact {
    margin-top: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #AB7E00, transparent);
}

#contact h2 {
    color: #AB7E00;
    margin-bottom: 2rem;
}

.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.contact-intro p {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.7;
    color: #666;
    margin-bottom: 1rem;
}

.contact-intro p:first-child {
    font-weight: 600;
    color: #333;
    font-size: clamp(1.125rem, 3vw, 1.25rem);
}

.contact-intro a {
    color: #AB7E00;
    text-decoration: none;
    font-weight: 500;
}

.contact-intro a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* Formulaire de contact moderne */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(171, 126, 0, 0.1);
    position: relative;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #AB7E00, #D4B800);
    border-radius: 0 0 4px 4px;
}

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

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

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-input {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #AB7E00;
    box-shadow: 0 0 0 4px rgba(171, 126, 0, 0.1);
    transform: translateY(-2px);
}

.form-input.has-error {
    border-color: #dc3545 !important; 
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.form-input:valid {
    border-color: #28a745;
}

.form-input::placeholder {
    color: #999;
    transition: all 0.15s ease;
}

.form-input:focus::placeholder {
    opacity: 0.7;
    transform: translateY(-2px);
}

/* Textarea spécifique */
textarea.form-input {
    resize: vertical;
    min-height: 120px;
    font-family: 'Inter', sans-serif;
}

/* Compteur de caractères */
.char-counter {
    font-size: 0.875rem;
    color: #999;
    text-align: right;
    margin-top: 0.5rem;
    font-family: 'SF Mono', Monaco, monospace;
}

#char-count.warning {
    color: #ff6b35;
    font-weight: 600;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    opacity: 0; 
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-height: 1.2em; 
    transform: translateY(-10px);
}

.error-message.show {
    opacity: 1; 
    transform: translateY(0);
}

/* Bouton submit moderne */
.submit-btn {
    background: linear-gradient(135deg, #AB7E00 0%, #8B6700 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(171, 126, 0, 0.3);
    margin-top: 1rem;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(171, 126, 0, 0.4);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

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

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loader::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(400px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.toast.error {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-icon {
    font-size: 1.25rem;
    min-width: 24px;
}

.toast.success .toast-icon::before {
    content: '✓';
}

.toast.error .toast-icon::before {
    content: '✕';
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.15s ease;
}

.toast-close:hover {
    opacity: 1;
    transform: scale(1.1);
}


@media (max-width: 768px) {
    #contact {
        padding: 1.5rem 1rem;
        margin-top: 1rem;
    }
    
    #contact h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 1.5rem;
    }
    
    .contact-intro {
        margin-bottom: 2rem;
    }
    
    .contact-intro p {
        font-size: clamp(0.9rem, 4vw, 1rem);
        margin-bottom: 0.75rem;
    }
    
    .contact-form-container {
        padding: 1.5rem 1rem;
        margin: 0 -0.5rem;
        border-radius: 8px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-input {
        padding: 0.875rem;
        font-size: 16px; /* Évite le zoom sur iOS */
        border-radius: 6px;
    }
    
    textarea.form-input {
        min-height: 100px;
        resize: none; /* Désactive le resize sur mobile */
    }
    
    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        margin-top: 1.5rem;
    }
    
    .char-counter {
        font-size: 0.8rem;
    }
    
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: 0;
        transform: translateY(-100px);
        padding: 1rem;
        border-radius: 6px;
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    .toast-close {
        top: 6px;
        right: 6px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    #contact {
        padding: 1rem 0.5rem;
        border-radius: 8px;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .contact-form-container {
        padding: 1.25rem 0.875rem;
        box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
    }
    
    .contact-form-container::before {
        width: 40px;
        height: 3px;
    }
    
    .form-input {
        padding: 0.75rem;
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 0.875rem 1.25rem;
        border-radius: 6px;
    }
    
    .toast {
        top: 5px;
        right: 5px;
        left: 5px;
        padding: 0.875rem;
        font-size: 0.9rem;
    }
}

/* Optimisations tactiles */
@media (hover: none) and (pointer: coarse) {
    .form-input {
        min-height: 44px; /* Taille minimum recommandée pour le touch */
    }
    
    .submit-btn {
        min-height: 48px;
        font-size: 1.1rem;
    }
    
    .toast-close {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Support des encoches (notch) pour iPhone X+ */
@supports (padding: max(0px)) {
    .toast {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        top: max(10px, env(safe-area-inset-top));
    }
}


.contact-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    border: 1px solid #AB7E00;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2rem;
}

.contact-video {
    width: 100%;
}

.contact-video video {
    padding: 12px;
    width: 100%;
    object-fit: cover;
}

.contact-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#gallery {
    text-align: center;
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .contact-container {
        flex-direction: row;
    }

    .contact-video {
        flex: 1;
        max-width: 50%;
    }

    .contact-content {
        flex: 1;
    }
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #8B6700;
    color: white;
    font-size: clamp(12px, 2vw, 14px);
    margin-top: 20px;
}


.popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.popup.success {
    background-color: #d4edda;
    color: #155724;
}

.popup.error {
    background-color: #f8d7da;
    color: #721c24;
}

.popup-close {
    position: absolute;
    right: 10px;
    top: 5px;
    cursor: pointer;
}


/* Styles pour les réseaux sociaux */
.social-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(171, 126, 0, 0.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #AB7E00, #D4A017);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(171, 126, 0, 0.3);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(171, 126, 0, 0.5);
    background: linear-gradient(135deg, #D4A017, #AB7E00);
}

.social-link:active {
    transform: translateY(-1px) scale(1.05);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-text {
    text-align: center;
    color: #d8c8c8;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
}

/* Correction spécifique pour iOS/iPhone */
@media (max-width: 480px) {
    .social-link {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        max-width: 32px;
        max-height: 32px;
    }
    
    .social-link svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }
}

/* Correction pour les écrans très petits (iPhone SE, etc.) */
@media (max-width: 375px) {
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
        max-width: 30px;
        max-height: 30px;
    }
    
    .social-link svg {
        width: 13px;
        height: 13px;
    }
}