/Volumes/home-simon/projet_meteo_v2/static/css/carte_sun_tides.css/* =====================================================
   BLOCS RAPIDES — CARTES SOLEIL & MARÉES
   Structure :
   1. Variables globales
   2. Layout général des blocs rapides
   3. Styles généraux (communs)
   4. Carte Soleil
   5. Carte Marées
   6. Responsive
===================================================== */

/* ========== 1. Variables globales ========== */
:root {
    --color-sun: #ffd34c;
    --color-tide: #4dc3f6;
}

/* ========== 2. Layout général des blocs rapides ========== */
/* Objectif : conserver 2 petites cartes “compactes” (comme iPhone portrait),
   même sur tablette paysage, en limitant la largeur totale + gouttière. */
.blocs-infos-rapides {
    /* même logique de gouttière que tes autres cartes */
    --card-gutter: clamp(0.75rem, 3vw, 1.15rem);

    width: min(calc(100% - (2 * var(--card-gutter))), 500px);
    margin: 0 auto clamp(0.55rem, 2vw, 0.75rem);

    box-sizing: border-box;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(150px, 44vw, 220px), 1fr));
    gap: clamp(0.5rem, 2vw, 0.9rem);
}

/* ========== 3. Styles généraux des cartes (communs) ========== */
.blocs-infos-rapides .carte-info {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1.7em;
    box-shadow: 0 5px 14px rgba(16, 24, 40, 0.16);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    padding: clamp(0.55rem, 2.2vw, 0.7rem) clamp(0.75rem, 3vw, 1rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Titres communs Soleil / Marées */
.blocs-infos-rapides .carte-info .info-titre {
    font-size: 1.1em;
    font-weight: 700;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45em;
    width: 100%;
    margin-bottom: 0.5em;
}

.blocs-infos-rapides .soleil-more,
.blocs-infos-rapides .maree-more {
    color: #2d64a0;
    margin-left: auto;
    margin-right: 1em;
    white-space: nowrap;
    font-size: 0.7em;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

/* Lignes communes */
.blocs-infos-rapides .info-lignes {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    width: 100%;
}

/* ========== 4. Carte Soleil ========== */

.blocs-infos-rapides .carte-info.carte-soleil .info-titre {
    color: var(--color-sun);
}

/* Ligne lever / coucher */
.blocs-infos-rapides .info-ligne-soleil {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 0.45em;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.blocs-infos-rapides .icone-lever-img,
.blocs-infos-rapides .icone-coucher-img {
    height: 1.1em;
    vertical-align: middle;
    margin: 0 0.1em;
}

/* Durée du jour */
.blocs-infos-rapides .duree-jour {
    margin-top: 0.52em;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.8;
    font-style: italic;
    width: 100%;
}

/* ========== 5. Carte Marées ========== */

.blocs-infos-rapides .carte-info.carte-maree .info-titre {
    color: var(--color-tide);
}

.blocs-infos-rapides .carte-info.carte-maree .info-titre i {
    color: inherit;
}

.blocs-infos-rapides .carte-info.carte-maree .info-lignes div {
    display: flex;
    align-items: center;
    gap: 0.45em;
    font-size: clamp(1em, 1em + 0.2vw, 1.03em);
    line-height: 1.25;
}

/* Flèches */
.blocs-infos-rapides .fleche-maree {
    font-size: 1em;
    margin-left: 0.1em;
    font-weight: bold;
    vertical-align: middle;
    color: var(--color-tide);
    flex-shrink: 0;
    max-width: 1.3em;
    overflow: hidden;
}

/* Couleur selon type */
.blocs-infos-rapides .fleche-maree[title='Marée haute'] {
    color: #69e2ff;
}

.blocs-infos-rapides .fleche-maree[title='Marée basse'] {
    color: #b5e2fa;
}

.blocs-infos-rapides .fleche-maree i {
    font-size: 0.85em !important;
    line-height: 1;
    display: flex;
    align-items: center;
    color: inherit;
    font-weight: 900;
}

.blocs-infos-rapides .niveau-maree {
    color: #b5e2fa;
    font-size: 0.98em;
    display: flex;
    align-items: center;
    gap: 0.07em;
}

.blocs-infos-rapides .unite-maree {
    font-size: 0.92em;
    opacity: 0.7;
    margin-left: 0.09em;
}

/* Lien "prochaine marée" */
.blocs-infos-rapides .info-maree-vide {
    color: #dbeafd;
    font-size: 0.8em;
    font-style: italic;
    display: block;
    text-decoration: underline;
    cursor: pointer;
    opacity: 0.75;
    transition: color 0.18s;
}

.blocs-infos-rapides .info-maree-vide:hover,
.blocs-infos-rapides .info-maree-vide:focus {
    color: #3a81d6;
    opacity: 1;
}

.blocs-infos-rapides .info-maree-vide-wrapper {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    min-height: 1.25em; /* cohérent avec line-height des lignes marées */
}

/* "Prochaine marée" : alignement + pas d'effet "Voir plus" */
.blocs-infos-rapides .carte-info.carte-maree .info-lignes .info-maree-vide {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: inherit; /* même taille que la ligne */
    line-height: inherit;
    margin-left: 0; /* au cas où la classe .maree-more est encore présente */
    margin-right: 0;
}

/* Si le lien a encore la classe .maree-more, on neutralise ses marges dans la liste */
.blocs-infos-rapides .carte-info.carte-maree .info-lignes .info-maree-vide.maree-more {
    margin-left: 0;
    margin-right: 0;
}

/* Petit chevron discret après le texte (sans JS) */
.blocs-infos-rapides .carte-info.carte-maree .info-lignes .info-maree-vide::after {
    content: '›';
    opacity: 0.7;
}
