/* Déclaration des polices */
@font-face {
    font-family: 'MyriadPro';
    src: url('../font/MyriadPro-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Costa';
    src: url('../font/Typofonderie - Costa Std.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Style de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MyriadPro', 'Arial', sans-serif;
    line-height: 1.6;
    color: #1D1D1D;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* En-tête */
header {
    background-color: #fff;
    padding: 2rem 0;
    margin-bottom: 1rem;
}

header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

header img {
    max-width: 100px;
    margin-bottom: 1rem;
}

header h1 {
    font-family: 'Costa', 'Arial', sans-serif;
    font-size: 2.2rem;
    color: #1D1D1D;
    font-weight: normal;
}


/* Titres principaux */
main h2 {
    font-family: 'Costa', 'Arial', sans-serif;
    text-align: center;
    margin: 2rem 0;
    font-size: 1.8rem;
    font-weight: normal;
}

/* Section tireuses */
.Tireuses {
    padding: 1rem 0 3rem;
}

.Tireuses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.Tireuses-card {
    background-color: #CCA356;
    padding: 1.5rem;
    padding-top: 3rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    cursor: pointer;
}

.Tireuses-card:hover {
    background-color: rgba(204, 163, 86, 0.7); /* #CCA356 avec 30% de transparence */
}

/* Lien vers la page de détail */
.tireuse-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.Tireuses-card img {
    max-width: 85%;
    height: 180px; /* Hauteur fixe pour toutes les images */
    object-fit: contain; /* Préserve les proportions sans déformer l'image */
    margin-bottom: 1rem;
    position: relative;
    top: -40px;
    margin-bottom: -20px;
}

.Tireuses-card h3 {
    font-family: 'Costa', 'Arial', sans-serif;
    font-weight: normal;
    font-size: 1.3rem;
    color: #fff;
    text-align: center;
}

/* Section numéro de tireuse */

.nb-tireuse h2 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.nb-tireuse input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.3); /* #CCA356 avec 30% de transparence */
    color: #fff;
    border: 1px solid #fff;
    border-radius: 10px;
}

.nb-tireuse p {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Section instructions supplémentaires */
.autres-instructions {
    padding: 1rem 0 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nb-tireuse, .autres-instructions-card {
    background-color: #CCA356;
    width: 100%;
    max-width: 1200px;
    margin: 1.5rem 0;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box;
}

.autres-instructions-card h2 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Boutons */
.btn {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.3);
    color: #1D1D1D;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'MyriadPro', 'Arial', sans-serif;
    border-radius: 10px;
    text-decoration: none;
}

.btn:hover {
    background-color: #fff;
    color: #1D1D1D;
}

/* Styles pour la page de détail de la tireuse */
.back-button {
    display: inline-block;
    margin: 1.5rem 0;
    color: #1D1D1D;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.back-button:hover {
    color: #CCA356;
}

.tireuse-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.tireuse-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.tireuse-image img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
}

.tireuse-info {
    flex: 1;
    min-width: 300px;
}

.tireuse-info h2 {
    margin-bottom: 1.5rem;
    color: #1D1D1D;
    font-family: 'Costa', 'Arial', sans-serif;
    font-weight: normal;
}

.tireuse-info ul {
    list-style-type: none;
}

.tireuse-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.instructions h2, .troubleshooting h2 {
    font-family: 'Costa', 'Arial', sans-serif;
    font-weight: normal;
    margin: 2rem 0 1.5rem;
    color: #1D1D1D;
}

.instruction-step, .problem {
    background-color: #f8f8f8;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #CCA356;
}

.instruction-step h3, .problem h3 {
    margin-bottom: 1rem;
    color: #1D1D1D;
}

.instruction-step img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    display: block;
    margin: 1rem auto;
}

.instruction-step video {
    width: 300px;
    height: 300px;
    max-width: 100%;
    object-fit: cover;
    display: block;
    margin: 1rem auto;
}

.instruction-step ol, .instruction-step ul,
.problem ol, .problem ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.instruction-step li, .problem li {
    margin-bottom: 0.5rem;
}

.changement-de-fut {
    padding: 1rem 0 3rem;
}

.changement-de-fut-info {
    background-color: #f8f8f8;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #CCA356;
}

.changement-de-fut-info h2 {
    margin-bottom: 1rem;
    color: #1D1D1D;
}

.changement-de-fut-info p {
    margin-bottom: 1rem;
}

.changement-de-fut-info button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'MyriadPro', 'Arial', sans-serif;
    border-radius: 10px;
}

.changement-de-fut-info button:hover {
    background-color: #fff;
    color: #1D1D1D;
}

.changement-de-fut-info a.btn {
    display: block;
    width: 100%;
    padding: 1rem;
    margin: 1.5rem auto 0.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'MyriadPro', 'Arial', sans-serif;
    background-color: #CCA356;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.changement-de-fut-info a.btn:hover {
    background-color: #b38d3f;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}


/* Pied de page */
footer {
    background-color: #fff;
    color: #1D1D1D;
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 992px) {
    .Tireuses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        padding-left: 0;
        padding-right: 0;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .Tireuses-grid {
        grid-template-columns: 1fr;
    }
    
    .nb-tireuse, .autres-instructions-card {
        padding: 1.5rem;
    }
}
