/* Variables et reset */
:root {
    --light-bg: #f8f9fa;
    --medium: #6c757d;
    --accent: #495057;
    --dark: #212529;
    --white: #ffffff;
    --black: #000000;
    --light-gray: #e9ecef;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    height: 80px;
}

.logo {
    text-decoration: none;
    color: var(--dark);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.logo:hover .logo-text::after {
    width: 100%;
}

.logo-subtext {
    font-size: 0.7rem;
    color: var(--medium);
    align-self: flex-end;
    margin-top: 2px;
    font-weight: 300;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 30px;
    position: relative;
}

.nav-list a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
}

.nav-list a:hover {
    color: var(--accent);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-list a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--dark);
    margin: 5px 0;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(166, 172, 175, 0.1) 0%, rgba(166, 172, 175, 0.05) 100%);
    z-index: -1;
}

.hero-content {
    flex: 1;
    padding: 40px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--medium);
    margin-bottom: 30px;
    max-width: 600px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.hero-media {
    flex: 1;
    position: relative;
    height: 100%;
    padding: 40px;
}

.animated-comic-strip {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    position: relative;
}

.comic-panel {
    flex: 1;
    border-right: 2px dashed var(--medium);
    background-size: cover;
    background-position: center;
    position: relative;
    transition: var(--transition);
}

.comic-panel:last-child {
    border-right: none;
}

.comic-panel:hover {
    flex: 1.5;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--medium);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 0 auto;
    border-radius: 3px;
}

/* Vision Section */
.vision {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, var(--light-bg), rgba(255,255,255,0));
    z-index: 0;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.vision-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.vision-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    transition: var(--transition);
}

.vision-card:hover .vision-icon {
    transform: scale(1.1);
}

.vision-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
}

.vision-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.vision-card p {
    color: var(--medium);
    font-weight: 400;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.project-showcase {
    display: grid;
    gap: 40px;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.03);
}

.project-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: var(--dark);
}

.project-info p {
    margin-bottom: 25px;
    color: var(--medium);
}

