/* Général */

body {
    background-color: #FDF5E6;
    font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* En-tête */

.header-container {
    background-color: white;
    width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
}

.header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 00px;
}

.logo {
    font-family: 'Abril Fatface', serif;
    font-size: 60px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    padding-left: 100px;
    padding-right: 100px;
}


/* Contenu principal (Hero) */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 100px;
    gap: 50px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 10px;
    text-align: left;
}

.hero-content p {
	font-family: 'Playfair Display', serif;
	font-weight: bold;
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
    text-align: left;
}


/* Bouton "Commencer l'aventure" */

.cta-button {
    display: inline-block;
    padding: 15px 100px;
    font-size: 30px;
    font-weight: bold;
    color: white;
    background-color: #ED5D3C;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.cta-button:hover {
    background-color: #9C422E;
}


/* Image principale */

.hero-image-container {
    background-color: transparent;
    min-height: auto;
    margin-top: 40px;
}

.hero-image {
    width: 100%;
    border-radius: 10px;
    height: auto;
    display: block;
}


/* Styles pour les écrans de 800px de large ou moins */

@media (max-width: 800px) {
    .logo {
        font-size: 10vw;
        padding-left: 40px;
        padding-right: 40px;
    }
}


/* Page du parcours */

.logo-parcours {
    font-size: 30px;
    padding-left: 100px;
    padding-right: 100px;
	align-self: center;
}

.parcours-container {
	padding: 50px 100px;
}

.parcours-container h1 {
    font-family: 'Playfair Display', serif;
	font-weight: bold;
    font-size: 48px;
    text-align: left;
}

.parcours-container .instruction {
	font-family: 'Playfair Display', serif;
	font-weight: bold;
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
    text-align: left;
}

.etape {
    background-color: #ED5D3C;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.etape-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.etape-title-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.etape-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    color: black;
	margin-bottom: 0px;
	margin-top: -5px;
    font-size: 1.5em;
}

.etape-subtitle {
    font-family: 'Roboto', sans-serif;
    color: black;
	margin-bottom: -5px;
	margin-top: 0px;
    font-size: 1.5em;
    font-weight: 500;
}

.etape-number {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
	font-size: 32px;
    margin-right: 0px;
	margin-left: -3px;
	margin-bottom: -5px;
	margin-top: -5px;
    background-color: #FFDBD2;
    border-radius: 10px;
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.etape-header h2 {
    margin: 0;
    font-size: 20px;
}

.etape-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease-in-out;
}

.etape-content.active {
    max-height: 10000px;
    padding-top: 0;
    padding-bottom: 0;
}

.choix-container {
    background-color: #FFDBD2;
    border-radius: 10px;
    padding: 20px;
	margin-top: 20px;
	margin-bottom: 20px;
	cursor: default;
}

.choix-section {
    margin-bottom: 20px;
}

.choix-titre {
    background-color: #FDBA55;
    color: black;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: bold;
}

.grille-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.boite-image {
    width: 10vw;
    height: 10vw;
    background-color: #EFEFEF;
    border-radius: 10px;
    cursor: pointer;
}

.boite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Style de l'image sélectionnée */
.boite-image.selected {
    box-shadow: 0 0 10px 5px #FDBA55;
    transform: scale(1.05); /* Pour la faire ressortir */
    z-index: 2; /* Pour la faire passer au-dessus */
}

/* Filtre gris pour les images non sélectionnées */
.boite-image:not(.selected) img {
    filter: grayscale(30%);
    transition: filter 5s ease;
}

.recap-button {
    margin-top: 40px;
    align-self: flex-end;
}

.recap-button-container {
    display: flex;
    justify-content: flex-end; /* Aligne le bouton à droite */
    padding: 20px 100px; /* Marges de 100px à gauche et à droite */
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 800px) {
    /* Ajustements pour la page du parcours */
    .parcours-container {
        padding: 20px 40px; /* Réduit les marges pour les téléphones */
    }

    .parcours-container h1 {
        font-size: 32px; /* Réduit la taille du titre */
    }

    .parcours-container .instruction {
        font-size: 16px; /* Réduit la taille de la phrase d'instruction */
    }

    .etape {
        padding: 15px; /* Réduit l'espace dans les tuiles */
    }

    .etape-header h2 {
        font-size: 18px; /* Réduit la taille du titre de l'étape */
    }
	.boite-image {
        width: min(50vw, 140px);
        height: min(50vw, 140px);
    }
}


/* Page de récapitulatif */
.recap-page-container {
    padding: 20px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.recap-page-container h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    text-align: left;
    margin-bottom: 10px;
}

