/* ==========================================================================
   1. HEADER 1 LIGNE, MENU VERT BORD À BORD & STICKY PC (Thème Shawburn)
   ========================================================================== */

.site-header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: #eef4f7 !important;
    background-image: url("https://golfisabella.fr/wp-content/uploads/2026/11/background-golfisabella.jpg") !important;
    background-size: cover !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
    padding: 10px 0 0 0 !important;
    margin-bottom: 0 !important;
    max-width: 100% !important;
}

/* Logo Golf Isabella */
.site-branding {
    order: 1 !important;
    width: auto !important;
    flex: 0 1 auto !important;
    margin: 0 0 10px 4% !important;
    padding: 0 !important;
    text-align: left !important;
}

.site-logo img,
.custom-logo {
    max-height: 75px !important;
    width: auto !important;
}

/* Badge Bronze + Réseaux sociaux calés en haut à droite */
.social-navigation {
    order: 2 !important;
    width: auto !important;
    flex: 0 1 auto !important;
    align-self: flex-start !important;
    margin: 0 4% 0 0 !important;
    display: flex !important;
    align-items: center !important;
}

.social-navigation::before {
    content: "" !important;
    display: inline-block !important;
    width: 48px !important;
    height: 48px !important;
    margin-right: 16px !important;
    padding-right: 16px !important;
    border-right: 1px solid rgba(0, 76, 52, 0.25) !important;
    background-image: url("https://golfisabella.fr/wp-content/uploads/2026/11/Label-bronze-transparent.png") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
}

.social-navigation ul {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.social-navigation ul li a {
    width: 30px !important;
    height: 30px !important;
    padding: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.social-navigation ul li a svg {
    width: 15px !important;
    height: 15px !important;
}

/* Menu vert pleine largeur bord à bord */
.main-navigation {
    order: 3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Barre de menu verte fixe en haut sur PC uniquement */
@media (min-width: 768px) {
    .site {
        overflow: visible !important;
    }
    .site-header {
        position: sticky !important;
        top: -95px !important; /* Visiteurs */
        z-index: 9999 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    }
    .admin-bar .site-header {
        top: -63px !important; /* Connecté en admin (+32px) */
    }
}

/* Adaptation mobile du header */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 0 0 0 !important;
    }

    .site-branding {
        margin: 0 auto 8px auto !important;
        text-align: center !important;
    }

    .site-logo img,
    .custom-logo {
        max-height: 55px !important;
    }

    .social-navigation {
        align-self: center !important;
        margin: 0 auto 10px auto !important;
        justify-content: center !important;
    }

    .social-navigation::before {
        width: 34px !important;
        height: 34px !important;
        margin-right: 12px !important;
        padding-right: 12px !important;
    }

    .social-navigation ul li a {
        width: 26px !important;
        height: 26px !important;
        padding: 5px !important;
    }

    .social-navigation ul li a svg {
        width: 14px !important;
        height: 14px !important;
    }
}


/* ==========================================================================
   2. ESPACEMENT SOUS LE MENU & TITRES NATIFS MASQUÉS
   ========================================================================== */

/* Léger espace uniforme sous le menu vert sur toutes les pages */
.site-content {
    padding-top: 16px !important;
    margin-top: 0 !important;
}

.site-main,
.entry-content,
.entry-content > *:first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Masquer le titre natif sur l'accueil et les pages avec Bannière en tête */
.home .entry-header,
article:has(.entry-content > .wp-block-cover:first-child) .entry-header,
article:has(.entry-content > .wp-block-cover:first-child) .entry-title {
    display: none !important;
}


/* ==========================================================================
   3. CARROUSEL PANORAMIQUE (ACCUEIL) & BANNIÈRES COVER (-20 % HAUTEUR)
   ========================================================================== */

/* Carrousel Accueil aligné sur la largeur du site */
.isabella-hero-slider {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    height: 290px !important;
    overflow: hidden !important;
    background-color: #004c34 !important;
}

.isabella-hero-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.isabella-hero-slider .slide.active {
    opacity: 1;
}

.isabella-hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.isabella-hero-slider .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 76, 52, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index: 2;
}

