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

:root {
    --mauve-fonce: #6B46C1;
    --mauve-clair: #A78BFA;
    --rose: #EC4899;
    --jaune: #FFA500;
    --violet: #451288;
    --rose-clair: #F9A8D4;
    --jaune-clair: #FFC107;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    background: #ffffff url('tree.png') center center / cover no-repeat;
    position: relative;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 20px 0;
}

/* Animations de fond */
.background-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    animation: float 20s infinite ease-in-out, colorShift 8s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--mauve-clair), var(--violet));
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--rose), #ff015d);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--jaune), var(--jaune-clair));
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 20s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--rose-clair), var(--rose));
    top: 30%;
    right: 30%;
    animation-delay: 1s;
    animation-duration: 16s;
}

.shape-5 {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, var(--violet), var(--mauve-clair));
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
    animation-duration: 19s;
}

.shape-6 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--jaune-clair), var(--jaune));
    top: 50%;
    left: 5%;
    animation-delay: 5s;
    animation-duration: 17s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

@keyframes colorShift {
    0%, 100% {
        filter: hue-rotate(0deg) brightness(1);
    }
    25% {
        filter: hue-rotate(15deg) brightness(1.1);
    }
    50% {
        filter: hue-rotate(30deg) brightness(1);
    }
    75% {
        filter: hue-rotate(15deg) brightness(1.1);
    }
}

/* Contenu principal */
.content {
    z-index: 2;
    position: relative;
    padding: 30px;
    max-width: 1200px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
    min-height: 600px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grille Bento */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, minmax(180px, auto));
    gap: 30px;
}

.bento-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(69, 18, 136, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out backwards;
    will-change: transform, box-shadow;
}

.bento-card:hover,
.bento-card:active {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(69, 18, 136, 0.2);
}

.bento-card:active {
    transform: translateY(-3px) scale(0.98);
}

/* Carte Logo - 2x2 */
.bento-logo {
    grid-column: span 2;
    grid-row: span 2;
    text-align: center;
    animation-delay: 0.1s;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo-img {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    animation: logoFadeIn 0.8s ease-out 0.3s backwards, logoFloat 4s ease-in-out 1.5s infinite;
    will-change: transform;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff015d;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 1rem;
    color: #451288;
    font-weight: 300;
    letter-spacing: 1px;
    animation: slideInLeft 0.6s ease-out 0.5s backwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo-tagline {
    font-size: 1.2rem;
    color: #451288;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 15px;
    text-align: center;
    animation: slideInRight 0.6s ease-out 0.7s backwards;
    position: relative;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Carte Message - 2x1 */
.bento-message {
    grid-column: span 2;
    grid-row: span 1;
    animation-delay: 0.2s;
}

.main-message {
    font-size: 2rem;
    color: #451288;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
    animation: textReveal 0.8s ease-out 0.4s backwards;
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(15px);
        clip-path: inset(0 0 100% 0);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0 0 0 0);
    }
}

.sub-message {
    font-size: 1rem;
    color: #6B7280;
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--jaune);
    font-weight: 600;
    font-size: 0.9rem;
}

.status-text {
    animation: blink 1s ease-in-out infinite;
    color: var(--jaune);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.status-text:hover,
.status-text:active {
    opacity: 1;
    text-decoration: underline;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--jaune);
    animation: pulse 1s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1);
    }
}

/* Carte Réseaux Sociaux - 2x2 */
.bento-social {
    grid-column: span 2;
    grid-row: span 2;
    animation-delay: 0.3s;
}

