/* ------------------- PAGE DÉTAIL PFT ------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Google Sans Code", monospace, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #2c3e50;
}

/* Image de couverture */
.cover {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}


.cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
}

/* Conteneur principal */
.container {
    padding: 40px;
    max-width: 1000px;
    margin: -50px auto 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

/* Logo */
.logo {
    max-height: 120px;
    max-width: 100%;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Titre principal */
h2 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 700;
    border-bottom: 4px solid #CC0303;
    padding-bottom: 15px;
    display: inline-block;
}

/* Sous-titres */
h3 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, #CC0303, #ff4444);
    border-radius: 5px;
}

/* Informations */
.info {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    line-height: 1.8;
}

.info:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.info strong {
    color: #2c3e50;
    font-weight: 600;
    display: inline-block;
    min-width: 150px;
}

/* Liens */
.info a,
.container > a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.info a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.info a:hover::after {
    width: 100%;
}

.info a:hover {
    color: #764ba2;
}

/* Badges Oui/Non */
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-oui {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.badge-non {
    background: linear-gradient(135deg, #e74c3c, #ec7063);
    color: white;
}

/* Bloc responsables */
.info.responsable {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-left-color: #764ba2;
    padding: 20px;
}

.info.responsable strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #764ba2;
}

/* Bloc adresse */
.info.adresse {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(46, 204, 113, 0.1));
    border-left-color: #27ae60;
}

/* Bouton retour */
.container > a[href="carte.php"] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(135deg, #CC0303, #ff4444);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(204, 3, 3, 0.3);
    font-size: 1.05em;
}

.container > a[href="carte.php"]::before {
    content: '←';
    font-size: 1.3em;
    transition: transform 0.3s ease;
}

.container > a[href="carte.php"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(204, 3, 3, 0.5);
}

.container > a[href="carte.php"]:hover::before {
    transform: translateX(-5px);
}

.container > a[href="carte.php"]::after {
    display: none;
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeInUp 0.6s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .cover {
        height: 200px;
    }

    .container {
        padding: 30px 20px;
        margin: -30px 15px 30px;
        border-radius: 20px;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.4em;
        margin-top: 30px;
    }

    .info {
        padding: 12px 15px;
    }

    .info strong {
        display: block;
        min-width: auto;
        margin-bottom: 5px;
    }

    .logo {
        max-height: 80px;
    }

    .container > a[href="carte.php"] {
        width: 100%;
        justify-content: center;
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    .cover {
        height: 150px;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.2em;
    }
}

/* Amélioration visuelle si pas d'image de couverture */
.cover:empty {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Style pour les coordonnées de contact */
.info a[href^="mailto:"] {
    color: #e91e63;
}

.info a[href^="mailto:"]::after {
    background: linear-gradient(90deg, #e91e63, #f06292);
}

.info a[href^="mailto:"]:hover {
    color: #c2185b;
}