.recap-page-container .instruction {
	font-family: 'Playfair Display', serif;
	font-weight: bold;
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
    text-align: left;
}

.logo-recap {
    font-size: 30px;
    padding-left: 100px;
    padding-right: 100px;
	align-self: center;
}

.recap-etape {
    margin-bottom: 30px;
    background-color: #FFDBD2;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
	padding: 0px 50px;
}

.recap-header {
    display: flex;
    align-items: flex-start;
	margin-left: -65px;
}

.recap-etape-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    color: black;
    margin-bottom: 0px;
    margin-top: -5px;
    font-size: 1.5em;
}

.recap-etape-subtitle {
    font-family: 'Roboto', sans-serif;
    color: black;
    margin-bottom: -5px;
    margin-top: 0px;
    font-size: 1.5em;
    font-weight: 500;
}

.recap-number-container {
    background-color: #ED5D3C;
    border-radius: 10px;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.recap-number {
    background-color: #FFDBD2;
    border-radius: 10px;
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
	font-size: 32px;
}

.recap-choix-container {
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
    justify-content: center;
	margin-top: -50px;
}

.recap-choix-titre {
    background-color: #FDBA55;
    color: black;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	position: relative;
}

.recap-content-grid {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.recap-item {
    text-align: center;
}

.recap-image-box {
    width: 200px;
    height: 200px;
    background-color: #EFEFEF;
    border-radius: 10px;
    margin-top: -15px;
}

@media (max-width: 800px) {

    /* Règle pour le logo */
    .logo-recap {
        font-size: 24px;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Règle pour le conteneur principal de la page */
    .recap-page-container {
        padding: 20px; /* Réduit l'espace autour du contenu */
    }

    /* Réduit la taille du titre principal */
    .recap-page-container h1 {
        font-size: 32px;
    }

    /* Réduit la taille des titres de sous-catégories */
    .recap-etape-title,
    .recap-etape-subtitle {
        font-size: 1.2em;
    }
	
	.recap-etape {
		margin-bottom: 50px;
		padding: 10px 0px;
	}

    /* Ajuste la taille de l'émoji et de son conteneur */
    .recap-number-container {
        width: 50px;
        height: 50px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    }
	
    .recap-number {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    /* Ajuste la marge de l'en-tête de l'étape */
    .recap-header {
        margin-top: -30px;
        margin-left: -15px; /* Réduit la marge négative pour ne pas déborder */
    }

    /* Optimise l'espacement entre les blocs de choix */
    .recap-choix-container {
        gap: 20px; /* Réduit l'espace entre les boîtes de choix */
        justify-content: center;
        margin-top: 0px;
    }

    /* Ajuste la taille des boîtes d'images */
    .recap-choix-titre {
        font-size: 0.9em;
    }
    .recap-image-box {
        width: 150px;
        height: 150px;
        margin-top: -15px;
    }

    /* Ajuste la taille du bouton PDF */
    .cta-button {
        font-size: 20px;
        padding: 10px 40px;
    }
}

/* Génération PDF */

/* REMPLACEZ L'ANCIEN BLOC @media print PAR CELUI-CI À LA FIN DE STYLES.CSS */

@media print {
    /* --- FIDÉLITÉ VISUELLE --- */
    
    /* Force le navigateur à imprimer les couleurs de fond */
    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Cache les éléments non désirés dans le PDF */
    .header-container, 
    .recap-page-container > h1, 
    .recap-page-container > .instruction, 
    #bouton-pdf {
        display: none !important;
    }


    /* --- MISE EN PAGE SUR UNE SEULE FEUILLE AVEC MARGES --- */
    
    /* On supprime les marges par défaut de la page */
    body, html {
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
    }

    /* On définit des marges latérales pour notre contenu */
    #contenu-a-imprimer {
        padding: 0 0px; /* Ajoute 40px de marge à gauche et à droite */
    }

    /* On réduit la taille des éléments pour qu'ils tiennent sur la page */
    .recap-etape {
        transform: scale(0.85); /* Réduit la taille de chaque bloc étape */
        transform-origin: top center; /* La réduction se fait depuis le centre-haut */
        margin-bottom: -20px; /* Compense l'espace créé par la réduction de taille */
        page-break-inside: avoid; /* Empêche les coupures au milieu d'un bloc */
    }

    /* On enlève les ombres qui peuvent mal s'imprimer */
    .recap-etape, .recap-number-container, .recap-choix-titre {
        box-shadow: none !important;
    }
}