/* =========================================================
   RESET & BASE
========================================================= */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* =========================================================
   HEADER FRONT
========================================================= */
.header-tech {
    background: linear-gradient(90deg, #0a0a0a, #003366);
    border-bottom: 3px solid #f57c00;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.header-inner {
    width: 92%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo img {
    height: 100px;
}

.nav-tech {
    display: flex;
    gap: 22px;
}

.nav-tech a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.nav-tech a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #f57c00;
    transition: 0.3s;
}

.nav-tech a:hover::after {
    width: 100%;
}

.login-icon {
    margin-left: 25px;
}

.login-icon a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-icon a i {
    font-size: 18px;
    color: #f57c00;
}

.login-icon a:hover {
    background: #f57c00;
    color: #000;
}

.login-icon a:hover i {
    color: #000;
}

/* =========================================================
   SEARCH BAR (HEADER)
========================================================= */

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    border-radius: 30px;
    padding: 4px 10px;
    margin-left: 20px;
}

.search-form input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 8px 10px;
    width: 160px;
    font-size: 14px;
}

.search-form input::placeholder {
    color: #ccc;
}

.search-form button {
    background: none;
    border: none;
    color: #f57c00;
    cursor: pointer;
    font-size: 16px;
}

/* Mobile */
@media (max-width: 991px) {
    .search-form {
        width: 100%;
        margin: 10px 0;
    }

    .search-form input {
        width: 100%;
    }
}
/* =========================================================
   FOOTER FRONT
========================================================= */
.footer-tech {
    background: #0a0a0a;
    color: #ffffff;
}

.footer-top {
    width: 92%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.footer-logo {
    height: 100px;
    margin-bottom: 15px;
}

.footer-col h4 {
    color: #f57c00;
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: #2e7d32;
}

.social-tech a {
    color: #ffffff;
    font-size: 20px;
    margin-right: 14px;
}

.social-tech a:hover {
    color: #f57c00;
}

.footer-bottom-tech {
    text-align: center;
    padding: 15px;
    background: #000;
    font-size: 14px;
}

.footer-bottom-tech a {
    color: #f57c00;
    text-decoration: none;
}
.social-tech {
    display: flex;
    gap: 14px;
    margin-top: 10px;
}

.social-tech a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-tech a:hover {
    background: #f57c00;
    color: #f57c00;
}
/* Desktop : réseaux sociaux compacts */
.social-tech.social-text {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.social-tech.social-text a {
    min-width: 140px;
}

.social-tech.social-text a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.social-tech.social-text a span {
    color: #ffffff;
}

.social-tech.social-text a:hover {
    background: #2e7d32;
}

/* ===================================
   RESPONSIVE - MOBILE HEADER
==================================== */

.menu-toggle {
    display: none;
    font-size: 26px;
    color: #ffffff;
    cursor: pointer;
}

/* Tablette & mobile */
@media (max-width: 991px) {

    .header-inner {
        flex-wrap: nowrap;
        align-items: center;
    }

    /* MENU MOBILE */
    .nav-tech {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        background: #0a0a0a;
        padding: 10px 0;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
        animation: slideDown 0.3s ease;
    }

    .nav-tech.show {
        display: flex;
    }

    .nav-tech a {
        padding: 14px 25px;
        width: 100%;
        color: #fff;
        font-size: 15px;
    }

    .nav-tech a:hover {
        background: rgba(255,255,255,0.05);
    }

    .menu-toggle {
        display: block;
        margin-left: 15px;
    }

    .login-icon {
        margin-left: auto;
    }

    .logo img {
        height: 80px;
    }
}

/* Animation douce */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Mobile */
@media (max-width: 576px) {

    .header-inner {
        padding: 10px 0;
    }

    .login-icon a {
        font-size: 13px;
        padding: 6px 10px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: auto;
    }

    .social-tech,
    .social-tech.social-text {
        justify-content: center;
        align-items: center;
    }

    .social-tech.social-text a {
        justify-content: center;
    }
}

/* =========================================================
   LOGIN ADMIN
========================================================= */
body.login-page {
    background: linear-gradient(135deg, #0a0a0a, #003366);
    min-height: 100vh;
}

/* Box login */
.login-box {
    max-width: 420px;
    width: 90%;
    margin: 100px auto;
    padding: 35px 30px;
    background: #0f172a;
    border-radius: 14px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    color: #ffffff;
}

/* Titre */
.login-box h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #f57c00;
    font-size: 24px;
}

/* Champs */
.login-box input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 15px;
}

.login-box input::placeholder {
    color: #cccccc;
}

.login-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

/* Password + oeil */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 30%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #f57c00;
    user-select: none;
}

