:root {
    --blue: #1c2a49;       /* bleu foncé poudré */
    --red: #7a1621;        /* rouge bordeaux foncé */
    --white: #ffffff;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: var(--white);
    color: var(--blue);
    text-align: justify;
	/* background */
	background-color: #f5f6f7; /* gris clair général */
	background-attachment: fixed;
	background-image: url('../pics/puys.svg'); /* chemin relatif depuis racine */
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: cover; /* cover pour remplir proprement */
}
/* fallback / accentuation : couches de dégradés (si SVG absent) 
@supports (background-image: linear-gradient(#000 0)) {
  .mountain-fallback {
    background-color: #f5f6f7;
    background-image:
      linear-gradient(180deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0) 60%),
      linear-gradient(120deg, #cfcfd0 0%, transparent 45%),
      linear-gradient(100deg, #dfdfe0 0%, transparent 50%),
      linear-gradient(90deg, #ececec 0%, transparent 60%);
    background-position: center bottom, left bottom, center bottom, right bottom;
    background-repeat: no-repeat;
    background-size: 100% 40%, 60% 35%, 80% 40%, 70% 38%;
  }
}
*/
main {
    flex: 1; /* occupe tout l'espace restant entre header et footer */
}

/* Header */
header {
    display: flex;
    align-items: center;
    background: var(--blue);
    color: var(--white);
    padding: .6rem 2rem;
}

/* Espacement harmonieux pour titres et paragraphes */
p {
    margin: 0.5rem 2rem; /* 0.5rem vertical, 2rem horizontal */
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    margin: 1rem 2rem 0.5rem 2rem; /* top 1rem, horizontal 2rem, bottom 0.5rem */
    line-height: 1.2;
	text-align: left;
}

a {
	color: var(--blue);
	text-decoration: none;
    font-weight: bold;
}

a:hover {
	color: var(--red);
}

.logo-zone {
    flex-shrink: 0;
    background: var(--white);
    padding: 6px;
    border-radius: 8px;
    position: relative;
    display: inline-block;
}

.logo-zone::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 2px solid var(--red);
    border-radius: 6px;
    pointer-events: none;
    box-sizing: border-box;
}

header .logo {
    height: 90px;
    display: block;
}

header nav {
    flex: 1;
    display: flex;
    justify-content: space-between; /* occupe toute la largeur */
    align-items: center;
    gap: 2rem;
	margin: 0 6rem;
	font-size: 20px;
}


header nav a {
    margin: 0;
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
}

header nav a:hover {
    color: var(--red);
}

/* Hamburger */
.menu-toggle {
    display: none; /* caché sur desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation croix */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* Liseré rouge plein largeur */
.red-strip {
    width: 100%;
    height: 4px;
    background: var(--red);
    margin: 4px 0;
    height: 4px;
    display: block;
    position: relative;
    z-index: 10;
	flex-shrink: 0;
}

/* Hero */
.hero {
    padding: 4rem 2rem;
    text-align: justify;
}

/* Contact form */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
	padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid var(--blue);
    padding: .7rem;
    font-size: 1rem;
}

.contact-form button {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: .8rem;
    cursor: pointer;
}

/* Partners */
.partners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 2rem;
}

.partner-card {
    padding: 1rem;
    background: var(--blue);
    color: var(--white);
    text-align: center;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.player-card {
    background: var(--blue);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
    position: relative;
}

.player-card::before {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--red);
    border-radius: 10px;
    pointer-events: none;
}

.player-photo {
    width: 100%;
    height: 180px;
    background: var(--red);
    margin-bottom: 1rem;
}

/* Avatar général */
.avatar {
    width: 80px;
    height: 120px;
    position: relative;
    margin: auto;
}

.avatar::before {
    content: "";
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #333;
    background-color: #f5c6a5;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Couleurs de peau des avatars */
.avatar1::before  { background-color: #f5c6a5; } /* Romain : blanc */
.avatar2::before  { background-color: #f5c6a5; } /* Maxime : blanc */
.avatar3::before  { background-color: #d9a066; } /* David : métisse */
.avatar4::before  { background-color: #d9a066; } /* Jean : métisse */
.avatar5::before  { background-color: #f5c6a5; } /* Stéphane : blanc */
.avatar6::before  { background-color: #3b2f2f; } /* Faly : noir */
.avatar7::before  { background-color: #f5c6a5; } /* Jérôme : blanc */
.avatar8::before  { background-color: #f5c6a5; } /* Nicolas : blanc */
.avatar9::before  { background-color: #f5c6a5; } /* Luc : blanc */
.avatar10::before { background-color: #f5c6a5; } /* Nicolas : blanc */
.avatar11::before { background-color: #d9a066; } /* Romain : métisse */
/*.avatar12::before { background-color: #f5c6a5; } /*  : blanc */

/* Corps / maillot avec numéro */
.avatar::after {
    content: attr(data-number);
    width: 60px;
    height: 70px;
    border-radius: 8px;
    border: 2px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* Variantes maillot rouge / blanc */
.avatar1::after  { background-color: #7a1621; color: white; }
.avatar2::after  { background-color: #ffffff; color: #7a1621; }
.avatar3::after  { background-color: #7a1621; color: white; }
.avatar4::after  { background-color: #ffffff; color: #7a1621; }
.avatar5::after  { background-color: #7a1621; color: white; }
.avatar6::after  { background-color: #ffffff; color: #7a1621; }
.avatar7::after  { background-color: #7a1621; color: white; }
.avatar8::after  { background-color: #ffffff; color: #7a1621; }
.avatar9::after  { background-color: #7a1621; color: white; }
.avatar10::after { background-color: #ffffff; color: #7a1621; }
.avatar11::after { background-color: #7a1621; color: white; }
.avatar12::after { background-color: #ffffff; color: #7a1621; }

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background: var(--blue);
    color: var(--white);
}

footer a {
    color: var(--white);
	font-weight: normal;
    text-decoration: none;
}

footer a:hover {
    color: var(--red);
}

/* Responsive */
@media (max-width: 600px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.6rem 1rem;
        position: relative;
		z-index: 20; /* nav au-dessus du header */
    }

    header nav {
        display: none;
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100%;       /* juste sous le header */
        left: 0;         /* début à gauche */
        right: 0;        /* fin à droite */
        width: 100%;     /* pleine largeur */
        margin: 0;       /* supprimer toute marge */
        padding: 1rem 0; /* padding vertical seulement */
        background: var(--blue);
        border-radius: 0; 
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        z-index: 20;
    }

    nav a {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
		color: var(--white);
        font-size: 18px;
        margin: 0;       /* supprimer marge éventuelle */
    }

    header nav.show {
        display: flex;
    }

    .menu-toggle {
        display: flex;
		position: relative;
		z-index: 30;
    }

    .avatar {
        width: 60px;
        height: 100px;
    }
    .avatar::before {
        width: 40px;
        height: 40px;
    }
    .avatar::after {
        width: 50px;
        height: 60px;
        font-size: 1rem;
    }
	h1 {
        text-align: left;
        font-size: clamp(1.5rem, 6vw, 2rem); /* min 1.5rem, max 2rem, s’adapte à la largeur */
        line-height: 1.2;
        white-space: normal; /* permet de se couper si vraiment trop long */
    }
}
