/* CIMAG - Club Informatique Maguelone
   Site web statique reconstruit depuis web.archive.org
*/

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

:root {
    --accent-color: #32c2ec;
    --accent-hover: #28a8cf;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #fff;
    --dark: #222;
}

body {
    font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    max-height: 80px;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1em;
    padding: 10px 0;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--accent-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* Page Header (Banniere) */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/background.jpg') center/cover fixed;
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.page-header h1 {
    font-size: 3em;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    font-size: 0.9em;
    opacity: 0.8;
}

.page-header .breadcrumb a {
    color: var(--white);
}

/* Hero section (Accueil) */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/background.jpg') center/cover fixed;
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 2em;
    font-weight: 600;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
}

/* Grid */
.grid {
    display: grid;
    gap: 40px;
}

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

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

/* Cards */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--accent-color);
    color: var(--white);
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: var(--accent-hover);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* Liste a puces personnalisee */
.check-list {
    list-style: none;
}

.check-list li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
}

.check-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Accordion */
.accordion {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 20px;
    background: var(--light-gray);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background: #e9e9e9;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5em;
    color: var(--accent-color);
}

.accordion-item.active .accordion-header::after {
    content: '-';
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 20px;
    max-height: 500px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background: var(--light-gray);
    font-weight: 600;
}

/* Images avec legende */
.image-caption {
    text-align: center;
    margin-bottom: 20px;
}

.image-caption img {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.image-caption figcaption {
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

/* Formulaire */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1em;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 30px 0;
}

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

.footer-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-menu a {
    color: rgba(255,255,255,0.7);
}

.footer-menu a:hover {
    color: var(--white);
}

/* Utilitaires */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-20 {
    gap: 20px;
}

.align-center {
    align-items: center;
}

/* Blockquote */
blockquote {
    padding: 20px;
    background: var(--light-gray);
    border-left: 4px solid var(--accent-color);
    margin: 20px 0;
    font-style: italic;
}

/* Responsive */
@media (max-width: 960px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    nav ul.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.5em;
    }

    .page-header h1 {
        font-size: 2em;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .section {
        padding: 40px 0;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}
