/*
 * ============================================================================
 * FEUILLE DE STYLE PERSONNALISÉE - MAXIDEV05
 * ============================================================================
 * Description: Styles CSS personnalisés pour les animations et effets
 * Auteur: Pierrick DUVETTE
 * Date: Août 2025
 * Version: 1.0
 * Framework: CSS personnalisé avec animations modernes
 * ============================================================================
 */

/* ============================================================================
   ANIMATIONS DE BASE
   ============================================================================ */

/* Animation de glissement vers le haut */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation d'agrandissement */
@keyframes scale-up {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation de flottement */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

/* Animation de flottement décalée */
@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(15px) rotate(-2deg); }
    66% { transform: translateY(-10px) rotate(1deg); }
}

/* Animation de rotation continue */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animation de rotation rapide (spinner) */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animation de dégradé en mouvement */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Animation de clignotement du curseur */
@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Animation de lueur pulsante */
@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Animation d'éléments flottants */
@keyframes float-element {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
        opacity: 1;
    }
}

/* Animation de particules flottantes */
@keyframes float-particle {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) translateX(-5px);
        opacity: 1;
    }
    75% {
        transform: translateY(-30px) translateX(15px);
        opacity: 0.6;
    }
}

/* ============================================================================
   CLASSES D'ANIMATION
   ============================================================================ */