/* Bouton */
.login-box button {
    width: 100%;
    padding: 14px;
    background: #f57c00;
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-box button:hover {
    background: #ff9800;
}

/* Erreur */
.login-box .error {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

/* Lien */
.login-box a {
    color: #f57c00;
    text-decoration: none;
    font-size: 14px;
}

.login-box a:hover {
    text-decoration: underline;
}

/* Responsive mobile */
@media (max-width: 480px) {

    .login-box {
        margin: 60px auto;
        padding: 25px 20px;
    }

    .login-box h2 {
        font-size: 20px;
    }
}

/* =========================
   DASHBOARD ADMIN
========================= */

        body {
            font-family: Arial, sans-serif;
            background: #f4f4f4;
            margin: 0;
            padding: 0;
        }
        .header {
    background: #003366;
    color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-name {
    font-size: 16px;
    font-weight: normal;
}

.logout-btn {
    background: #cc0000;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.logout-btn:hover {
    background: #ff0000;
}

        .container {
            width: 90%;
            margin: 30px auto;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }
        .card {
            background: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            text-align: center;
        }
        .card h3 {
            margin-bottom: 15px;
        }
        .card a {
            display: inline-block;
            padding: 10px 20px;
            background: #003366;
            color: #fff;
            text-decoration: none;
            border-radius: 5px;
        }
        .card a:hover {
            background: #0055aa;
        }

/* =========================
  SLIDE CRUD ADMIN
========================= */
    .admin-form {
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-form input,
.admin-form textarea,
.admin-form button {
    padding: 12px;
    font-size: 15px;
}

.admin-form button {
    background: #f57c00;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.btn-danger {
    display: inline-block;
    margin-top: 10px;
    color: #fff;
    background: #e53935;
    padding: 6px 10px;
    text-decoration: none;
}

/* =========================================================
   ADMIN GLOBAL
========================================================= */

.admin-wrapper {
    width: 95%;
    max-width: 1400px;
    margin: 40px auto;
}

/* Bouton retour */
.btn-back {
    display: inline-block;
    margin-bottom: 25px;
    text-decoration: none;
    font-weight: 600;
    color: #003366;
}

/* Carte */
.admin-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    margin-bottom: 35px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.admin-card h2 {
    margin-bottom: 20px;
    color: #003366;
}

/* =========================================================
   FORM ADMIN
========================================================= */

.admin-form {
    display: grid;
    gap: 15px;
    max-width: 800px;
}

.admin-form label {
    font-weight: 600;
    color: #333;
}

.admin-form input,
.admin-form textarea {
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
}

.admin-form textarea {
    resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: #f57c00;
}

.admin-form button {
    align-self: flex-start;
    padding: 12px 26px;
    background: #f57c00;
    color: #000;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.admin-form button:hover {
    background: #ff9800;
}

/* Preview image */
.preview-image {
    margin-top: 10px;
    max-width: 260px;
    border-radius: 12px;
}

/* =========================================================
   TABLE ADMIN
========================================================= */

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #003366;
    color: #ffffff;
    padding: 16px;
    text-align: left;
}

.admin-table td {
    padding: 18px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

/* Image tableau */
.slide-thumb {
    width: 250px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

/* Actions */
.admin-actions {
    display: flex;
    gap: 12px;
}

.btn-edit,
.btn-delete {
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
}

.btn-edit {
    background: #003366;
}

.btn-edit:hover {
    background: #0055aa;
}

.btn-delete {
    background: #e53935;
}

.btn-delete:hover {
    background: #c62828;
}

/* =========================================================
   RESPONSIVE ADMIN
========================================================= */

@media (max-width: 768px) {

    .admin-table thead {
        display: none;
    }

    .admin-table tr {
        display: block;
        margin-bottom: 20px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    .admin-table td {
        display: block;
        padding: 12px;
    }

    .slide-thumb {
        width: 100%;
        max-height: none;
    }

    .admin-actions {
        margin-top: 10px;
    }
}
/* Images supplémentaires */
.extra-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.extra-images img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
/* Image supplémentaire – suppression */
.extra-image-item {
    position: relative;
}

.btn-img-delete {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: #e53935;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.btn-img-delete:hover {
    background: #c62828;
}
.img-item { width: 50px; margin: 2px; }
        .extra-image-item { display:inline-block; position:relative; margin:3px; }
        .btn-img-delete { position:absolute; top:0; right:0; background:red; color:white; text-decoration:none; padding:2px 5px; border-radius:50%; font-weight:bold; }
                .video-item { width: 120px; margin: 2px; }
        .extra-video-item { display:inline-block; position:relative; margin:3px; }
        .btn-video-delete { position:absolute; top:0; right:0; background:red; color:white; text-decoration:none; padding:2px 5px; border-radius:50%; font-weight:bold; }
        .btn-back { display:inline-block; margin-bottom:15px; text-decoration:none; background:#c62828; color:#fff; padding:6px 12px; border-radius:4px; }
        .admin-wrapper { max-width:900px; margin:20px auto; }
        .admin-card { background:#fff; padding:20px; margin-bottom:20px; border-radius:6px; box-shadow:0 0 10px rgba(0,0,0,0.1); }
        .admin-form input, .admin-form textarea { width:100%; padding:8px; margin-bottom:10px; }
        .admin-form button { padding:8px 16px; cursor:pointer; }
        .video-row { margin-bottom:6px; }
        .admin-table { width:100%; border-collapse:collapse; }
        .admin-table th, .admin-table td { border:1px solid #ccc; padding:8px; text-align:left; }
        .admin-actions a { margin-right:5px; }

/* ===== FUTURISTIC UI ===== */

/* ================= HERO SLIDER ================= */
.hero-slider {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease, transform 6s linear;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 80px;
    color: #fff;
}

/* ================= BOUTON ================= */
.btn-neon {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    border-radius: 40px;
    background: #003366;
    color: #fff;
    box-shadow: 0 0 15px rgba(0,153,255,.7);
}

/* ================= GLASS ================= */
.about-glass, .domain-glass, .video-glass {
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0,153,255,.2);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 90%;
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 50vh;
    }

    .hero-content {
        padding: 40px 20px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 40vh;
    }

    .hero-content {
        padding: 20px 15px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .btn-neon {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* =====================================================
   SECTION A PROPOS – ALIGNEMENT PARFAIT
===================================================== */

.about-header {
    text-align: center;
    margin-bottom: 80px;
}

.about-header h1 {
    font-size: 35px;
    font-weight: 800;
    background: linear-gradient(135deg, #000, #2e7d32);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.about-line {
    display: inline-block;
    width: 90px;
    height: 4px;
    margin-top: 18px;
    border-radius: 4px;
    background: linear-gradient(135deg, #f57c00, #2e7d32);
}

/* RESPONSIVE TITRE */
@media (max-width: 768px) {
    .about-header {
        margin-bottom: 60px;
    }

    .about-header h1 {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .about-header h1 {
        font-size: 24px;
    }

    .about-line {
        width: 60px;
    }
}

.about-section {
    position: relative;
    padding: 50px 0;
    background: linear-gradient( 135deg, rgb(255, 255, 255), rgba(189, 84, 6, 0.21) );
    overflow: hidden;
}

.about-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}

.about-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 400px at 10% 20%, rgba(245,124,0,0.12), transparent 60%),
        radial-gradient(1000px 400px at 90% 80%, rgba(46,125,50,0.12), transparent 60%);
    pointer-events: none;
}


.about-wrapper {
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 90px;
    padding: 0 20px;
}

.about-item {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: center;
}

/* INVERSION VISUELLE UNIQUEMENT */
.about-item.reverse {
    direction: rtl;
}

.about-item.reverse > * {
    direction: ltr;
}

/* IMAGE */
.about-visual {
    display: flex;
    justify-content: center;
}

.about-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f57c00, #2e7d32);
    padding: 6px;
    flex-shrink: 0;
}

.about-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

/* TEXTE – DIMENSION FIXE POUR TOUS */
.about-text {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 22px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text h2 {
    margin-bottom: 15px;
    font-size: 30px;
    color: #2e7d32;
}

.about-text p {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .about-item,
    .about-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        text-align: center;
    }

    .about-text {
        min-height: auto;
        padding: 30px;
    }

    .about-image {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 70px 0;
    }

    .about-text h2 {
        font-size: 22px;
    }

    .about-text p {
        font-size: 14px;
    }
}

/* ================= DOMAINES ================= */

.domaine-card {
    display: flex;
    flex-direction: column;
}

.domaine-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.section-domaines {
    padding: 40px 0;
    background: #0f172a; /* fond sombre élégant */
    color: #fff;
}

.domaines-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 6%;
}

.domaines-header {
    text-align: center;
    margin-bottom: 70px;
}

.domaines-header h2 {
    font-size: 34px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #2e7d32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.domaines-header p {
    margin-top: 14px;
    opacity: 0.85;
}

/* GRID */
.domaines-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

/* CARD */
.domaine-card {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background: #10f675;
    transition: transform .45s ease, box-shadow .45s ease;
}

.domaine-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* IMAGE */
.domaine-image {
    height: 220px;
    overflow: hidden;
}

.domaine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.domaine-card:hover img {
    transform: scale(1.08);
}

/* CONTENT */
.domaine-content {
    padding: 28px;
    background: linear-gradient(
        to top,
        rgba(15,23,42,0.95),
        rgba(15,23,42,0.7)
    );
}

.domaine-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.domaine-content p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 18px;
}

/* LINK */
.domaine-link {
    font-weight: 700;
    font-size: 14px;
    color: #f57c00;
    transition: letter-spacing .3s;
}

.domaine-card:hover .domaine-link {
    letter-spacing: 1px;
}

/* FOOTER CTA */
.domaines-footer {
    text-align: center;
    margin-top: 70px;
}

.btn-outline-modern {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 30px;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: all .35s;
}
.btn-outline-modern1 {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 30px;
    border: 2px solid #f57c00;
    color: #f57c00;
    font-weight: 700;
    text-decoration: none;
    transition: all .35s;
}

.btn-outline-modern:hover {
    background: #f57c00;
    color: #000;
}

.btn-outline-modern1:hover {
    background: #f57c00;
    color: #000;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
    .domaines-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .section-domaines {
        padding: 80px 0;
    }

    .domaines-grid {
        grid-template-columns: 1fr;
    }

    .domaines-header h2 {
        font-size: 26px;
    }
}

/* ================= Actions ================= */

.section-actions-new {
    padding: 40px 0;
    background: linear-gradient( 135deg, rgb(255, 255, 255), rgba(189, 84, 6, 0.21) );
}

.actions-container-new {
    max-width: 1200px;
    margin: auto;
    padding: 0 6%;
}

.actions-header {
    text-align: center;
    margin-bottom: 70px;
}

.actions-header h2 {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #000, #2e7d32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.actions-header p {
    margin-top: 15px;
    opacity: 0.85;
}

/* GRID 3 COLONNES */
.actions-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* CARD */
.action-card-new {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-card-new:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* IMAGE pleine carte */
.action-image-new {
    width: 100%;
    height: 100%;
    min-height: 400px; /* hauteur fixe pour toutes les cartes */
    background-size: cover;
    background-position: center;
    position: relative;
}

/* OVERLAY SEMI-TRANSPARENT */
.action-overlay-new {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* contenu en bas de la carte */
    padding: 20px;
    box-sizing: border-box;
}

/* CONTENT */
.action-content-new {
    color: #fff;
}

.action-badge-new {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #f57c00, #2e7d32);
    color: #000;
    margin-bottom: 8px;
}

.action-content-new h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.action-content-new p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.btn-action-new {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    background: #f57c00;
    color: #000;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-action-new:hover {
    background: #2e7d32;
    color: #fff;
}

/* FOOTER */
.actions-footer-new {
    text-align: center;
    margin-top: 60px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .actions-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-image-new {
        min-height: 350px;
    }
}

@media (max-width: 600px) {
    .actions-grid-new {
        grid-template-columns: 1fr;
    }

    .action-image-new {
        min-height: 300px;
    }

    .actions-header h2 {
        font-size: 28px;
    }
}

/* ================= Actualités ================= */
.section-actualites {
    padding: 30px 0;
    background: #0f172a;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.actualites-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 6%;
}

.section-actualites .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-actualites h2 {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #2e7d32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-actualites p {
    margin-top: 10px;
    opacity: 0.8;
}

/* GRILLE FIXE */
.actualites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cartes par ligne desktop */
    gap: 25px;
}

/* CARD */
.actualite-card {
    position: relative;
    display: block;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 380px;
}

.actualite-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

/* IMAGE */
.actualite-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

/* CONTENT */
.actualite-content {
    position: relative;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    padding: 20px;
    color: #000;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.actualite-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #f57c00;
}

.actualite-content p {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.85;
    flex-grow: 1;
}

.btn-actualite {
    display: inline-block;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: #2e7d32;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-actualite:hover {
    background: #f57c00;
    color: #000;
}

/* FOOTER */
.actualites-footer {
    text-align: center;
    margin-top: 50px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .actualites-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cartes tablette */
    }
    .actualite-card {
        min-height: 360px;
    }
}

@media (max-width: 600px) {
    .actualites-grid {
        grid-template-columns: 1fr; /* 1 carte mobile */
    }
    .actualite-card {
        min-height: 320px;
    }
    .section-actualites h2 {
        font-size: 28px;
    }
    .actualite-content h3 {
        font-size: 18px;
    }
    .actualite-content p {
        font-size: 13px;
    }
}

/* ================= NOS PARTENAIRES ================= */
.section-partenaires {
    padding: 100px 0;
    background: linear-gradient( 135deg, rgb(230, 157, 83), rgba(12, 130, 18, 0.31) );
    position: relative;
}

.partenaires-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 6%;
}

.section-partenaires .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-partenaires h2 {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #000, #2e7d32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-partenaires p {
    margin-top: 10px;
    opacity: 0.85;
}

/* GRILLE DES PARTENAIRES */
.partenaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

/* CARD PARTENAIRE */
.partenaire-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 180px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partenaire-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.partenaire-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .partenaires-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }

    .partenaire-card {
        padding: 15px;
        max-width: 150px;
    }

    .partenaire-card img {
        max-height: 60px;
    }
}

@media (max-width: 600px) {
    .partenaires-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }

    .partenaire-card {
        padding: 12px;
        max-width: 120px;
    }

    .partenaire-card img {
        max-height: 50px;
    }
}

/* ================= PHOTOS VIDEOS ================= */

.media-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(0,0,0,0.85));
    color: #fff;
}

