@charset "utf-8";
/* CSS Document */

body{
	width: 100vw;
	height: 100vh;
	background-image: url("../img/backgroundforms.webp");
	 background-size: cover;
  	background-repeat: no-repeat;
  	background-position: center;
}

header, footer{
	height: auto;
}

main{
	display: flex;
	justify-content: center;
    align-items: center;
}

section{
	width: 100%;
	padding-left: 5rem;
	padding-right: 5rem;
	margin-top: 0;
}

form{
	width: 80vw;
	margin: 0;
    top: 50%;
	bottom: 50%;
    left: 50%;
    padding: 24px;
    background: #fff;
    border: 0;
    border-radius: clamp(16px, 1.67vw, 32px);;
    box-shadow: none;
    box-sizing: border-box;
    z-index: 80;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

textarea[name="motivation"] {
    width: 100%;
    min-height: 200px; /* Hauteur par défaut */
    resize: vertical; /* L'utilisateur peut l'agrandir seulement en hauteur */
    font-size: 1rem; /* Taille du texte (ex: 16px) */
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

textarea[name="demande"] {
    width: 100%;
    min-height: 200px; /* Hauteur par défaut */
    resize: vertical; /* L'utilisateur peut l'agrandir seulement en hauteur */
    font-size: 1rem; /* Taille du texte (ex: 16px) */
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.btn-upload {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;           /* largeur uniforme */
   height: clamp(2.5rem, calc(0.25rem + 2vw), 4rem); /* Pour la hauteur */;
    background-color: #1A1A1A; /* couleur Sixt */
    color: #fff;
    font-size: 14px;
    font-family: 'HelveticaNowDisplayMedium', sans-serif;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 5px;
    text-align: center;
}

.btn-upload:hover {
    background-color: #ff5000;
}

.file-name {
    font-size: 12px;
    color: #555;
    text-align: center;
    display: block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-name {
    font-size: 12px;
    color: #555;
    text-align: center;
    display: block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Overlay gris qui bloque l'écran */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Conteneur blanc centré */
.progress-container {
    background: #fff;
    width: 50vw;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 10px;
    position: relative;
}

/* Cercle en arrière-plan */
.bg-circle {
    fill: none;
    stroke: #ddd;
    stroke-width: 8;
}

/* Cercle orange */
.fg-circle {
    fill: none;
    stroke: #ff5000;
    stroke-width: 8;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.2s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Texte au centre du cercle */
.progress-text {
    position: absolute;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

/* Cacher l'overlay quand il est inactif */
.hidden{
    display: none;
}

.section-hidden{
	 display: none;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.section-visible {
    display: block;
    height: auto;
    overflow: visible;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    cursor: pointer;
    gap: 0.5rem;
    color: #333;
}

/* Masquer la checkbox native */
.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Effet au survol */
.checkbox-group input[type="checkbox"]:hover {
    border-color: #ff5000;
}

/* Effet quand cochée */
.checkbox-group input[type="checkbox"]:checked {
    background-color: #ff5000;
    border-color: #ff5000;
}

/* Icône check blanc */
.checkbox-group input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
}

.form-group label {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #888;
    background: white;
    padding: 0 4px;
    transition: 0.2s ease;
    pointer-events: none;
}

/* Quand le champ est en focus ou rempli */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 12px;
    color: #ff5000;
}

.progress-container svg {
    width: 100px;
    height: 100px;
}

.bg-circle {
    fill: none;
    stroke: #ddd;
    stroke-width: 10;
}

.fg-circle {
    fill: none;
    stroke: orange;
    stroke-width: 10;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.2s linear;
}

.progress-text {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.identite, .lieux, .paiement{
	padding-top: clamp(32px, 3.54vw, 68px);
}

.lieux{
	display: flex;
	flex-direction: row;
	gap: 2rem;
	justify-content: space-between;
}

.paiement{
	display: flex;
	flex-direction: row;
	gap: 2rem;
	justify-content: space-around;
}

.grid3{
	padding-top: 2rem;
	display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
  gap: 2rem;
}

/* === Tablet 600px–1024px === */
@media (min-width: 600px) and (max-width: 1024px) {
	.grid2, .grid3{
		display: flex;
		flex-direction: column;
	}

	.lieux{
		display: flex;
		flex-direction: column;
		gap: 2rem;
	}
}

@media (min-width: 300px) and (max-width: 599px) {
	section{
		padding-left: 0;
		padding-right: 0;
	}
	
	.grid2, .grid3{
		display: flex;
		flex-direction: column;
	}
	
	.lieux, .paiement{
		display: flex;
		flex-direction: column;
		gap: 2rem;
	}
}