/* Classes d'animation principales */
.animate-slide-up {
    animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-up {
    animation: scale-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ============================================================================
   SECTION HERO PRINCIPALE
   ============================================================================ */

/* Section d'accueil */
.home-section {
    background: linear-gradient(135deg, rgb(26 26 27) 0%, rgb(26 26 27) 100%);
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Container du contenu hero */
.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Partie gauche - Contenu textuel */
.hero-left {
    flex: 1;
    max-width: 600px;
}

/* Partie droite - Avatar */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Contenu hero */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Lignes de titre */
.title-line {
    margin-bottom: 0.5rem;
    display: block;
    width: 100%;
}

.title-line span {
    display: block;
    width: 100%;
}

/* Titre principal avec effet révélation */
.head-title {
    margin-bottom: 2rem;
}

.head-title .font-bold {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    color: white;
    display: block;
}

.head-title .gradient-text {
    font-size: 2.5rem;
    font-weight: 300;
    display: block;
    margin-top: 0.5rem;
}

/* Sous-titre hero */
.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2rem;
    max-width: 500px;
}

/* Actions hero */
.hero-actions {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ============================================================================
   ÉLÉMENTS DE FOND HERO
   ============================================================================ */

/* Container des éléments de fond */
.hero-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Cercles flous animés */
.hero-bg-elements .animate-float {
    animation: float 8s ease-in-out infinite;
}

.hero-bg-elements .animate-float-delayed {
    animation: float-delayed 10s ease-in-out infinite;
}

/* Grille en arrière-plan */
.grid-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    z-index: 1;
}

/* ============================================================================
   EFFETS DE TEXTE
   ============================================================================ */

/* Texte avec dégradé animé */
.gradient-text {
    background: linear-gradient(135deg, #d4941e 0%, #ff6b35 50%, #d4941e 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 3s ease infinite;
}

/* Curseur de saisie animé */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: #d4941e;
    margin-left: 0.1em;
    animation: cursor-blink 1s infinite;
}

/* ============================================================================
   BOUTONS MODERNES
   ============================================================================ */

/* Bouton principal moderne */
.btn-primary-modern {
    position: relative;
    margin: 2rem 0;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #d4941e 0%, #ff6b35 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 148, 30, 0.3);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 148, 30, 0.4);
}

/* Effet de brillance sur les boutons */
.btn-shine {
    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;
}

.btn-primary-modern:hover .btn-shine {
    left: 100%;
}

/* Bouton secondaire moderne */
.btn-secondary-modern {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid rgba(212, 148, 30, 0.3);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary-modern:hover {
    border-color: #d4941e;
    background: rgba(212, 148, 30, 0.1);
    transform: translateY(-2px);
}

/* États du bouton de contact */
#contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================================
   AVATAR AVEC EFFETS
   ============================================================================ */

/* Container de l'avatar hero */
.hero-avatar-container {
    position: relative;
}

.hero-avatar-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
}

/* Anneaux rotatifs autour de l'avatar */
.avatar-rings {
    position: absolute;
    inset: 0;
}

.ring {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.ring-1 {
    inset: -20px;
    border-top-color: rgba(212, 148, 30, 0.3);
    animation-duration: 15s;
}

.ring-2 {
    inset: -40px;
    border-right-color: rgba(255, 107, 53, 0.2);
    animation-duration: 20s;
    animation-direction: reverse;
}

.ring-3 {
    inset: -60px;
    border-bottom-color: rgba(212, 148, 30, 0.1);
    animation-duration: 25s;
}

/* Avatar principal */
.hero-avatar {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 25px;
}

/* Effet de lueur autour de l'avatar */
.avatar-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(212, 148, 30, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Image de l'avatar */
.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(212, 148, 30, 0.3);
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.avatar-image:hover {
    transform: scale(1.02);
    border-color: rgba(212, 148, 30, 0.6);
}

/* ============================================================================
   ÉLÉMENTS DÉCORATIFS
   ============================================================================ */

/* Container des éléments flottants */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Éléments flottants individuels */
.floating-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(212, 148, 30, 0.1);
    border: 1px solid rgba(212, 148, 30, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4941e;
    backdrop-filter: blur(5px);
    animation: float-element 4s ease-in-out infinite;
}

/* Positions des éléments flottants */
.element-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.element-2 {
    bottom: 20%;
    left: -15%;
    animation-delay: 1.5s;
}

.element-3 {
    top: 60%;
    right: -5%;
    animation-delay: 3s;
}

/* ============================================================================
   SYSTÈME DE PARTICULES
   ============================================================================ */

/* Container des particules */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Particule de base */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #d4941e;
    border-radius: 50%;
    opacity: 0.6;
}

/* Positions et délais des particules */
.particle-1 {
    top: 20%;
    left: 10%;
    animation: float-particle 8s ease-in-out infinite;
}

.particle-2 {
    top: 60%;
    left: 80%;
    animation: float-particle 6s ease-in-out infinite 2s;
}

.particle-3 {
    top: 30%;
    left: 60%;
    animation: float-particle 10s ease-in-out infinite 4s;
}

.particle-4 {
    top: 80%;
    left: 20%;
    animation: float-particle 7s ease-in-out infinite 1s;
}

.particle-5 {
    top: 10%;
    left: 90%;
    animation: float-particle 9s ease-in-out infinite 3s;
}

.particle-6 {
    top: 70%;
    left: 5%;
    animation: float-particle 5s ease-in-out infinite 5s;
}

/* ============================================================================
   CLASSES TAILWIND PERSONNALISÉES
   ============================================================================ */

/* Classes de couleur avec transparence */
.from-marron-400\/20 {
    --tw-gradient-from: rgba(178, 147, 91, 0.2);
    --tw-gradient-to: rgba(178, 147, 91, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-orange-500\/20 {
    --tw-gradient-to: rgba(249, 115, 22, 0.2);
}

.from-orange-500\/15 {
    --tw-gradient-from: rgba(249, 115, 22, 0.15);
    --tw-gradient-to: rgba(249, 115, 22, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-marron-400\/15 {
    --tw-gradient-to: rgba(178, 147, 91, 0.15);
}

/* Classes de taille */
.w-64 { width: 16rem; }
.h-64 { height: 16rem; }
.w-96 { width: 24rem; }
.h-96 { height: 24rem; }

/* Classes de positionnement */
.top-20 { top: 5rem; }
.left-20 { left: 5rem; }
.bottom-32 { bottom: 8rem; }
.right-32 { right: 8rem; }

/* Classes d'espacement */
.inset-0 { inset: 0; }

/* Classes d'interaction */
.pointer-events-none { pointer-events: none; }

/* Classes de flou */
.blur-3xl { filter: blur(64px); }

/* Classes de bordure */
.rounded-full { border-radius: 50%; }

/* Classes de dégradé */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-l {
    background-image: linear-gradient(to left, var(--tw-gradient-stops));
}

/* Classes de flexbox */
.flex-1 { flex: 1 1 0%; }

/* Classes de largeur max */
.max-w-2xl { max-width: 42rem; }
.max-w-lg { max-width: 32rem; }

/* ============================================================================
   GALERIE D'IMAGES
   ============================================================================ */

/* Grille de la galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

/* Miniatures de la galerie */
.gallery-thumbnail {
    width: 100%;
    height: 8rem;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    border-color: rgba(212, 148, 30, 0.5);
}

/* Image en taille réelle dans la modale */
.modal-image-full {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 1rem auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   MODALES D'IMAGES
   ============================================================================ */

/* Modale d'image */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 0.5rem;
}

/* Bouton de fermeture de la modale */
.image-modal .close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.image-modal .close-modal:hover {
    background: rgba(212, 148, 30, 0.8);
}

/* ============================================================================
   SYSTÈME D'ALERTES
   ============================================================================ */

/* Container des alertes */
.alerts {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: none;
}

/* Zone d'alerte */
.alert-area {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    cursor: pointer;
    border-left: 4px solid;
}

/* Types d'alertes */
.alert-success {
    border-left-color: #10b981;
}

.alert-error {
    border-left-color: #ef4444;
}

/* ============================================================================
   RESPONSIVE DESIGN - TABLETTES
   ============================================================================ */

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-left {
        order: 2;
        max-width: 100%;
    }
    
    .hero-right {
        order: 1;
        justify-content: center;
    }
    
    .hero-content {
        align-items: center;
        text-align: center;
    }
    
    .head-title .font-bold {
        font-size: 3.5rem;
    }
    
    .head-title .gradient-text {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================================================
   RESPONSIVE DESIGN - MOBILE
   ============================================================================ */

@media (max-width: 767px) {
    /* Section hero responsive */
    .home-section {
        padding: 1.5rem 1rem;
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
    
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        align-items: center;
    }
    
    .hero-left {
        order: 2;
        max-width: 100%;
        flex: none;
    }
    
    .hero-right {
        order: 1;
        justify-content: center;
        flex: none;
    }
    
    .hero-content {
        align-items: center;
        text-align: center;
    }
    
    .title-line {
        margin-bottom: 0.5rem;
    }
    
    .title-line span {
        display: block;
        width: 100%;
    }
    
    /* Avatar responsive */
    .hero-avatar-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .hero-avatar {
        width: 200px;
        height: 200px;
        margin: 25px;
    }
    
    /* Typographie responsive */
    .head-title {
        margin-top: 2rem;
    }
    
    .head-title .font-bold {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }
    
    .head-title .gradient-text {
        font-size: 1.8rem !important;
        margin-top: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-top: 1.5rem !important;
        max-width: 100% !important;
        line-height: 1.6;
        text-align: center;
    }
    
    /* Actions hero responsive */
    .hero-actions {
        flex-direction: column;
        align-items: center;
        margin-top: 2rem !important;
        gap: 1rem;
    }
    
    /* Boutons responsive */
    .btn-primary-modern,
    .btn-secondary-modern {
        width: 100%;
        max-width: 280px;
        margin: 0;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Éléments décoratifs responsive */
    .floating-element {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .element-1, .element-2, .element-3 {
        display: none;
    }
    
    .particles {
        opacity: 0.3;
    }
    
    /* Éléments de fond responsive */
    .hero-bg-elements .absolute:first-child {
        width: 150px;
        height: 150px;
        top: 10px;
        left: 10px;
    }
    
    .hero-bg-elements .absolute:nth-child(2) {
        width: 200px;
        height: 200px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Animations plus rapides sur mobile */
    .animate-slide-up {
        animation-duration: 0.6s;
    }
    
    .animate-scale-up {
        animation-duration: 0.6s;
    }
    
    .animate-float,
    .animate-float-delayed {
        animation-duration: 4s;
    }
    
    /* Alertes responsive */
    .alerts {
        left: 20px;
        right: 20px;
    }
    
    .alert-area {
        min-width: auto;
    }
}

/* ============================================================================
   RESPONSIVE DESIGN - TRÈS PETITS ÉCRANS
   ============================================================================ */

@media (max-width: 480px) {
    /* Section hero très petits écrans */
    .home-section {
        padding: 1rem 0.5rem;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
    
    .hero-content-wrapper {
        gap: 1.5rem;
    }
    
    /* Avatar très petits écrans */
    .hero-avatar-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .hero-avatar {
        width: 140px;
        height: 140px;
        margin: 20px;
    }
    
    /* Typographie très petits écrans */
    .head-title .font-bold {
        font-size: 2rem !important;
    }
    
    .head-title .gradient-text {
        font-size: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-top: 1rem !important;
        padding: 0 1rem;
    }
    
    .hero-actions {
        margin-top: 1.5rem !important;
        padding: 0 1rem;
    }
    
    /* Boutons très petits écrans */
    .btn-primary-modern,
    .btn-secondary-modern {
        max-width: 250px;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* Masquer éléments sur très petits écrans */
    .grid-pattern {
        display: none;
    }
    
    .ring-1, .ring-2, .ring-3 {
        display: none;
    }
}

/* ============================================================================
   RESPONSIVE DESIGN - TRÈS PETITS ÉCRANS
   ============================================================================ */

@media (max-width: 480px) {
    /* Section hero très petits écrans */
    .home-section {
        padding: 1rem 0.5rem;
        padding-top: 7rem; /* Augmenté pour éviter le header */
        padding-bottom: 3rem;
    }
    
    .hero-content-wrapper {
        gap: 1rem; /* Réduit l'espace entre avatar et contenu */
    }
    
    /* Avatar très petits écrans - plus petit et plus bas */
    .hero-avatar-wrapper {
        width: 150px; /* Réduit encore plus */
        height: 150px;
        margin-top: 1rem; /* Espace depuis le top */
    }
    
    .hero-avatar {
        width: 120px; /* Réduit encore plus */
        height: 120px;
        margin: 15px;
    }
    
    /* Anneaux réduits proportionnellement */
    .ring-1 {
        inset: -15px;
        display: block; /* Réaffiche pour très petits écrans */
    }
    
    .ring-2 {
        inset: -25px;
        display: block;
    }
    
    .ring-3 {
        display: none; /* Masque le plus grand */
    }
    
    /* Effet de lueur réduit */
    .avatar-glow {
        inset: -15px;
        filter: blur(15px);
    }
    
    /* Typographie très petits écrans */
    .head-title {
        margin-top: 1rem; /* Réduit l'espace */
    }
    
    .head-title .font-bold {
        font-size: 1.8rem !important; /* Plus petit */
        line-height: 1.1;
    }
    
    .head-title .gradient-text {
        font-size: 1.3rem !important; /* Plus petit */
        margin-top: 0.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem !important;
        margin-top: 0.75rem !important;
        padding: 0 1rem;
        line-height: 1.4;
    }
    
    .hero-actions {
        margin-top: 1rem !important;
        padding: 0 1rem;
    }
    
    /* Boutons très petits écrans */
    .btn-primary-modern,
    .btn-secondary-modern {
        max-width: 220px; /* Plus petit */
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Masquer éléments décoratifs sur très petits écrans */
    .grid-pattern,
    .floating-elements,
    .particles {
        display: none;
    }
    
    /* Éléments de fond - masquer ou réduire */
    .hero-bg-elements .absolute {
        display: none;
    }
}

/* ============================================================================
   RESPONSIVE DESIGN - EXTRA PETITS ÉCRANS (iPhone SE et similaires)
   ============================================================================ */

@media (max-width: 375px) {
    /* Section hero extra petits écrans */
    .home-section {
        padding-top: 8rem; /* Encore plus d'espace pour le header */
        min-height: auto;
    }
    
    .hero-content-wrapper {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    /* Avatar extra petit */
    .hero-avatar-wrapper {
        width: 120px;
        height: 120px;
        margin-top: 0.5rem;
    }
    
    .hero-avatar {
        width: 100px;
        height: 100px;
        margin: 10px;
    }
    
    /* Masquer tous les anneaux décoratifs */
    .ring-1, .ring-2, .ring-3 {
        display: none;
    }
    
    .avatar-glow {
        inset: -10px;
        filter: blur(10px);
        opacity: 0.5;
    }
    
    /* Typographie compacte */
    .head-title {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .head-title .font-bold {
        font-size: 1.6rem !important;
        line-height: 1;
    }
    
    .head-title .gradient-text {
        font-size: 1.1rem !important;
        margin-top: 0.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem !important;
        margin-top: 0.5rem !important;
        padding: 0 0.5rem;
        line-height: 1.3;
    }
    
    .hero-actions {
        margin-top: 0.75rem !important;
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    
    /* Boutons compacts */
    .btn-primary-modern,
    .btn-secondary-modern {
        max-width: 200px;
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        border-radius: 25px;
    }
}

/* ============================================================================
   FIX SPÉCIFIQUE POUR IPHONE SE (320px de large)
   ============================================================================ */

@media (max-width: 320px) {
    .home-section {
        padding-top: 9rem; /* Maximum d'espace pour le header */
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    .hero-avatar-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .hero-avatar {
        width: 80px;
        height: 80px;
        margin: 10px;
    }
    
    .head-title .font-bold {
        font-size: 1.4rem !important;
    }
    
    .head-title .gradient-text {
        font-size: 1rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.75rem !important;
        padding: 0 0.25rem;
    }
    
    .hero-actions {
        padding: 0 0.25rem;
    }
    
    .btn-primary-modern,
    .btn-secondary-modern {
        max-width: 180px;
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
}

/*
 * ============================================================================
 * FIN DU FICHIER CSS PERSONNALISÉ
 * ============================================================================
 */