/* Styles pour la page grandes marées */
.gm-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.gm-layout-desktop {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 2rem;
    align-items: start;
}

.gm-content-left {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    min-height: 400px;
}

.gm-content-placeholder {
    text-align: center;
    color: #94a3b8;
    padding: 3rem 1rem;
}

.gm-content-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.gm-page-header {
    text-align: left;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.gm-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0ea5e9;
    letter-spacing: -0.5px;
}

.gm-page-subtitle {
    font-size: 1rem;
    color: #64748b;
}

.gm-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.gm-stat {
    background: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gm-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0ea5e9;
}

.gm-stat-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.gm-calendar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.gm-calendar-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 0.5rem;
    text-align: center;
}

.gm-calendar-month {
    font-size: 1.2rem;
    font-weight: 700;
}

.gm-calendar-body {
    padding: 1.5rem;
}

.gm-calendar-row {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gm-calendar-row:hover {
    background: #f8fafc;
    transform: translateX(5px);
}

.gm-calendar-row.today {
    background: #e0f2fe;
}

.gm-calendar-row.today:hover {
    background: #bae6fd;
}

.gm-calendar-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    justify-content: flex-start;
}

.gm-calendar-day {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.gm-calendar-dayname {
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gm-calendar-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.gm-calendar-saint {
    font-size: 0.95rem;
    color: #475569;
    min-width: 100px;
}

.gm-calendar-coefs {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.gm-coef-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 50px;
    text-align: center;
}

/* Code couleur basé sur le coefficient */
.coef-grande-maree {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.coef-forte {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.coef-moyenne {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.coef-petite {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Modal pour afficher les marées du jour */
.maree-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.maree-modal.active {
    display: flex;
}

.maree-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: calc(100% - 2rem);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    margin: 1rem;
}

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

.maree-modal-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.maree-modal-title {
    font-size: 1rem;
    font-weight: 700;
}

.maree-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.maree-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.maree-modal-body {
    padding: 1.5rem;
}

.gm-intro-block {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.gm-intro-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.gm-intro-block p {
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1rem;
}

.gm-content-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-top: 2rem;
}

.gm-content-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2rem;
    border-bottom: 3px solid #0ea5e9;
    padding-bottom: 0.75rem;
}

.gm-content-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0ea5e9;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.gm-content-section p {
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1rem;
}

.gm-content-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.gm-content-section ul li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    line-height: 1.7;
    color: #475569;
}

.gm-content-section ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0ea5e9;
    font-weight: bold;
}

/* Fix footer width */
footer {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 768px) {
    .gm-page-title {
        font-size: 1.3rem;
    }
    
    .gm-layout-desktop {
        display: flex;
        flex-direction: column;
    }
    
    .gm-page-header {
    text-align: center;
        }
    
    .gm-layout-desktop > div:first-child {
        order: 2;
    }
    
    .gm-calendar {
        order: 1;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .gm-content-left {
        display: none;
    }
    
    .gm-intro-block {
        margin-top: 0;
    }
    
    .gm-calendar-row {
        grid-template-columns: 60px 1fr 1fr;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }
    
    .gm-calendar-day {
        font-size: 1.2rem;
    }
    
    .gm-coef-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
        min-width: 45px;
    }
    
    .gm-intro-block h2,
    .gm-content-section h2 {
        font-size: 1.3rem;
    }
    
    .gm-content-section h3 {
        font-size: 1.1rem;
    }
}
/* =============================================
   CALENDRIER EN GRILLE (style La Baule)
   ============================================= */

/* Sélecteur de mois */
.gm-month-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 2rem 0;
    padding: 1rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gm-month-btn {
    padding: 0.75rem 1.25rem;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gm-month-btn:hover {
    background: #e0f2fe;
    color: #0284c7;
    transform: translateY(-2px);
}

.gm-month-btn.active {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.gm-month-btn.past {
    opacity: 0.5;
    pointer-events: none;
}

/* Calendrier en grille */
.gm-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    padding: 1.5rem;
}

.gm-day {
    background: white;
    border-radius: 12px;
    padding: 1rem 0.5rem;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: default;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gm-day:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.gm-day-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.gm-day-name {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.gm-day-coefs {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.gm-day-coefs .gm-coef {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    min-width: 35px;
}

/* Couleurs selon coefficient */
.gm-day.coef-morte {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.gm-day.coef-morte .gm-day-number {
    color: #94a3b8;
}

.gm-day.coef-petite {
    border-color: #93c5fd;
    background: #eff6ff;
}

.gm-day.coef-petite .gm-day-coefs .gm-coef {
    background: #dbeafe;
    color: #1e40af;
}

.gm-day.coef-moyenne {
    border-color: #60a5fa;
    background: #dbeafe;
}

.gm-day.coef-moyenne .gm-day-number {
    color: #1e40af;
}

.gm-day.coef-moyenne .gm-day-coefs .gm-coef {
    background: #3b82f6;
    color: white;
}

.gm-day.coef-forte {
    border-color: #f97316;
    background: #ffedd5;
}

.gm-day.coef-forte .gm-day-number {
    color: #c2410c;
}

.gm-day.coef-forte .gm-day-coefs .gm-coef {
    background: #f97316;
    color: white;
}

.gm-day.coef-grande-maree {
    border-color: #dc2626;
    background: #fee2e2;
}

.gm-day.coef-grande-maree .gm-day-number {
    color: #991b1b;
}

.gm-day.coef-grande-maree .gm-day-coefs .gm-coef {
    background: #dc2626;
    color: white;
    font-weight: 900;
}

/* Jour aujourd'hui */
.gm-day.today {
    border-color: #0ea5e9;
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.gm-day.today .gm-day-number {
    color: #0ea5e9;
}

/* Légende */
.gm-legend {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gm-legend-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.gm-legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.gm-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
}

.gm-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid;
}

.gm-legend-color.coef-morte {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.gm-legend-color.coef-petite {
    background: #eff6ff;
    border-color: #93c5fd;
}

.gm-legend-color.coef-moyenne {
    background: #dbeafe;
    border-color: #60a5fa;
}

.gm-legend-color.coef-forte {
    background: #ffedd5;
    border-color: #f97316;
}

.gm-legend-color.coef-grande-maree {
    background: #fee2e2;
    border-color: #dc2626;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .gm-month-selector {
        gap: 0.35rem;
        padding: 0.75rem;
    }
    
    .gm-month-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .gm-calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.35rem;
        padding: 0.75rem;
    }
    
    .gm-day {
        padding: 0.5rem 0.25rem;
        min-height: 80px;
        border-radius: 8px;
    }
    
    .gm-day-number {
        font-size: 1.1rem;
    }
    
    .gm-day-name {
        font-size: 0.65rem;
    }
    
    .gm-day-coefs .gm-coef {
        font-size: 0.7rem;
        padding: 0.2rem 0.35rem;
        min-width: 28px;
    }
    
    .gm-legend {
        padding: 1rem;
    }
    
    .gm-legend-items {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .gm-calendar-grid {
        gap: 0.25rem;
        padding: 0.5rem;
    }
    
    .gm-day {
        padding: 0.4rem 0.2rem;
        min-height: 70px;
    }
    
    .gm-day-number {
        font-size: 1rem;
    }
    
    .gm-day-name {
        font-size: 0.6rem;
    }
    
    .gm-day-coefs .gm-coef {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
        min-width: 26px;
    }
}
