*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #a5f3fc 0%, #67e8f9 12%, #22d3ee 25%, #2dd4bf 45%, #14b8a6 70%, #0d9488 85%, #0f766e 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #1e293b;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%23ffffff' fill-opacity='0.04' d='M0 60 Q300 20 600 60 T1200 60 V120 H0 Z'/%3E%3Cpath fill='%23ffffff' fill-opacity='0.06' d='M0 80 Q300 40 600 80 T1200 80 V120 H0 Z'/%3E%3C/svg%3E") repeat-x bottom;
    background-size: 1200px 120px;
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header {
    background: #0f766e;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.4);
}

.site-title {
    margin: 0;
}

.site-title a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
}

.site-logo {
    flex-shrink: 0;
    display: block;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.main-nav a {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.site-main {
    padding: 2rem 0 3rem;
}

.site-footer {
    background: #0f766e;
    color: #99f6e4;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.hero {
    background: linear-gradient(135deg, #0e7490, #0f766e);
    color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 18px 45px rgba(14, 116, 144, 0.4);
    margin-bottom: 2rem;
    text-align: center;
}

.hero-welcome {
    background: linear-gradient(145deg, #0d9488 0%, #0f766e 40%, #115e59 100%);
    padding: 3rem 2rem;
    box-shadow: 0 20px 50px rgba(13, 148, 136, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    position: relative;
    overflow: hidden;
}

.hero-welcome::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(253, 230, 138, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-tagline {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 0.5rem;
    opacity: 0.95;
}

.hero h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2.1rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-intro {
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.75rem;
    line-height: 1.6;
    opacity: 0.95;
    font-size: 1.05rem;
}

.hero p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Bloc « Dernières photos » sur l’accueil */
.home-teaser {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 12px 35px rgba(14, 116, 144, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.home-teaser h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    color: #0f766e;
}

.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.teaser-item {
    display: block;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teaser-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(14, 116, 144, 0.2);
}

.teaser-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.teaser-title {
    display: block;
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
    color: #334155;
    background: #f8fafc;
}

.teaser-more {
    margin-top: 1.25rem;
    margin-bottom: 0;
    text-align: center;
}

.teaser-more a {
    color: #0f766e;
    font-weight: 600;
}

.teaser-more a:hover {
    text-decoration: underline;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #f59e0b;
    color: #1e293b;
}

.btn-primary:hover {
    background: #d97706;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.home-galleries h3 {
    margin-bottom: 1rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    border: 1px solid #e5e7eb;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    border-color: #d1d5db;
}

.card h4 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.card p {
    margin: 0;
    color: #4b5563;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.media-item {
    background: #fff;
    border-radius: 1rem;
    padding: 0.9rem;
    box-shadow: 0 10px 25px rgba(14, 116, 144, 0.12);
    border: 1px solid #99f6e4;
}

.media-item img {
    width: 100%;
    height: auto;
    border-radius: 0.8rem;
    object-fit: contain;
    max-height: 180px;
}

.video-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 180px;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, #0e7490, #0f766e);
    color: #e0f2f1;
    gap: 0.5rem;
}

.video-thumbnail span {
    font-size: 2.2rem;
}

.media-item h3 {
    margin: 0.75rem 0 0.25rem;
    font-size: 1rem;
}

.created-at {
    font-size: 0.8rem;
    color: #6b7280;
}

.back-to-gallery {
    margin-bottom: 1rem;
}

.media-detail {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 14px 40px rgba(14, 116, 144, 0.15);
    border: 1px solid #99f6e4;
    margin-bottom: 2rem;
}

.media-detail .media-content {
    margin-top: 1rem;
}

.media-detail img,
.media-detail video {
    max-width: 100%;
    border-radius: 0.9rem;
}

.media-description {
    margin-top: 1rem;
    color: #4b5563;
}

.comments-section {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(14, 116, 144, 0.12);
    border: 1px solid #99f6e4;
}

.form-card {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea,
.form-group input[type="file"],
.form-group select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 0.6rem;
    border: 1px solid #d1d5db;
    font: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.alert {
    padding: 0.8rem 1rem;
    border-radius: 0.7rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #ecfdf3;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.cell-actions .sep {
    margin: 0 0.4rem;
    color: #94a3b8;
}
.cell-actions a {
    font-size: 0.9rem;
}
.link-danger {
    color: #b91c1c;
}
.link-danger:hover {
    text-decoration: underline;
}

/* Section Conseils & astuces */
.conseils-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}
.conseils-list li {
    margin-bottom: 1rem;
}
.conseil-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 10px 25px rgba(14, 116, 144, 0.1);
    border: 1px solid #99f6e4;
}
.conseil-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}
.conseil-card h3 a:hover {
    text-decoration: underline;
}
.conseil-meta {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}
.conseil-detail {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 14px 40px rgba(14, 116, 144, 0.12);
    border: 1px solid #99f6e4;
    margin-top: 1rem;
}
.conseil-detail .conseil-meta {
    margin-bottom: 1rem;
}
.conseil-contenu {
    line-height: 1.65;
    color: #334155;
}
.no-items {
    color: #64748b;
    font-style: italic;
    margin-top: 1.5rem;
}

.type-preview,
.type-thumb {
    display: block;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}
.type-thumb {
    width: 180px;
    height: 72px;
    object-fit: contain;
    background: #f1f5f9;
}
.type-preview {
    width: 80px;
    height: 80px;
}
.current-image {
    margin-bottom: 0.5rem;
}
.checkbox-label {
    display: inline-block;
    margin-bottom: 0.5rem;
}
.cell-image {
    width: 200px;
    vertical-align: middle;
    padding: 0.5rem 0.75rem 0.5rem 0;
}
.cell-image .no-image {
    color: #94a3b8;
    font-size: 0.9rem;
}

.comments-list .comment {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.comments-list .comment h4 {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
}

/* Section Concours */
.concours-info.card {
    margin-bottom: 1.5rem;
}
.concours-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.classement {
    margin-top: 1rem;
}
.table-classement {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(14, 116, 144, 0.1);
    border: 1px solid #99f6e4;
}
.table-classement th,
.table-classement td {
    padding: 0.6rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}
.table-classement thead th {
    background: #0f766e;
    color: #fff;
    font-weight: 600;
}
.table-classement tbody tr:last-child td {
    border-bottom: none;
}
.table-classement tbody tr:hover {
    background: #f0fdfa;
}
.liste-joueurs .list-plain,
.liste-prises {
    margin-top: 1rem;
}
.list-plain {
    list-style: none;
    padding: 0;
    margin: 0;
}
.list-plain li {
    padding: 0.35rem 0;
    border-bottom: 1px solid #e5e7eb;
}
.small-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge-actif {
    background: #0f766e;
    color: #fff;
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding: 2rem 1.5rem;
        text-align: left;
    }

    .hero-actions {
        justify-content: flex-start;
    }
}