.media-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 6%;
}

.media-header h3 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #f57c00, #2e7d32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.media-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    text-align: center;
    padding-bottom: 10px;
}

.media-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.video-card .video-play-btn {
    position: absolute;
    font-size: 40px;
    color: #f57c00;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.media-title {
    display: block;
    margin-top: 8px;
    font-weight: 600;
    color: #f57c00;
}

/* ================= MODAL ================= */
.media-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    overflow-x: hidden;
}

.media-modal .close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
}

.media-modal .modal-content {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    max-width: 80%;
    text-align: center;
}

.media-modal img, .media-modal video {
    width: 100%;
    max-height: 80vh;
    border-radius: 15px;
}

.modal-prev, .modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: #f57c00;
    user-select: none;
    padding: 10px;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    z-index: 10000;
}

.modal-prev { left: 10px; }
.modal-next { right: 10px; }

#modal-caption {
    margin-top: 15px;
    font-size: 16px;
    color: #fff;
}

/* ================= MEDIA GRID ================= */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.media-card {
    position: relative;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
}

.video-card .video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: #f57c00;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .media-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-prev, .modal-next { font-size: 40px; padding: 8px; }
}

@media (max-width: 600px) {
    .media-grid { grid-template-columns: 1fr; }
    .media-card img { height: 150px; object-fit: cover; }
    .video-card .video-play-btn { font-size: 30px; }
    .modal-prev, .modal-next { font-size: 30px; padding: 6px; }
}