.social-title {
    font-size: 1.5rem;
    color: #451288;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: rgba(69, 18, 136, 0.05);
    border: 1px solid rgba(69, 18, 136, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    animation: iconFadeIn 0.5s ease-out backwards;
    will-change: transform;
}

.social-icon:nth-child(1) {
    animation-delay: 0.6s;
}

.social-icon:nth-child(2) {
    animation-delay: 0.7s;
}

.social-icon:nth-child(3) {
    animation-delay: 0.8s;
}

.social-icon:nth-child(4) {
    animation-delay: 0.9s;
}

.social-icon:nth-child(5) {
    animation-delay: 1s;
}

@keyframes iconFadeIn {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.social-icon svg {
    width: 32px;
    height: 32px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:nth-child(1) {
    color: #25D366;
}

.social-icon:nth-child(2) {
    color: #E4405F;
}

.social-icon:nth-child(3) {
    color: #0077B5;
}

.social-icon:nth-child(4) {
    color: #000000;
}

.social-icon:nth-child(5) {
    color: #1877F2;
}

.social-icon:hover,
.social-icon:active {
    background: rgba(69, 18, 136, 0.1);
    transform: translateY(-3px) scale(1.05);
}

.social-icon:active {
    transform: translateY(-1px) scale(0.95);
}

.social-icon:hover svg,
.social-icon:active svg {
    transform: scale(1.1) rotate(5deg);
}

.social-icon:nth-child(1):hover {
    color: #25D366;
}

.social-icon:nth-child(2):hover {
    color: #E4405F;
}

.social-icon:nth-child(3):hover {
    color: #0077B5;
}

.social-icon:nth-child(4):hover {
    color: #000000;
}

.social-icon:nth-child(5):hover {
    color: #1877F2;
}

/* Carte Contact - 2x1 */
.bento-contact {
    grid-column: span 2;
    grid-row: span 1;
    animation-delay: 0.4s;
}

.contact-title {
    font-size: 1.5rem;
    color: #451288;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
}

.contact-text {
    font-size: 0.95rem;
    color: #6B7280;
    margin-bottom: 20px;
    font-weight: 400;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #451288;
    font-weight: 500;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 8px;
    animation: fadeInUp 0.5s ease-out backwards;
}

.contact-item:nth-child(1) {
    animation-delay: 0.5s;
}

.contact-item:nth-child(2) {
    animation-delay: 0.6s;
}

.contact-item:hover,
.contact-item:active {
    background: rgba(231, 32, 96, 0.08);
    transform: translateX(5px);
    padding-left: 12px;
}

.contact-phones {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-icon-email,
.contact-icon-phone {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon-email,
.contact-item:hover .contact-icon-phone,
.contact-item:active .contact-icon-email,
.contact-item:active .contact-icon-phone {
    transform: scale(1.2) rotate(10deg);
}

.contact-link {
    color: #451288;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover,
.contact-link:active {
    color: #e72060;
    text-decoration: underline;
}


/* Optimisation pour les appareils avec préférence de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .bento-logo {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .bento-message {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .bento-social {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .bento-contact {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .social-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .social-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px 0;
        align-items: flex-start;
    }
    
    .content {
        padding: 18px;
        min-height: auto;
    }
    
    .bento-grid {
        gap: 25px;
    }
    
    .bento-card {
        padding: 25px;
    }
    
    .logo-img {
        width: 160px;
        margin-bottom: 18px;
    }
    
    .logo-subtitle {
        font-size: 1rem;
    }
    
    .logo-tagline {
        font-size: 1.2rem;
        margin-top: 15px;
    }
    
    .main-message {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .sub-message {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .status-indicator {
        font-size: 0.95rem;
    }
    
    .social-title {
        font-size: 1.4rem;
        margin-bottom: 28px;
    }
    
    .social-icon {
        width: 55px;
        height: 55px;
    }
    
    .social-icon svg {
        width: 26px;
        height: 26px;
    }
    
    .contact-title {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .contact-info {
        font-size: 1rem;
        gap: 8px;
    }
    
    .shape {
        width: 150px !important;
        height: 150px !important;
    }
    
    /* Animations plus légères sur mobile */
    .logo-img {
        animation: logoFadeIn 0.6s ease-out 0.2s backwards;
    }
    
    @keyframes logoFloat {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-4px);
        }
    }
    
    .bento-card:hover,
    .bento-card:active {
        transform: translateY(-3px) scale(1.005);
    }
    
    .social-icon:hover,
    .social-icon:active {
        transform: translateY(-2px) scale(1.03);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px 0;
        align-items: flex-start;
    }
    
    .content {
        padding: 18px;
        min-height: auto;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    
    .bento-card {
        padding: 22px;
    }
    
    .bento-logo,
    .bento-message,
    .bento-social,
    .bento-contact {
        grid-column: span 1;
    }
    
    .logo-img {
        width: 110px;
        margin-bottom: 15px;
    }
    
    .logo-subtitle {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .logo-tagline {
        font-size: 1.1rem;
        margin-top: 12px;
        line-height: 1.3;
    }
    
    .main-message {
        font-size: 1.35rem;
        margin-bottom: 12px;
    }
    
    .sub-message {
        font-size: 0.95rem;
        margin-bottom: 18px;
        line-height: 1.4;
    }
    
    .status-indicator {
        font-size: 0.9rem;
        gap: 8px;
    }
    
    .status-dot {
        width: 8px;
        height: 8px;
    }
    
    .social-title {
        font-size: 1.3rem;
        margin-bottom: 22px;
    }
    
    .social-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
    }
    
    .social-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .contact-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .contact-info {
        gap: 8px;
        font-size: 0.95rem;
    }
    
    .contact-item {
        padding: 5px;
    }
    
    .contact-icon-email,
    .contact-icon-phone {
        width: 19px;
        height: 19px;
        margin-right: 8px;
    }
    
    .contact-phones {
        gap: 12px;
    }
}



