:root {
    --forest:   #515C4D;
    --bordeaux: #641735;
    --ciel:     #A1D7DE;
    --sable:    #EDD26C;
    --lin:      #E2DFD2;
    --text-dark:  #1a1a18;
    --text-light: #f5f4f0;
    --text-muted: #7a7166;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans:  'Jost', sans-serif;
    --ease: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--lin);
    color: var(--text-dark);
    font-family: var(--sans);
    font-weight: 300;
}

/* ── GRAIN OVERLAY ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.025;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    transition: background var(--ease), padding var(--ease);
}
nav.scrolled {
    background: rgba(81, 92, 77, 0.97);
    backdrop-filter: blur(14px);
    padding: 1rem 5%;
}
.nav-logo { text-decoration: none; display: flex; align-items: center; }

.nav-logo-img {
    height: auto; /* Garde les proportions naturelles */
    max-width: 100px; /* Ajuste cette valeur selon la largeur souhaitée */
    width: 100%; /* Prend toute la largeur disponible */
    display: block;
    border-radius: 3px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}
.nav-links a {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--sable); }

/* NAV BURGER */
/* Bouton burger */
.burger-menu {
    display: none; /* Masqué sur desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

/* Barres du burger (en blanc pour contraster sur fond sombre) */
.burger-bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background: white; /* Couleur visible ! */
    transition: all 0.3s ease;
}

.burger-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(81, 92, 77, 0.97);
    backdrop-filter: blur(14px);
    z-index: 99; /* En dessous de la nav (z-index: 100) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.burger-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Afficher le bouton burger sur mobile */
@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    /* Masquer les liens par défaut sur mobile */
    .nav-links {
        display: none;
        position: fixed;
        top: 95px; /* En dessous de la nav */
        left: 0;
        width: 100%;
        background: rgba(81, 92, 77);
        backdrop-filter: blur(14px);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }



    /* Afficher les liens quand le menu est actif */
    .nav-links.active {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 100;
        background: transparent; /* Le fond est géré par .burger-overlay */
    }

    .burger-menu.active + .nav-links.active ~ #nav,
    #nav.menu-locked {
        background: transparent !important;
        backdrop-filter: none !important;
        padding: 1.5rem 5% !important; /* Garde le padding initial */
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Animation des barres en croix */
.burger-menu.active .burger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-menu.active .burger-bar:nth-child(2) {
    opacity: 0;
}
.burger-menu.active .burger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ── HERO ── */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--forest);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Diagonal split overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bordeaux);
    clip-path: polygon(58% 0, 100% 0, 100% 100%, 38% 100%);
    opacity: 0.3;
    pointer-events: none;
}

/* Ciel blob — entièrement dans le container */
.hero-blob {
    position: absolute;
    top: 8%;
    right: 6%;
    width: 38%;
    height: 55%;
    background: radial-gradient(ellipse at center, rgba(165,216,220,0.2) 0%, transparent 68%);
    border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
    animation: morphBlob 14s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes morphBlob {
    from { border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%; transform: scale(1); }
    to   { border-radius: 40% 60% 45% 55% / 55% 40% 60% 45%; transform: scale(1.06); }
}

/* Ligne verticale dorée */
.hero-line {
    position: absolute;
    top: 0;
    left: 5%;
    width: 1px;
    height: 0;
    background: var(--sable);
    opacity: 0.5;
    animation: drawLine 1.8s 0.3s ease forwards;
}
@keyframes drawLine { to { height: 42%; } }

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 8rem 5% 6rem;
}

.hero-content {
    max-width: 620px;
    opacity: 1;
    transform: none;
    animation: fadeUp 0.9s var(--ease) both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-eyebrow {
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--sable);
    margin-bottom: 1.8rem;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(3.2rem, 7vw, 6.5rem);
    font-weight: 300;
    line-height: 1.0;
    color: var(--text-light);
    margin-bottom: 2rem;
}
.hero-title em {
    font-style: italic;
    color: var(--ciel);
}

