/* Variables globales */
:root {
    --primary-color: #BE1E2D;
    --text-color: #000000;
    --max-width: 1200px;
    --container-padding: 2rem;
    --card-padding: 2rem;
    --border-radius: 8px;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --bg-light: #f8f9fa;
    --hover-shadow: 0 4px 8px rgba(0,0,0,0.1);
    --section-padding: 1.6rem;
    --background: var(--bg-light);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: white;
    font-weight: 400;
}

/* Layout */
.header-container,
.main-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Sections communes */
.hero,
.cards-section,
.projects-section,
.contact-section {
    padding: 1.6rem 0;
}

.cards-section,
.projects-section,
.contact-section {
    background: var(--bg-light);
}

/* Typographie */
h1, h2, h3, h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
}

h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Highlight */
.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* Header */
.site-header {
    background-color: white;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header img {
    height: 45px;
    object-fit: contain;
}

/* Lien événement */
.event-link {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.event-link:hover {
    background: #9a1825;
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

/* Navigation */
.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

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

/* Hero section */
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hero-content > div:first-child {
    max-width: 66.66%;
}

.hero-content h1 .highlight {
    font-size: 3.2rem;
    display: block;
    margin-bottom: 0.8rem;
}

.hero-content p {
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    box-shadow: var(--shadow);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Main cards */
.main-cards {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding-bottom: 0;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.statement-list,
.statement {
    font-size: 1.1em;
    line-height: 1.4;
    text-align: left;
}

/* Méthode */
.method-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.method-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.method-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.method-item h4 {
    margin: 0;
    font-size: 1.1em;
}

.method-item p {
    margin: 0;
    font-size: 0.9em;
}

/* Projects */
.projects-section {
    padding: 0 var(--section-padding);
    background: var(--background);
}

.projects-layout {
    display: flex;
    gap: 2rem;
}

.project-card--60 {
    width: 60%;
}

.project-card--40 {
    width: 40%;
}

.project-list {
    list-style: none;
}

.project-list li {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.project-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.project-list h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-list p {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* Partnership */
.partnership {

@media (max-width: 768px) {
  .main-cards,
  .projects-layout {
    display: block !important;
    width: 100% !important;
  }
}

    font-style: italic;
    color: #666;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.partnership a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 10px;
}

.partnership a:hover {
    text-decoration: underline;
}

.partner-logo {
    /* Aucune contrainte de taille - affichage à taille originale */
    display: inline-block;
    max-width: 120px;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }
  .site-header {
    padding: 0.5rem 0;
  }
  .site-header img {
    height: 36px;
    margin-bottom: 0.3rem;
  }
  .event-link {
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
    margin-left: 0;
    margin-bottom: 0.2rem;
  }
  .social-links {
    margin-bottom: 0.2rem;
  }
  .comment-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
    border-right: none;
  }

    height: auto;
    border-left: 1px solid #eee;
    padding-left: 15px;
}

/* Images */
.screenshots-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.screenshot {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.cta-button:hover {
    background: #9a1825;
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

/* Contact */
.contact {
    text-align: center;
}

.contact h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Comment grid */
.comment-grid {
    display: grid;
    grid-template-columns: 5fr 1fr;
    gap: 2rem;
    border-right: 1px solid #eee;
}

.comment-grid p {
    margin: 0;
}

.comment-grid h3 {
    margin: 0;
}

.comment-grid > div:last-child {
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 2rem var(--container-padding);
}

.modal-card {
    position: relative;
    max-width: 600px;
    margin: 5vh auto;
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-cards {
        grid-template-columns: 1fr;
    }
    
    .project-card--60,
    .project-card--40 {
        width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1.5rem;
        --card-padding: 1.5rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .hero-content {
        flex-direction: column;
    }

    .hero-content > div:first-child {
        max-width: 100%;
    }

    .main-cards,
    .method-pair {
        grid-template-columns: 1fr;
    }

    .projects-layout {
        flex-direction: column;
    }
}

/* Footer */
.site-footer {
    background-color: var(--bg-light);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright {
    font-size: 0.9rem;
    color: #6c757d;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}
