:root {
    --primary-color: #0052cc;
    --secondary-color: #f0f0f0;
    --dark-bg: #fff;
    --text-color: #333;
    --border-color: #ddd;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: var(--dark-bg);
    color: #fff;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

header h1 {
    color: var(--primary-color);
}

#main-content {
    padding: 20px;
    flex: 1;
}

h1 {
    text-align: center;
}

h2 {
    color: var(--text-color);
}

.section-container {
    padding: 60px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.hero {
            height: 70vh;
            background: linear-gradient(rgba(0, 86, 179, 0.7), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            color: white;
            padding: 0 20px;
        }

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 15px;
        }

        .hero p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            max-width: 600px;
        }   

        .btn {
            display: flex;
            gap: 0;
            margin-top: 30px;
            justify-content: center;
        }

        .btn {
            padding: 12px 25px;
            font-size: 1rem;
            border: none;
            background-color: #ffa500 !important;
            color: #fff;
            cursor: pointer;
            transition: background-color 0.3s;
            font-weight: bold;
            text-transform: uppercase;
            display: grid;
            grid-template-rows: repeat(2, 1fr);
        }

        .hero-buttons button:hover {
            background-color: #ff8c00;
        }

        .hero-buttons button:first-child {
            border-radius: 5px 0 0 5px;
        }

        .hero-buttons button:last-child {
            border-radius: 0 5px 5px 0;
        }

        /* Explore Cards */
.grid-explore {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.explore-card {
    background-color: var(--secondary-color);
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

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

.explore-card h3 {
    margin-top: 10px;
    color: var(--primary-color);
}

/* University Cards */
#universites,
.grid-universities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.univ-card,
.uni-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    background: #fff;
}

.univ-card:hover,
.uni-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.univ-card img,
.uni-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.univ-info,
.uni-content {
    padding: 20px;
}

.univ-info h3,
.uni-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.uni-tag {
    display: inline-block;
    background: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

/* Search Form */
.recherche {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 0;
    flex-wrap: wrap;
}

.form-champ {
    padding: 14px 18px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 50px 0 0 50px;
    width: 350px;
    background-color: #fff;
    color: var(--text-color);
}

.form-champ::placeholder {
    color: #999;
}

.form-champ:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 86, 204, 0.3);
}

.form-bouton {
    padding: 14px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 0 50px 50px 0;
    background-color: #ffa500;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: bold;
}

.form-bouton:hover {
    background-color: #ff8c00;
    transform: scale(1.02);
}

.form-bouton:active {
    transform: scale(0.98);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: auto;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    .section-container {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .grid-explore {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .form-champ {
        width: 200px;
    }

    .recherche {
        flex-wrap: wrap;
    }

    .recherche {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .form-champ {
        width: 250px;
        border-radius: 5px;
    }

    .form-bouton {
        border-radius: 5px;
        width: 250px;
    }
}

@media (max-width: 480px) {
    .form-champ {
        width: 100%;
        max-width: 280px;
    }

    .form-bouton {
        width: 100%;
        max-width: 280px;
    }
}

@media (min-width: 1024px) {
    header h1 {
        margin-left: 0;
    }

    .grid-explore {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-universities {
        grid-template-columns: repeat(3, 1fr);
    }
}