/* 
 * Styles communs pour haddi.tools
 * Version: 2.0
 * Compatible: cPanel/Serveur web
 */

/* Variables CSS communes */
:root {
    --primary-yellow: #FFD700;
    --primary-pink: #2c79a6;
    --primary-green: #00C896;
    --primary-blue: #4A90E2;
    --dark-gray: #2D2D2D;
    --light-gray: #f8f9fa;
    --white: #ffffff;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--light-gray) 0%, #e8f4f8 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    /* Pas de padding-top ici pour éviter les conflits */
}

/* Header du site */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

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

.contact-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-gray);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

/* Texte du logo handwritten */
.logo-text {
    font-size: 1.8rem;
    font-weight: 400;
    color: #2d2d2d;
    line-height: 1;
    font-family: 'Dancing Script', cursive;
    letter-spacing: 0.5px;
    position: relative;
}

/* Effet de couleur au hover */
.logo:hover .logo-text {
    color: var(--primary-blue);
}

/* Petit soulignement manuscrit */
.logo-text::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.4s ease;
    border-radius: 1px;
}

.logo:hover .logo-text::after {
    width: 100%;
}

/* Espacement pour le header fixe - appliqué après le header */
#header-container + * {
    margin-top: 90px !important;
}

/* Offset pour les ancres - compense la hauteur du header fixe */
section[id] {
    scroll-margin-top: 100px;
}

/* Ajustement spécifique pour les sections avec ancres */
#quiz, #outils, #about {
    scroll-margin-top: 100px;
}

/* Responsive header */
@media (max-width: 768px) {
    #header-container + * {
        margin-top: 100px !important;
    }
    
    /* Ajustement de l'offset des ancres sur mobile */
    section[id], #quiz, #outils, #about {
        scroll-margin-top: 110px;
    }
    
    .header-content {
        padding: 0.8rem 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-nav {
        gap: 0.8rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .contact-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    #header-container + * {
        margin-top: 110px !important;
    }
    
    /* Ajustement de l'offset des ancres sur très petits écrans */
    section[id], #quiz, #outils, #about {
        scroll-margin-top: 120px;
    }
    
    .header-content {
        padding: 0.8rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-nav {
        gap: 0.6rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
    
    .contact-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
} 