.hero-desc {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(255,255,255,0.55);
    max-width: 420px;
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

/* ── BUTTONS ── */
.btn-primary {
    display: inline-block;
    padding: 0.95rem 2.4rem;
    background: var(--sable);
    color: var(--forest);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background var(--ease), transform var(--ease);
    white-space: nowrap;
}
.btn-primary:hover { background: #e8d278; transform: translateY(-2px); }

.btn-ghost {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 2px;
    transition: color 0.3s, border-color 0.3s;
    white-space: nowrap;
}
.btn-ghost:hover { color: white; border-color: white; }

/* ── STATS BAR ── */
.stats-bar {
    width: 100%;
    background: var(--bordeaux);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    color: var(--text-light); /* Texte blanc pour contraster avec le fond bordeaux */
    padding: 15px 0;
    text-align: center;
}
.stat-item {
    padding: 0 10px;
    border-right: 1px solid rgba(255,255,255,0.08);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s, transform 0.6s;
}
.stat-item:last-child { border-right: none; }
.stat-item.visible { opacity: 1; transform: none; }
.stat-num {
    font-family: var(--serif);
    font-size: 2.6rem;
    font-weight: 300;
    color: var(--sable);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

/* ── SHARED SECTION ── */
.section-wrap {
    width: 100%;
    padding: 7rem 5%;
}
.section-tag {
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--bordeaux);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.section-tag::before {
    content: '';
    display: block;
    width: 2rem;
    height: 1px;
    background: var(--sable);
    flex-shrink: 0;
}
h2.section-title {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--forest);
    margin-bottom: 1.5rem;
}
h2.section-title em {
    font-style: italic;
    color: var(--bordeaux);
}

/* ── SAVOIR-FAIRE ── */
.savoir-faire { background: var(--lin); }
.sf-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.sf-text p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.sf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: rgba(26,26,24,0.15);
}
.sf-card {
    background: var(--lin);
    padding: 1.8rem 1.6rem;
    position: relative;
    overflow: hidden;
    transition: background var(--ease);
}
.sf-card:hover { background: white; }
.sf-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--sable);
    transition: width var(--ease);
}
.sf-card:hover::after { width: 100%; }
.sf-icon { font-size: 1.4rem; margin-bottom: 0.8rem; display: block; }
.sf-card h3 {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--forest);
    margin-bottom: 0.4rem;
}
.sf-card p {
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ── PROCESS ── */
.process { background: var(--forest); }
.process .section-tag { color: var(--ciel); }
.process h2.section-title { color: var(--text-light); }
.process h2.section-title em { color: var(--sable); }

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 4.5rem;
    position: relative;
}
.process-steps::before {
    content: '';
    position: absolute;
    top: 1.55rem;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, var(--sable), var(--ciel), var(--sable));
    opacity: 0.25;
}
.step {
    padding: 0 1.5rem;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s, transform 0.6s;
}
.step.visible { opacity: 1; transform: none; }
.step-num {
    width: 3.1rem;
    height: 3.1rem;
    border: 1px solid rgba(223,201,106,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--sable);
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
    background: var(--forest);
}
.step h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 0.7rem;
}
.step p {
    font-size: 0.8rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.45);
}

/* ── REALISATIONS ── */
/* ── REALISATIONS ── */
.realisations {
    background: white;
    padding: 7rem 5%; /* Même padding que les autres sections */
}

/* Introduction de la section */
.real-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.real-intro p {
    max-width: 360px;
    font-size: 0.9rem;
    line-height: 1.85;
    color: var(--text-muted);
}

/* Grille principale */
.real-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 colonnes en desktop */
    gap: 4px; /* Espacement subtil pour un effet "mosaïque" */
}

/* Éléments de la grille */
.real-item {
    position: relative;
    aspect-ratio: 1 / 1; /* Carrés parfaits */
    overflow: hidden;
    cursor: pointer;
    background: white; /* Fond blanc pour chaque élément */
    transition: transform var(--ease), box-shadow var(--ease);
}

.real-item:hover {
    transform: translateY(-4px); /* Légère élévation au survol */
    box-shadow: 0 8px 24px rgba(81, 92, 77, 0.12); /* Ombre douce dans la palette */
    z-index: 1; /* Pour que l'ombre ne soit pas cachée par les éléments voisins */
}

/* Images */
.real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.real-item:hover .real-img {
    transform: scale(1.08); /* Zoom légèrement plus prononcé */
}

/* Légendes */
.real-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.4rem;
    background: linear-gradient(
            transparent,
            rgba(81, 92, 77, 0.92) /* Fond vert foncé pour la légende */
    );
    transform: translateY(100%);
    transition: transform var(--ease);
    color: white;
}

.real-item:hover .real-caption {
    transform: translateY(0);
}