/* ================= FILTRE / RECHERCHE COMPACT & CENTRÉ ================= */
.filter-container {
    display: flex;
    justify-content: center; /* centre horizontalement */
    align-items: center;     /* centre verticalement si nécessaire */
    margin-bottom: 40px;
}

.filter-form {
    display: flex;
    gap: 8px;
    background: #2e7d3282;
    backdrop-filter: blur(12px);
    padding: 8px 12px;
    border-radius: 25px;
    box-shadow: 0 0 20px rgba(0,153,255,0.2);
    max-width: 400px;  /* largeur maximale du formulaire */
    width: 100%;        /* s’adapte à la largeur disponible */
    justify-content: center; /* centre les éléments à l'intérieur */
}

.filter-form input[type="text"] {
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    flex: 1;            /* prend tout l'espace disponible */
    padding: 6px 10px;
    border-radius: 20px;
}

.filter-form input[type="text"]::placeholder {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.filter-form button {
    background: linear-gradient(135deg, #f57c00, #f57c00);
    border: none;
    color: #fff;
    padding: 6px 18px;
    font-weight: 700;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 0 12px rgba(0,153,255,0.4);
}

.filter-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0,153,255,0.6);
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .filter-form {
        flex-direction: column;
        gap: 6px;
        padding: 6px 10px;
        max-width: 90%;
    }

    .filter-form button {
        width: 100%;
        padding: 8px 0;
    }
}