/* Partners Section */
.partners {
    padding: 80px 0;
    background-color: var(--white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 8px;
    transition: var(--transition);
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, var(--accent) 50%, transparent 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer a {
    color: var(--medium);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--white);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer ul li i {
    width: 20px;
    color: var(--accent);
}

.footer-about p {
    margin-bottom: 20px;
    color: var(--medium);
    line-height: 1.7;
}

.footer-logo {
    margin-top: 20px;
}

.footer-logo .logo-text {
    color: var(--white);
    font-size: 1.2rem;
}

.footer-logo .logo-subtext {
    color: var(--medium);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    color: var(--white);
}

.social-icons a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.newsletter {
    margin-top: 30px;
}

.newsletter p {
    color: var(--medium);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    border: 1px solid var(--medium);
    border-radius: 30px;
    overflow: hidden;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: transparent;
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: var(--medium);
}

.newsletter-form button {
    padding: 0 20px;
    border: none;
    background-color: var(--accent);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--medium);
}

.footer-copyright {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--medium);
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.legal-links a {
    font-size: 0.8rem;
}

/* Buttons */
.btn, .btn-outline {
    display: inline-flex;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

.btn {
    background-color: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-content {
        padding-bottom: 40px;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-media {
        width: 100%;
        padding: 0 20px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .project-card {
        grid-template-columns: 1fr;
    }
    
    .project-info {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s;
        padding: 40px 0;
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .nav-list li {
        margin: 20px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .vision-card, .partner-logo {
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn, .btn-outline {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .legal-links {
        flex-direction: column;
        gap: 10px;
    }
}


/* Comic Strip Styles */
.comic-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    position: relative;
}

.card-container {
    width: 280px;
    height: 420px;
    perspective: 1000px;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 15px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    transform: rotate(var(--rotation, 0deg));
}

.card-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.character {
    position: absolute;
    z-index: 2;
    transition: all 0.7s cubic-bezier(0.33, 1, 0.68, 1);
    opacity: 0;
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.8));
}

.character img {
    width: 100%;
    height: auto;
    display: block;
}

.card-info {
    position: absolute;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    color: white;
    padding: 25px 20px 20px;
    border-radius: 15px;
    z-index: 3;
    transition: all 0.6s ease;
    opacity: 0;
}

/* Style pour les cartes */
.igris .card-info,
.tintin .card-info {
    bottom: -150px;
    border-radius: 0 0 15px 15px;
}

.spiderman .card-info {
    top: -150px;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(rgba(0, 0, 0, 0.95), transparent);
}

.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s;
}

.card-info p {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.3s;
}

/* Positionnement des personnages */
.igris .character {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
}

.tintin .character {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 105%;
}

.spiderman .character {
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
}

/* Effets au survol */
.card:hover {
    transform: rotate(var(--rotation, 0deg)) rotateY(5deg) rotateX(5deg);
}

.igris:hover .character {
    opacity: 1;
    transform: translateX(-50%) translateY(-80px) scale(1.1);
}

.tintin:hover .character {
    opacity: 1;
    transform: translateX(-50%) translateY(-70px) scale(1.2);
}

.spiderman:hover .character {
    opacity: 1;
    transform: translateX(-50%) translateY(150px) scale(1.1);
}

/* Animation texte */
.igris:hover .card-info,
.tintin:hover .card-info {
    bottom: 0;
    opacity: 1;
}

.spiderman:hover .card-info {
    top: 0;
    opacity: 1;
}

.card:hover .card-info h3,
.card:hover .card-info p {
    transform: translateY(0);
    opacity: 0.9;
}

/* Animation initiale */
@keyframes comicCardAppear {
    from {
        opacity: 0;
        transform: rotate(var(--rotation, 0deg)) translateY(100px);
    }
    to {
        opacity: 1;
        transform: rotate(var(--rotation, 0deg)) translateY(0);
    }
}

.card {
    animation: comicCardAppear 0.8s ease-out forwards;
    opacity: 0;
}

.igris { 
    --rotation: -5deg;
    animation-delay: 0.1s; 
}
.tintin { 
    --rotation: 2deg;
    animation-delay: 0.3s; 
}
.spiderman { 
    --rotation: 7deg;
    animation-delay: 0.5s; 
}

/* Responsive */
@media (max-width: 992px) {
    .comic-strip {
        flex-direction: column;
        height: auto;
        padding: 40px 0;
    }
    
    .card-container {
        margin-bottom: 80px;
    }
}

/* Styles comics supplémentaires */
.comic-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 4px solid #000;
    border-radius: 15px;
    z-index: 4;
    pointer-events: none;
}

.comic-dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#000 15%, transparent 15%);
    background-size: 12px 12px;
    opacity: 0.1;
    z-index: 2;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.comic-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 48%, rgba(0,0,0,0.1) 49%, rgba(0,0,0,0.1) 51%, transparent 52%),
                linear-gradient(45deg, transparent 48%, rgba(0,0,0,0.1) 49%, rgba(0,0,0,0.1) 51%, transparent 52%);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 2;
    pointer-events: none;
}

.comic-pop {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Bangers', cursive, sans-serif;
    font-size: 1.8rem;
    color: #ff0000;
    text-shadow: 3px 3px 0 #000, 
                -1px -1px 0 #000,  
                1px -1px 0 #000,
                -1px 1px 0 #000,
                1px 1px 0 #000;
    transform: rotate(15deg);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.card:hover .comic-pop {
    opacity: 1;
    transform: rotate(15deg) scale(1.2);
}

.comic-link {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 10px;
    background-color: #ff0000;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.3s ease 0.2s;
    font-family: 'Bangers', cursive, sans-serif;
    letter-spacing: 1px;
    border: 2px solid #000;
}

.card:hover .comic-link {
    transform: translateX(0);
    opacity: 1;
}

/* Styles pour les liens */
.card-container {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Ajout de la police Bangers pour le style comics */
@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');

/* Animation supplémentaire au survol */
.card:hover {
    transform: rotate(var(--rotation, 0deg)) rotateY(5deg) rotateX(5deg) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Adaptation pour le responsive */
@media (max-width: 992px) {
    .comic-pop {
        font-size: 1.5rem;
    }
    
    .comic-link {
        font-size: 0.9rem;
    }
}