/* ============================================================
   PAGE IDENTITÉ
============================================================ */
.page-identity {
    margin-top: 150px;
    padding: 20px 0 40px;
    width: 100%;
    color: #e8f0f8;
    text-align: center;
    font-family: 'Segoe UI', Arial, sans-serif;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.fish-title {
    font-size: 2.3rem;
    font-weight: bold;
    color: #00eaff;
    margin-bottom: 45px;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.45);
}

/* Ligne titre + bouton retour COLLÉS */
.fish-title-inline {
    display: inline-flex;
    align-items: center;
    gap: 18px;        /* espace entre Sandres et le bouton */
    margin-bottom: 45px;
}

/* Bouton retour */
.back-icon {
    width: 70px;          /* icône plus large */
    height: auto;         /* garde les proportions → plus de déformation */
    opacity: 0.9;
    cursor: pointer;
    filter: drop-shadow(0 0 8px #00eaff);
    transition: transform 0.2s ease, opacity 0.2s ease;
}


.back-icon:hover {
    transform: scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 12px #00eaff);
}

/* ============================================================
   GRILLE 3 CARTES (alignées et centrées)
============================================================ */
.cards-row {
    display: flex;
    flex-wrap: wrap;          /* 🔥 permet de passer à la ligne */
    justify-content: center;  /* centre parfaitement les lignes */
    gap: 40px;                /* espace régulier entre cartes */
    max-width: 1400px;        /* largeur max de la grille */
    margin: 0 auto;           /* centre le conteneur */
    width: 100%;              /* prend toute la largeur possible */
}



/* ============================================================
   CARTE D'IDENTITÉ
============================================================ */
.fish-card-horizontal {
    background: #10263d;
    border-radius: 20px;
    padding: 18px 22px;        /* moins de padding → carte moins haute */
    width: 100%;
    max-width: 360px;          /* cartes moins larges */
    box-shadow: 0 0 24px rgba(0, 234, 255, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fish-card-horizontal:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 32px rgba(0, 234, 255, 0.55);
}

/* ------------------------------------------------------------
   En-tête de carte : titre à gauche, logo à droite
------------------------------------------------------------ */
.fish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #00eaff;
    font-size: 0.95rem;        /* plus petit que tout à l’heure */
    margin-bottom: 12px;       /* moins de vide */
}

.fish-header .id-logo {
    height: 42px;              /* logo un peu plus gros */
    flex-shrink: 0;
    opacity: 0.95;
}

/* ------------------------------------------------------------
   Corps de la carte
------------------------------------------------------------ */
.fish-body {
    display: flex;
    align-items: flex-start;   /* texte aligné en haut de la photo */
    gap: 18px;
}

/* Photo du poisson */
.fish-photo-h img {
    width: 135px;              /* un peu plus grande */
    height: 135px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid #00eaff;
    box-shadow: 0 0 14px rgba(0, 234, 255, 0.35);
}

/* Texte d’infos */
.fish-info-h {
    flex: 1;
    text-align: left;
}

.fish-info-h p {
    margin: 3px 0;             /* très peu d’espace entre les lignes */
    font-size: 0.95rem;
}

/* Bouton */
.btn-fish {
    margin-top: 10px;
    background: #00bcd4;
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.6);
    font-size: 0.9rem;
}

.btn-fish:hover {
    background: #00eaff;
}

/* ============================================================
   POPUP (si tu l’utilises plus tard)
============================================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
}

.modal-content {
    background: #10263d;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 85%;
    max-width: 750px;
    box-shadow: 0 0 30px rgba(0,234,255,0.5);
    color: white;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
    color: #00eaff;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1200px) {
    .cards-row {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
}

@media (max-width: 800px) {
    .cards-row {
        grid-template-columns: 1fr;
    }

    .fish-card-horizontal {
        max-width: 380px;
        margin: 0 auto;
    }

    .fish-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .fish-info-h {
        text-align: center;
 
    }

/* === CORRECTION PC : CENTRER PARFAITEMENT LES 3 CARTES === */
.cards-row {
    display: flex;
    justify-content: center;        /* 🔥 centre tout */
    gap: 40px;                       /* espace régulier */
    width: 100%;                     /* prend toute la place */
    max-width: 1400px;               /* largeur totale idéale */
    margin: 0 auto;                  /* 🔥 centre le conteneur */
    }
}

/* === FORCE LE CENTRAGE MOBILE === */
@media screen and (max-width: 600px) {

    /* Rend visible le titre sous le header */
    .page-identity .fish-title {
        display: block !important;
        margin-top: 140px !important;
        margin-bottom: 25px !important;
        text-align: center !important;
        font-size: 1.7rem !important;
        width: 100% !important;
    }

    /* Conteneur général */
    .page-identity {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
        padding-bottom: 100px !important;   /* espace avant footer */
    }

    /* Grille des cartes */
    .cards-row {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 auto !important;
        gap: 20px !important;
    }

    /* Carte */
    .fish-card-horizontal {
        width: 92% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        padding: 18px !important;
        border-radius: 18px !important;
    }

    /* Header */
    .fish-header {
        width: 100% !important;
        text-align: left !important;
    }

    .fish-header .id-logo {
        right: 0 !important;
        top: -4px !important;
        height: 34px !important;
    }

    /* Body */
    .fish-body {
        flex-direction: row !important;
        gap: 15px !important;
        width: 100% !important;
        align-items: flex-start !important;
    }

    .fish-photo-h img {
        width: 100px !important;
        height: 100px !important;
        object-fit: cover !important;
    }

    /* Texte */
    .fish-info-h {
        width: calc(100% - 100px) !important;
    }

    .fish-info-h p {
        font-size: 0.82rem !important;
        margin: 2px 0 !important;
    }

    /* Bouton */
    .btn-fish {
        display: inline-block !important;
        margin-top: 6px !important;
        font-size: 0.85rem !important;
        padding: 7px 14px !important;
    }


    .fish-title-inline {
        width: 100%;
        flex-direction: column;   /* Titre en haut, bouton en dessous */
        align-items: center;      /* Centre parfaitement */
        gap: 10px;                /* Espace propre entre titre et bouton */
        margin-bottom: 25px;      /* Ajustement pour mobile */
    }

    .back-icon {
        width: 52px;              /* Taille adaptée au mobile */
        height: auto;
    }
    .fish-header-center {
    justify-content: space-between;
    align-items: center;
}

.fish-header-text {
    text-align: center;
    flex: 1;
}

.id-logo-large {
    height: 65px;
}

}