.real-caption span {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sable); /* Couleur dorée pour le tag */
    display: block;
    margin-bottom: 0.3rem;
}

.real-caption p {
    font-family: var(--serif);
    font-size: 1rem;
    font-style: italic; /* Italique pour matcher le style de la landing */
    color: var(--text-light);
    margin: 0;
}





/* ── TEMOIGNAGES ── */
.temoignages { background: var(--lin); }
.temo-grid {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2px;
    padding: 0;
    width: 100%;
    align-items: stretch;
    overflow: visible; /* Pas de overflow hidden */
}
.temo-card {
    background: var(--lin);
    padding: 2.8rem 2.4rem;
    transition: background var(--ease);
    flex: 0 0 calc(100% / 3 - 10px);
    margin: 0 5px;
    min-height: 350px; /* Ajuste cette valeur selon ton contenu */
    display: flex;
    flex-direction: column;
    flex-direction: column;
}
.temo-card:hover { background: white; }
.temo-quote {
    font-family: var(--serif);
    font-size: 4.5rem;
    line-height: 0.7;
    color: var(--sable);
    margin-bottom: 1.4rem;
    display: block;
}
.stars { display: flex; gap: 3px; margin-bottom: 1.1rem; }
.star {
    width: 0.65rem;
    height: 0.65rem;
    background: var(--sable);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.temo-text {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.75;
    color: var(--forest) !important; /* Force la couleur */
    margin-bottom: 1.8rem;
}
.temo-author { display: flex; align-items: center; gap: 1rem; }
.temo-avatar {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--bordeaux);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--sable);
    flex-shrink: 0;
}
.temo-name {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--forest);
}
.temo-location { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ── CONTACT ── */
.contact { background: var(--bordeaux); }
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}
.contact .section-tag { color: var(--ciel); }
.contact h2.section-title { color: white; }
.contact h2.section-title em { color: var(--sable); }
.contact-desc {
    font-size: 0.9rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2.5rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-info-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.ci-icon {
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.ci-text { font-size: 0.86rem; line-height: 1.6; color: rgba(255,255,255,0.65); }
.ci-text strong {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sable);
    margin-bottom: 0.2rem;
    font-weight: 400;
}
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    padding: 0.85rem 0.95rem;
    color: white;
    font-family: var(--sans);
    font-size: 0.86rem;
    font-weight: 300;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.3s, background 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--sable);
    background: rgba(255,255,255,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.22); }
.form-group select option { background: var(--bordeaux); }
.form-group textarea { resize: vertical; min-height: 110px; }
.btn-submit {
    align-self: flex-start;
    padding: 0.95rem 2.4rem;
    background: var(--sable);
    color: var(--forest);
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background var(--ease), transform var(--ease);
}
.btn-submit:hover { background: #e8d278; transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
    width: 100%;
    flex-direction: column;
    margin-top: 2rem;
    background: var(--forest);
    padding: 3rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    max-width: 120px;
    height: auto;
    display: block;
    border-radius: 3px;
}

.footer-copy {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.06em;
}

.footer-links {
    display: flex;
    gap: 1.8rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.28);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}
.footer-links a:hover { color: var(--sable); }

/* ── REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }



/* Zone d'intervention - Liste en 3 colonnes */
.zone-columns {
    margin: 1.5rem auto;
    max-width: 900px;
}

.zone-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
    gap: 0.5rem 1rem;
    text-align: center;
}

.zone-list li {
    background: #f5f5f5;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 1rem;
}

/* Responsive : 1 colonne sur mobile */
@media (max-width: 768px) {
    .zone-list {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
        gap: 0.5rem;
    }
}







/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .stat-item:nth-child(2) { border-right: none; }
    .sf-inner { grid-template-columns: 1fr; gap: 3rem; }
    .process-steps { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .process-steps::before { display: none; }
    .step { padding: 0; }
    .temo-grid { grid-template-columns: 1fr; }
    .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
    .form-row { grid-template-columns: 1fr; }
    footer { justify-content: center; text-align: center; }
}

@media (max-width: 600px) {
    .hero-inner { padding: 6rem 5% 4rem; }
    .footer-links {
        gap: 1rem;
    }
    .footer-logo-img {
        max-width: 100px;
    }
}

















/** IMG Version mobile **/

@media (max-width: 960px) {
    .real-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes en tablette */
    }
}

