* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f5f5f5;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
}

img {
    max-width: 100%;
}

main.container {
    max-width: 1400px;
}

/* ========================================================= */
/* BARRE SOCIALE */
/* ========================================================= */

.social-bar {
    min-height: 55px;
    padding: 7px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    background: #111;
    color: #fff;
}

.social-bar a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.social-bar a:hover {
    color: #ccc;
    text-decoration: none;
}

.social-bar a i {
    font-size: 1.2rem;
    margin-right: 6px;
}

.social-bar .logo-link {
    margin-right: 15px;
}

.social-bar .logo-barre {
    max-height: 42px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    filter: invert(1);
}

/* ========================================================= */
/* NAVIGATION */
/* ========================================================= */

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    white-space: nowrap;
}

.navbar-nav .nav-link i {
    margin-right: 5px;
}

/* ========================================================= */
/* SECTIONS */
/* ========================================================= */

.home-section {
    background: #fff;
    margin-bottom: 35px;
    padding: 45px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    margin-bottom: 0;
}

/* ========================================================= */
/* ACCUEIL */
/* ========================================================= */

.accueil-section {
    padding: 70px 35px 50px;
    position: relative;
}

.accueil-content {
    padding: 20px 30px;
}

.accueil-surtitle {
    display: block;
    margin-bottom: 18px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.65;
}

.accueil-section h1 {
    margin: 0 0 25px;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: 1px;
}

.accueil-section h1 span {
    font-weight: 300;
}

.accueil-section p {
    line-height: 1.8;
}

.accueil-section .lead {
    font-size: 1.35rem;
}

.accueil-intro {
    max-width: 700px;
    margin-bottom: 25px;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    line-height: 1.4;
    font-weight: 300;
}

.accueil-text {
    max-width: 720px;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.accueil-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.accueil-btn {
    padding: 11px 22px;
    border-radius: 2px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

.accueil-btn i {
    margin-right: 8px;
}

.accueil-btn:hover {
    transform: translateY(-2px);
}

.accueil-visual {
    padding: 30px;
}

.accueil-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.accueil-logo {
    max-width: 300px;
    max-height: 300px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.accueil-signature {
    margin-top: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    letter-spacing: 1px;
    opacity: 0.65;
}

.accueil-points {
    margin-top: 60px;
    padding-top: 35px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.accueil-point {
    padding: 25px 35px;
    text-align: center;
}

.accueil-point + .accueil-point {
    border-left: 1px solid rgba(0, 0, 0, 0.10);
}

.accueil-point i {
    margin-bottom: 15px;
    font-size: 1.7rem;
}

.accueil-point h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
    font-weight: 600;
}

.accueil-point p {
    max-width: 320px;
    margin: auto;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #666;
}

/* ========================================================= */
/* CONTACT */
/* ========================================================= */

.contact-form {
    max-width: 900px;
    margin: 0 auto;
}

.contact-form label {
    font-weight: 600;
}

.contact-form .form-control {
    min-height: 45px;
    border-radius: 4px;
}

.contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    min-height: 45px;
    padding-left: 25px;
    padding-right: 25px;
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ========================================================= */
/* ALERTES */
/* ========================================================= */

.alert {
    max-width: 900px;
    margin: 0 auto 30px auto;
}

/* ========================================================= */
/* GALERIES - COMMUN AUX PAGES */
/* ========================================================= */

.gallery-grid {
    margin-top: 30px;
}

.gallery-card {
    height: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.14);
}

.gallery-card-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #111;
}

.gallery-card-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-image {
    transform: scale(1.06);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-overlay span {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-card-empty {
    height: 100%;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #777;
    background: #f1f1f1;
}

.gallery-card-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.gallery-card-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gallery-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #777;
    margin-bottom: 7px;
}

.gallery-card-content h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
}

.gallery-subtitle {
    margin: 6px 0 10px;
    color: #666;
    font-size: 0.95rem;
}

.gallery-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.gallery-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    margin-top: auto;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.8rem;
}

.gallery-meta span {
    display: inline-flex;
    align-items: center;
}

.gallery-meta i {
    margin-right: 6px;
}

.gallery-button {
    align-self: flex-start;
    border-radius: 30px;
    padding: 8px 18px;
}

/* ========================================================= */
/* PAGE GALERIE - ÉLÉMENTS COMMUNS */
/* ========================================================= */

.gallery-navbar {
    background: #111;
}

.gallery-header {
    padding: 70px 0 50px;
    background: #f3f3f3;
}

.gallery-back {
    display: inline-block;
    margin-bottom: 30px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
}

.gallery-back:hover {
    color: #000;
    text-decoration: none;
}

.gallery-page-category {
    display: block;
    margin-bottom: 10px;
    color: #777;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-header h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -1px;
}

.gallery-page-subtitle {
    margin: 12px 0 0;
    color: #555;
    font-size: 1.2rem;
}