.video-thumb {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}
.media-card.video-card {
    position: relative;
}
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #fff;
    pointer-events: none;
}

/* ================= PARTENAIRES – LAYOUT ================= */
.section-partenaires {
    padding: 60px 0;
    background: linear-gradient( 135deg, rgb(255, 255, 255), rgba(189, 84, 6, 0.21) );
}

.partenaires-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section-partenaires .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-partenaires .section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.section-partenaires .section-header p {
    font-size: 1rem;
    color: #555;
}

/* ================= PARTENAIRES GRID ================= */
.partenaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

/* ================= CARTE PARTENAIRE ================= */
.partenaire-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.partenaire-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 16px;
    object-fit: contain;
}

.partenaire-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.partenaire-card p {
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.4;
    margin-bottom: 12px;
}

/* ================= EFFETS AU SURVOL ================= */
.partenaire-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Si c’est un lien */
.partenaires-grid a.partenaire-card {
    text-decoration: none;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .section-partenaires .section-header h2 {
        font-size: 1.75rem;
    }
    .section-partenaires .section-header p {
        font-size: 0.95rem;
    }
    .partenaire-card h3 {
        font-size: 1.1rem;
    }
    .partenaire-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .partenaire-card {
        padding: 16px;
    }
}

.section-separator {
    width: 700px;              /* 🔧 modifie ici la longueur */
    height: 4px;               /* épaisseur du trait */
    background-color: #f57c00; /* couleur demandée */
    margin: 80px auto;         /* espace vertical + centrage */
    border-radius: 4px;        /* bords arrondis */
}
@media (max-width: 768px) {
    .section-separator {
        width: 70%;      /* s’adapte à la largeur de l’écran */
        height: 3px;     /* légèrement plus fin sur mobile */
        margin: 50px auto;
    }
}