@media (max-width: 600px) {
    .real-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes en mobile */
    }
}

@media (max-width: 480px) {
    .real-grid {
        grid-template-columns: 1fr; /* 1 colonne sur très petits écrans */
    }
}



/*!* Desktop : 5 éléments par ligne *!*/
/*@media (min-width: 1201px) {*/
/*    !* Affiche uniquement les 5, 10, 15, 20... premiers éléments *!*/
/*    .real-item:nth-child(n+6), !* Cache à partir du 6ème *!*/
/*    .real-item:nth-child(n+11), !* Cache à partir du 11ème *!*/
/*    .real-item:nth-child(n+16)  !* etc. (adapte selon ton nombre total d'éléments) *!*/
/*    {*/
/*        display: none;*/
/*    }*/
/*}*/

/*!* Tablette : 3 éléments par ligne *!*/
/*@media (max-width: 1200px) and (min-width: 961px) {*/
/*    .real-grid {*/
/*        grid-template-columns: repeat(3, 1fr);*/
/*    }*/
/*    !* Affiche uniquement les 3, 6, 9, 12... premiers éléments *!*/
/*    .real-item:nth-child(n+4), !* Cache à partir du 4ème *!*/
/*    .real-item:nth-child(n+7), !* Cache à partir du 7ème *!*/
/*    .real-item:nth-child(n+10) !* etc. *!*/
/*    {*/
/*        display: none;*/
/*    }*/
/*}*/

/*!* Mobile : 2 éléments par ligne *!*/
/*@media (max-width: 960px) and (min-width: 601px) {*/
/*    .real-grid {*/
/*        grid-template-columns: repeat(2, 1fr);*/
/*    }*/
/*    !* Affiche uniquement les 2, 4, 6, 8... premiers éléments *!*/
/*    .real-item:nth-child(n+3), !* Cache à partir du 3ème *!*/
/*    .real-item:nth-child(n+5), !* Cache à partir du 5ème *!*/
/*    .real-item:nth-child(n+7)  !* etc. *!*/
/*    {*/
/*        display: none;*/
/*    }*/
/*}*/

/*!* Très petit écran : 1 élément par ligne *!*/
/*@media (max-width: 600px) {*/
/*    .real-grid {*/
/*        grid-template-columns: 1fr;*/
/*    }*/
/*    !* Affiche uniquement les 1, 2, 3... premiers éléments *!*/
/*    .real-item:nth-child(n+2), !* Cache à partir du 2ème *!*/
/*    .real-item:nth-child(n+3)  !* etc. *!*/
/*    {*/
/*        display: none;*/
/*    }*/
/*}*/

/* Desktop : 5 éléments par ligne */
@media (min-width: 1201px) {
    /* Affiche uniquement les 5, 10, 15, 20... premiers éléments */
    .real-item:nth-child(n+6), /* Cache à partir du 6ème */
    .real-item:nth-child(n+11), /* Cache à partir du 11ème */
    .real-item:nth-child(n+16)  /* etc. (adapte selon ton nombre total d'éléments) */
    {
        display: none;
    }
}

/* Tablette : 3 éléments par ligne */
@media (max-width: 1200px) and (min-width: 961px) {
    .real-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Affiche uniquement les 3, 6, 9, 12... premiers éléments */
    .real-item:nth-child(n+4), /* Cache à partir du 4ème */
    .real-item:nth-child(n+7), /* Cache à partir du 7ème */
    .real-item:nth-child(n+10) /* etc. */
    {
        display: none;
    }
}

/* Mobile : 2 éléments par ligne */
@media (max-width: 960px) and (min-width: 601px) {
    .real-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Affiche uniquement les 2, 4, 6, 8... premiers éléments */
    .real-item:nth-child(n+3), /* Cache à partir du 3ème */
    .real-item:nth-child(n+5), /* Cache à partir du 5ème */
    .real-item:nth-child(n+7)  /* etc. */
    {
        display: none;
    }
}

/* Très petit écran : 1 élément par ligne */
@media (max-width: 600px) {
    .real-grid {
        grid-template-columns: 1fr;
    }
    /* Affiche uniquement les 1, 2, 3... premiers éléments */
    .real-item:nth-child(n+2), /* Cache à partir du 2ème */
    .real-item:nth-child(n+3)  /* etc. */
    {
        display: none;
    }
}