.gallery-page-description {
    max-width: 800px;
    margin: 20px 0 0;
    color: #666;
    line-height: 1.7;
}

.gallery-page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    margin-top: 25px;
    color: #666;
    font-size: 0.9rem;
}

.gallery-page-meta span {
    display: inline-flex;
    align-items: center;
}

.gallery-page-meta i {
    margin-right: 7px;
}

/* ========================================================= */
/* GALERIE PHOTO - COMMUN */
/* ========================================================= */

.photo-gallery-section {
    padding: 50px 0 80px;
    background: #fff;
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.photo-gallery-item {
    position: relative;
    padding: 0;
    border: 0;
    background: #111;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition:
        transform 0.5s ease,
        opacity 0.4s ease;
}

.photo-gallery-item:hover img {
    transform: scale(1.06);
    opacity: 0.82;
}

.photo-gallery-number {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.7rem;
    pointer-events: none;
}

/* ========================================================= */
/* COPYRIGHT */
/* ========================================================= */

.copyright-section {
    background: #222;
    color: #fff;
}

.copyright-content {
    max-width: 1000px;
    margin: 0 auto;
}

.copyright-content h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.copyright-content p {
    line-height: 1.8;
    color: #ddd;
}

.author-credit {
    display: inline-block;
    padding: 12px 20px;
    margin: 10px 0 20px;
    background: #fff;
    color: #111;
    font-weight: 700;
    border-radius: 4px;
}

.copyright-warning {
    margin-top: 25px;
    padding: 15px;
    border-left: 4px solid #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* ========================================================= */
/* FOOTER */
/* ========================================================= */

.site-footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 30px 15px;
}

.site-footer p {
    margin-bottom: 8px;
}

.site-footer a {
    color: #fff;
}

.site-footer a:hover {
    color: #ccc;
}

/* ========================================================= */
/* PROTECTION IMAGES */
/* ========================================================= */

.gallery-viewer img,
.protected-photo,
#modalImage {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

/* ========================================================= */
/* BADGE PHOTO */
/* ========================================================= */

.photo-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    background: #dc3545;
    color: #fff;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
}

/* ========================================================= */
/* RESPONSIVE GLOBAL */
/* ========================================================= */

@media (max-width: 991px) {

    .home-section {
        padding: 35px 25px;
    }

    .accueil-section {
        padding: 45px 20px 35px;
    }

    .accueil-content {
        padding: 15px;
        text-align: center;
    }

    .accueil-section h1 {
        font-size: 2.2rem;
    }

    .accueil-logo {
        margin-top: 30px;
        max-width: 220px;
    }

    .accueil-text {
        margin-left: auto;
        margin-right: auto;
    }

    .accueil-actions {
        justify-content: center;
    }

    .accueil-visual {
        padding: 30px 15px 10px;
    }

    .accueil-logo-wrapper {
        min-height: auto;
    }

    .accueil-points {
        margin-top: 35px;
    }

    .photo-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .social-bar {
        gap: 12px;
    }
}

@media (max-width: 767px) {

    .social-bar {
        justify-content: center;
        padding: 8px 10px;
        gap: 10px;
    }

    .social-bar .logo-link {
        margin-right: 5px;
    }

    .social-bar .logo-barre {
        max-height: 35px;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .accueil-section {
        padding: 35px 15px 25px;
    }

    .accueil-content {
        padding: 15px 5px;
    }

    .accueil-surtitle {
        font-size: 0.68rem;
        letter-spacing: 2px;
    }

    .accueil-section h1 {
        font-size: clamp(2.2rem, 11vw, 3.5rem);
    }

    .accueil-intro {
        font-size: 1.25rem;
    }

    .accueil-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .accueil-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .accueil-btn {
        width: 100%;
    }

    .accueil-point {
        padding: 25px 15px;
    }

    .accueil-point + .accueil-point {
        border-left: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.10);
    }

    .gallery-card {
        border-radius: 10px;
    }

    .gallery-card-content {
        padding: 18px;
    }

    .gallery-card-content h3 {
        font-size: 1.2rem;
    }

    .gallery-description {
        font-size: 0.88rem;
    }

    .gallery-card-overlay {
        opacity: 1;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.5),
            transparent 50%
        );
        align-items: flex-end;
        justify-content: flex-start;
        padding: 15px;
    }

    .gallery-card-overlay span {
        font-size: 0.75rem;
        padding: 7px 12px;
    }

    .photo-gallery-section {
        padding: 25px 0 50px;
    }

    .photo-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
}

@media (max-width: 575px) {

    main.container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .home-section {
        padding: 25px 18px;
        margin-bottom: 20px;
    }

    .section-title {
        margin-bottom: 25px;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .copyright-content h2 {
        font-size: 1.4rem;
    }

    .social-bar {
        font-size: 0.85rem;
    }

    .photo-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .gallery-page-meta {
        flex-direction: column;
        gap: 8px;
    }
}