.isabella-hero-slider .hero-overlay h1 {
    color: #ffffff !important;
    font-size: 38px !important;
    margin: 0 0 8px 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.isabella-hero-slider .hero-overlay p {
    color: #ffffff !important;
    font-size: 18px !important;
    margin: 0 !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.isabella-hero-slider .hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.75);
    color: #004c34;
    border: none;
    width: 38px;
    height: 38px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.isabella-hero-slider .hero-nav:hover {
    background: #ffffff;
}

.isabella-hero-slider .hero-prev { left: 16px; }
.isabella-hero-slider .hero-next { right: 16px; }

@media (max-width: 767px) {
    .isabella-hero-slider { height: 190px !important; }
    .isabella-hero-slider .hero-overlay h1 { font-size: 24px !important; }
    .isabella-hero-slider .hero-overlay p { font-size: 14px !important; }
}

/* Bannières Cover sur toutes les autres pages */
.wp-block-cover.alignfull {
    min-height: 225px !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.entry-content > .wp-block-cover:first-child {
    margin-top: 0 !important;
    margin-bottom: 50px !important;
}

.entry-content > .wp-block-cover:first-child + * {
    margin-top: 50px !important;
}

.entry-content > .wp-block-cover:first-child .wp-block-cover__inner-container {
    max-width: 920px !important;
    padding: 0 25px !important;
}


/* ==========================================================================
   4. IMAGES, COLONNES 4:3, MÉDIA & TEXTE, SÉPARATEURS
   ========================================================================== */

/* Images mises en avant */
.post-thumbnail img {
    max-height: 400px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Images simples dans le contenu */
.entry-content .wp-block-image img {
    max-height: 450px !important;
    width: auto !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Uniformisation 4:3 des blocs Média & Texte */
.wp-block-media-text__media img {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    object-position: center 20% !important;
    border-radius: 8px !important;
}

/* Uniformisation 4:3 des photos en colonnes (page d'accueil) */
.wp-block-columns .wp-block-image {
    overflow: hidden !important;
    border-radius: 6px !important;
}

.wp-block-columns .wp-block-image img {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    object-position: center 20% !important;
    transition: transform 0.3s ease !important;
}

.wp-block-columns .wp-block-image a:hover img {
    transform: scale(1.03) !important;
}

/* Justification des paragraphes */
.textes-justifies .wp-block-media-text__content p:not(.has-large-font-size) {
    text-align: justify !important;
    hyphens: auto;
}

/* Séparateur dégradé vert Isabella */
hr.wp-block-separator {
    border: none !important;
    height: 2px !important;
    width: 550px !important;
    max-width: 80% !important;
    margin: 32px auto !important;
    background: linear-gradient(to right, transparent, rgba(0, 76, 52, 0.45), transparent) !important;
    opacity: 1 !important;
}


/* ==========================================================================
   5. FOOTER PLEINE LARGEUR
   ========================================================================== */

.site-footer {
    max-width: 100% !important;
    width: 100% !important;
    background-color: #2d7a53 !important;
    border-top: none !important;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 30px 20px 24px !important;
    margin: 40px 0 0 0 !important;
}

.site-footer .site-info {
    display: none !important;
}

.site-footer .footer-navigation {
    max-width: 1200px !important;
    margin: 0 auto 16px auto !important;
}

.site-footer .footer-navigation ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-footer .footer-navigation a {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
}

.site-footer .footer-navigation a:hover {
    opacity: 0.75 !important;
}

/* 3 colonnes d'infos pratiques */
.isabella-footer-infos {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 24px !important;
    max-width: 1000px !important;
    margin: 0 auto 24px auto !important;
    padding-bottom: 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.isabella-footer-infos .footer-col {
    flex: 1 1 220px !important;
}

.isabella-footer-infos strong {
    color: #ffffff !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.isabella-footer-infos a {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

.isabella-footer-infos a:hover {
    opacity: 0.75 !important;
}

/* Logo blanc + Copyright */
.isabella-footer-bottom {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.isabella-footer-bottom .footer-logo {
    height: 36px !important;
    width: auto !important;
    filter: brightness(0) invert(1) !important;
    opacity: 0.9 !important;
}


/* ==========================================================================
   6. CHARTE SPORTIVE, FORMULAIRES & INTERFACE MANAGER
   ========================================================================== */

.charte-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.charte-header h1 {
    color: #004c34;
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 800;
}

.charte-header h2 {
    color: #666;
    text-align: center;
    font-size: 1.1em;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.separator {
    width: 80px;
    height: 4px;
    background-color: #f7b300;
    margin: 20px auto 50px auto;
}

.charte-section h3 {
    color: #004c34;
    font-size: 1.6em;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.charte-section h4 {
    color: #333;
    font-size: 1.3em;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.charte-container ul {
    list-style: none;
    padding-left: 0;
}

.charte-container ul li {
    padding-left: 20px;
    margin-bottom: 10px;
    position: relative;
}

.charte-container ul li::before {
    content: "•";
    color: #f7b300;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.sub-list {
    margin-top: 10px;
    margin-left: 20px;
    font-size: 0.95em;
    color: #555;
}

.warning-box {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 25px;
}

.charte-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    background: #fff;
    border: 1px solid #ddd;
}

.charte-table thead tr {
    background-color: #004c34;
    color: #fff;
    text-align: center;
}

.charte-table th,
.charte-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: center;
}

.charte-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.charte-table tbody tr:hover {
    background-color: #f1f1f1;
}

.separator-row td {
    border-top: 2px solid #004c34;
}

.table-note {
    font-size: 0.85em;
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

.objectives-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.objective-col {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.objective-col h5 {
    background-color: #004c34;
    color: #fff;
    padding: 10px;
    margin: -20px -20px 20px -20px;
    border-radius: 8px 8px 0 0;
    text-align: center;
    font-size: 1.2em;
}

.charte-signature-zone {
    margin-top: 60px;
    padding: 30px;
    background-color: #f4fcf9;
    border: 2px dashed #004c34;
    border-radius: 10px;
    text-align: center;
}

/* Formulaires Charte */
.public-form .form-row {
    display: flex;
    gap: 20px;
}

.public-form .form-row .form-group {
    flex: 1;
}

.public-form input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.public-form small {
    display: block;
    color: #666;
    margin-top: 5px;
    font-size: 0.85em;
}

.isa-form {
    max-width: 100%;
    margin-top: 20px;
}

.isa-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.isa-col {
    flex: 1;
    min-width: 250px;
}

.isa-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.2;
}

.isa-form input[type="text"],
.isa-form input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    height: 45px;
    margin: 0;
}

.isa-full-width {
    margin-bottom: 20px;
}

.isa-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
}

.isa-btn {
    width: 100%;
    padding: 15px;
    background-color: #004c34;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
}

.isa-btn:hover {
    background-color: #003322;
}

.isa-btn-small {
    padding: 6px 12px;
    font-size: 0.9em;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
}

/* Interface Manager & KPI */
.isa-manager {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.kpi-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.kpi-box {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kpi-total { background-color: #004c34; }
.kpi-signed { background-color: #28a745; }
.kpi-pending { background-color: #ffc107; color: #333; }

.kpi-number {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 2px;
}

.kpi-label {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.manager-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f1f1f1;
    border-radius: 5px;
}

.manager-search input {
    flex: 1;
    padding: 10px;
}

.manager-tools {
    display: flex;
    gap: 10px;
    background: #f1f1f1;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    align-items: center;
    font-size: 0.9em;
}

.manager-tools input,
.manager-tools select {
    padding: 6px;
    font-size: 0.9em;
}

.manager-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8em;
}

.manager-table th {
    background: #333;
    color: white;
    padding: 8px;
    text-align: left;
    font-size: 0.9em;
}

.manager-table td {
    padding: 4px 6px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.edit-input,
.edit-input-small,
.edit-input-bold {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 3px 5px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
}

.edit-input-bold {
    font-weight: bold;
    color: #004c34;
}

.status-select {
    padding: 2px;
    font-size: 1em;
    border-radius: 3px;
    width: 100%;
}

.date-cell {
    color: #666;
    font-size: 0.9em;
    white-space: nowrap;
}

.save-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85em;
}

.save-btn:hover { background: #005a87; }

.save-icon {
    background: none;
    border: none;
    font-size: 1.4em;
    cursor: pointer;
    padding: 0;
}

.reset-btn {
    padding: 10px;
    text-decoration: none;
    color: #666;
    align-self: center;
}

/* Messages d'alerte */
.isa-msg-success,
.isa-msg-error,
.isa-msg-warning {
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    font-size: 1.1em;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in;
}

.isa-msg-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-left: 10px solid #28a745;
}

.isa-msg-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-left: 10px solid #dc3545;
}

.isa-msg-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-left: 10px solid #ffc107;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Charte & Formulaires */
@media (max-width: 768px) {
    .charte-container {
        padding: 20px;
        margin: 10px;
    }
    .objectives-grid {
        grid-template-columns: 1fr;
    }
    .charte-table th,
    .charte-table td {
        padding: 8px;
        font-size: 0.85em;
    }
}

@media (max-width: 600px) {
    .public-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}