/* =========================================================
   CONTACT PAGE
========================================================= */

/* Section */
.section-contact {
    padding: 12px 20px;
    background: transparent;
}

/* Container */
.contact-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* Glass cards */
.glass-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 18px;
    padding: 40px 35px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

/* Titles */
.contact-form h2,
.contact-info h2 {
    color: #f57c00;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Form groups */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #d1d5db;
}

/* Inputs & textarea */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 15px;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9ca3af;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(245, 124, 0, 0.4);
}

.contact-form textarea {
    resize: vertical;
}

/* Submit button */
.contact-form .btn-outline-modern1 {
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    border: 2px solid #f57c00;
    background: transparent;
    color: #f57c00;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .btn-outline-modern1:hover {
    background: #f57c00;
    color: #000;
}

/* Contact info */
.contact-info p {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.7;
    color: #e5e7eb;
}

.contact-info strong {
    color: #f57c00;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .contact-form h2,
    .contact-info h2 {
        font-size: 20px;
    }
}

/* Wrapper centré */
.notification-wrapper {
    display: flex;
    justify-content: center;  /* centre horizontalement */
    align-items: center;      /* centre verticalement si nécessaire */
    margin: 20px 0;           /* espace vertical */
    padding: 0 10px;          /* espace côté mobile */
    width: 100%;
    box-sizing: border-box;
}

