/* Variables de design */
:root {
    --text-main: #2c3e50;
    --accent: #0056b3;
    --bg-light: #fdfdfd;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Lora', serif;
}

/* À ajouter juste en dessous de :root {} */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.8;
    background-color: var(--bg-light);
}

.playfair { font-family: var(--font-serif); }

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

/* Hero Section optimisée */
.hero {
    height: 100vh; /* Utilise toute la hauteur de l'écran */
    min-height: 500px; 
    background-image: url('../img/hero-area.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: scroll; /* On désactive le 'fixed' car il pose problème sur mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* On réactive l'effet fixe uniquement pour les grands écrans (ordinateurs) */
@media (min-width: 1024px) {
    .hero {
        background-attachment: fixed;
    }
}

.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* Supprime le voile sombre */
}

/* Par défaut pour les mobiles (décalage léger) */
.hero-content {
    padding-top: 60px; /* On réduit de moitié pour ne pas trop descendre sur petit écran */
}

/* Pour les tablettes et ordinateurs (décalage complet) */
@media (min-width: 768px) {
    .hero-content {
        padding-top: 85px; 
    }
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: white; /* On repasse en blanc pour trancher sur le bleu */
    display: inline-block; /* Important pour que le fond s'adapte à la longueur du texte */
    background-color: rgba(0, 86, 179, 0.7); /* Votre bleu (--accent) avec 70% d'opacité */
    padding: 10px 20px;
    border-radius: 5px;
    text-shadow: none; /* Plus besoin d'ombre ici */
    transform: rotate(-1.5deg); /* L'effet de rotation */
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: white;
    display: table; /* Permet de centrer le bloc tout en s'adaptant à la largeur du texte */
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(0, 86, 179, 0.6); /* Un bleu légèrement plus transparent */
    padding: 5px 15px;
    border-radius: 4px;  
    transform: rotate(1deg);   /* Une rotation inverse ou différente pour un aspect plus dynamique */
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 5px;
    transition: 0.3s;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

/* Portfolio */
.bg-light { background-color: #f4f7f6; }

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

.card {
    background: white;
    padding: 30px;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Footer */
footer {
    padding: 60px 0;
    background: #1a1a1a;
    color: #999;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: 0.3s;
}

.social-links a:hover { color: var(--accent); }

/* Ajustements pour mobiles */
@media (max-width: 768px) {
    .hero-content {
        text-align: center; /* Force le centrage de tout ce qui est à l'intérieur */
        width: 100%;
        padding: 0 15px; /* Évite que le texte touche les bords du téléphone */
    }

    .hero-content h1 {
        font-size: 2.5rem;
        padding: 8px 12px;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 1.1rem;
        padding: 5px 10px;
    }

	
    .cta-buttons {
        display: flex;
        flex-direction: column; /* Aligne les boutons l'un au-dessus de l'autre sur mobile */
        align-items: center;
    }
}

.whatsapp-badge {
    display: inline-flex;
    align-items: center;
    background-color: #25d366; /* Vert WhatsApp */
    color: white !important;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.3s;
}
.whatsapp-badge i { margin-right: 8px; font-size: 1.1rem; }
.whatsapp-badge:hover { background-color: #128c7e; transform: scale(1.05); }

.contact-form {
    max-width: 600px;
    margin: 40px auto;
    text-align: left;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}
.contact-form button {
    width: 100%;
    cursor: pointer;
    border: none;
}

/* Style des Bulles (Tooltips) */
.social-links a {
    position: relative; /* Nécessaire pour positionner la bulle par rapport au lien */
    display: inline-block;
}

.social-links a::after {
    content: attr(data-tooltip); /* Récupère le texte du HTML */
    position: absolute;
    bottom: 130%; /* Place la bulle au-dessus de l'icône */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 86, 179, 0.9); /* Votre bleu accentué */
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0; /* Caché par défaut */
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none; /* Évite que la bulle gêne le clic */
}

/* La petite flèche sous la bulle */
.social-links a::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 86, 179, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

/* Affichage au survol */
.social-links a:hover::after,
.social-links a:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    font-family: var(--font-body);
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}
.lang-link {
    text-decoration: none;
    color: var(--accent);
    font-weight: bold;
    margin: 0 5px;
}
/* Style spécifique pour le mot "العربية" dans le sélecteur de langue FR */
.lang-link.arabic-link {
    font-family: 'Almarai', sans-serif;
    font-weight: 700;
    vertical-align: middle; /* Aligne mieux le texte avec le "FR" */
    display: inline-block;
}