:root {
    --color-main: rgba(220, 150, 150, 1.0);
    --color-secondary: #f0e9d2;
    --color-menu: rgba(255, 255, 255, 0.7);
    --color-menu-hover: rgba(100, 50, 100, 1.0);
    --color-content-text: #853554;
    --color-content:  rgba(220, 230, 230, 1.0);
}

/* Reset simple */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* Bandeau supérieur : fixé en haut */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 20px;
    min-height: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    background: var(--color-content);
}

header .background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    transition: filter 1.0s ease;
    z-index: 1;
}

header .background.no-blur {
    filter: None;
    transition: filter 1.0s ease;
}

.menu-title {
    position: relative;
    margin: 0 0 10px 0;
    font-size: 50px;
    color: #fff; /* couleur selon ton design */
    text-align: center;
    font-weight: bold;
    text-shadow: 1px 1px 2px var(--color-menu-hover); /* pour améliorer la lisibilité sur fond */
    z-index: 10;
}

/* Menu horizontal desktop */
nav#menu {
    position: relative;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
	flex-wrap: nowrap;
    z-index: 10;
}

ul {
  padding-left: 0;
  list-style-position: inside;
}

li {
  padding-left: 10px;
}

/* Boutons menu */
nav#menu button,
button {
    background: var(--color-menu);
    border: none;
    padding: 25px 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-size: 18px;
    color: var(--color-main);

	/* Alignement vertical + horizontal */
	align-items: center;
	justify-content: center;

    white-space: nowrap;  /* Empêche le retour à la ligne */
    overflow: hidden;     /* Optionnel : masque le texte qui déborde */
    text-overflow: ellipsis; /* Optionnel : ajoute des "..." si le texte est trop long */
	min-height: 60px;
}

button {
    border-style: solid;
    border-width: 1px;
    border-color: var(--color-menu-hover);
    color: var(--color-menu-hover);
}

nav#menu button:hover,
button:hover{
    background: var(--color-menu-hover);
    color: var(--color-main);
}

nav#menu button.active,
button.active {
    background: var(--color-menu-hover);
    color: white;
}

/* Contenu principal */
main#content {
    background-color: var(--color-content);
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 10px;
    border-color: var(--color-content);
    border-width: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: var(--color-content-text);
}

main#content h2 {
    margin-bottom: 10px;
    color: var(--color-menu-hover);
}


.paragraph {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5em;

    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.paragraph-image-container {
    flex: 0 0 30%;
    max-width: 30%;
    margin-right: 1em;
    display: flex;
    justify-content: center; /* pour centrer image verticalement */
}

.paragraph-image {
    border-radius: 8px;
    border: 1px solid var(--color-menu-hover);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.paragraph-text-container {
    flex: 1 1 70%;
    display: block; /* par défaut les h3 et p s'empilent en colonne */
    padding: 0px 10px;
}

.paragraph h3 {
    margin-bottom: 10px;
}

/* --- Style menu hamburger --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    position: absolute;
	top: 15px; left: 20px;
    z-index: 1000;
}

.menu-toggle div {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 1px 1px 2px var(--color-menu-hover); /* pour améliorer la lisibilité sur fond */
}

/* Tous les inputs text/email et textarea prennent 100% largeur */
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
  width: 100%;
  box-sizing: border-box; /* inclut padding et border dans la largeur */
  padding: 10px;
  font-size: 16px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical; /* pour textarea */
}

.error {
    color: red;
    font-weight: bold;
    margin: 10px;
    font-size: 1em;
    display: none;
}

.success {
    color: black;
    font-weight: bold;
    margin: 10px 0;
    font-size: 1em;
    display: none;
}

#captchaExpected {
    display: none;
}

.captcha-container {
    margin-bottom: 15px;
    flex: 1; /* Prend le reste de l’espace disponible */
}

.captcha-image-container {
    display: flex;
    justify-content: flex-start; /* plutôt que 'left', plus standard */
    gap: 10px;
    flex-wrap: wrap; /* permet le retour à la ligne */
    margin-top: 20px;
}

.captcha-image {
    object-fit: cover;
    width: 130px;
    height: auto;
    cursor: pointer;
    border: 1px solid var(--color-menu-hover);
    border-radius: 5px;
}

.captcha-image.selected {
    border: 2px solid var(--color-menu-hover);
    transform: scale(1.1);
}

#captcha-message{
    padding: 0, 0, 0, 20px;
}

/* Responsive - mobile */
@media (max-width: 600px) {
	.menu-title {
		font-size: 20px;
	}

    /* Montrer le bouton hamburger */
    .menu-toggle {
        display: flex;
    }

    /* Masquer le menu par défaut */
    nav#menu {
        position: fixed;
        top: 50px; /* hauteur header */
        left: 0;
        right: 0;
        background: var(--color-content);
        flex-direction: column;
        gap: 10px;
        padding: 0px 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        border-radius: 0 0 10px 10px;
    }

    /* Quand menu actif - max height large pour afficher */
    nav#menu.active {
        padding: 10px;
        max-height: 500px; /* assez grand pour contenir tous les boutons */
    }

    nav#menu button {
        width: 100%;
        text-align: left;
        font-size: 1.1em;
		height: 20px;
    }

    /* Padding du main pour compenser header fixe */
    main#content {
        padding: 15px 10px;
        margin-top: 20px;
    }
	
	header {
		min-height: 50px;
		height: 50px;
	}

    .paragraph {
        flex-direction: column;
        align-items: center;
        padding: 0 1em; /* optionnel, pour éviter que ça touche les bords */
    }

    .paragraph-image-container {
        flex: none;
        max-width: 100%;  /* passe de 80% à 100% */
        width: 100%;
        margin-right: 0;
        margin-top: 1em;
        margin-bottom: 1em;
    }

    .paragraph-image {
        width: 100%; /* largeur pleine, adapte la hauteur auto */
        height: auto;
        max-width: 100%; /* sécurité */
        object-fit: contain;
    }

    .paragraph-text-container {
        flex: none;
        width: 100%;
        text-align: left;
        text-justify: auto;
        padding: 1em;
    }

}

/* Transformation de la croix hamburger lorsque menu actif */
.menu-toggle.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active div:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}