/* Message succès vert */
.success-message {
    display: inline-block;
    max-width: 600px;         /* limite largeur du message */
    width: 100%;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease;
}

/* Message d'erreur rouge */
.error-message {
    display: inline-block;
    max-width: 600px;
    width: 100%;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease;
}

/* Animation fade in */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-5px);}
    to {opacity: 1; transform: translateY(0);}
}

/* Responsive mobile */
@media (max-width: 480px) {
    .success-message,
    .error-message {
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* ================= PAGES LEGALES ================= */

.section-legal {
    padding: 120px 20px;
    display: flex;
    justify-content: center;
}

.legal-container {
    max-width: 900px;
    width: 100%;
    padding: 45px;
}

.legal-container h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #f57c00;
}

.legal-container h2 {
    margin-top: 30px;
    margin-bottom: 12px;
    color: #f57c00;
    font-size: 20px;
}

.legal-container p {
    line-height: 1.8;
    opacity: 0.9;
    font-size: 15px;
}

/* Mobile */
@media (max-width: 600px) {
    .legal-container {
        padding: 25px;
    }

    .legal-container h1 {
        font-size: 26px;
    }
}

/* ================= COOKIES MODAL ================= */

.cookies-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.cookies-box {
    max-width: 420px;
    width: 100%;
    padding: 30px;
    text-align: center;
}

.cookies-box h3 {
    margin-bottom: 15px;
    color: #f57c00;
}

.cookies-box p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.cookies-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cookies {
    padding: 12px 22px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-cookies.accept {
    background: #f57c00;
    color: #fff;
}

.btn-cookies.accept:hover {
    background: #e56f00;
}

.btn-cookies.refuse {
    background: transparent;
    border: 1px solid #f57c00;
    color: #f57c00;
}

.btn-cookies.refuse:hover {
    background: #f57c00;
    color: #fff;
}

.cookies-link {
    margin-top: 20px;
    font-size: 13px;
}

.cookies-link a {
    color: #f57c00;
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 500px) {
    .cookies-box {
        padding: 22px;
    }
}
