/* ===== RESET DE BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* ===== VARIABLES GLOBALES ===== */
:root {
  --color-bg: #f4d5ad;
  --color-text: #1f2937;
  --color-primary: #2563eb;
  --color-secondary: #10b981;
  --color-accent: #f59e0b;
  --font-main: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 1rem;
  --max-width: 1200px;
}

/* ===== STRUCTURE DE PAGE ===== */
body {
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

header,
footer {
  padding: 1rem 0.5rem;
}

main {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ===== TITRES & TEXTES ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* ===== LIENS & BOUTONS ===== */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--color-primary);
}

button {
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button:hover {
  background-color: var(--color-secondary);
}

/* ===== IMAGES ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
    list-style: none;
}

/* ===== GRILLE DE BASE ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ===== UTILITAIRES ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* HEADER  */

header h1, footer h2 {
     font-family: "Caprasimo", serif;
}

/* Logo centré */
.logo {
    display: flex;
    justify-content: center;
}

.logo img{
    width:120px;
}

/* Menu */
.nav ul{
    list-style:none;
    padding:0;
    margin-top:20px;
    margin-bottom: 30px;
    display:flex;
    justify-content:center; /* centre horizontalement */
    gap:30px; /* espace entre les éléments */
}

.nav a{
    text-decoration:none;
    color:#333;
    font-weight:500;
    padding:6px 0;
    border-top:2px solid transparent;
    border-bottom:2px solid transparent;
    transition:0.2s;
}

/* Hover */
.nav a:hover{
    border-top:2px solid #703e0d;
    border-bottom:2px solid #703e0d;
}

/* Page active */
.nav a.active{
    border-top:2px solid #703e0d;
    border-bottom:2px solid #703e0d;
}

/* Bouton Prendre RDV */

.nav-btn {
    text-align: center;
    list-style-type: none;
}

.nav-btn a {
  background-color: #0d6efd; /* bleu style doctolib */
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* hover */
.nav-btn a:hover {
  background-color: #0b5ed7;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


/* HERO  */

.hero{
    position:relative;
    height:400px;
    background-image:url("img/cabinet1.jpeg"); /* ta photo */
    background-size:cover;
    background-position:center;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    margin-bottom: 20px;
}

/* filtre sombre sur l'image */
.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.60);
}

/* texte */
.hero-text{
    position:relative;
    color:rgb(242, 224, 199);
    max-width:80%;
}

.hero h1{
    font-size:38px;
    letter-spacing:2px;
    margin-bottom:15px;
}

.hero p{
    font-size:18px;
    line-height:1.6;
}

/* SERVICES  */

.services {
    padding: 0px 20px;
}

.services_titre{
    margin-top: 0.75rem;
    margin-bottom: 20px;
}

.services_texte {
    margin-bottom: 15px;
}

.services_galerie{
    margin-top: 20px;
    padding: 20px 20px;
    background-color: #caae8c;
}

.services_galerie img{
    width: 200px;
}

.services_galerie ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-around;          
  flex-wrap: wrap;        
  gap: 20px;              
}

.services_galerie li {
  display: flex;
  flex-direction: column; 
  align-items: center;    
  flex: 1 1 150px;        
  max-width: 200px;       
}

.services_galerie img {
  max-width: 100%;        
  height: auto;
  display: block;    
  border-radius: 5%;
}

/* EQUIPE  */

.equipe {
  margin-bottom: 20px;
    padding: 0px 20px;
}

.equipe_titre{
    margin-top: 1.75rem;
    margin-bottom: 20px;
}

.equipe p {
    margin-bottom: 15px;
}

.equipe-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.equipe-btn {
  margin-top: 10px;
}

.membre {
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s;
}

.membre:hover {
  transform: translateY(-5px);
}

.membre img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 3px solid #f0f0f0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.membre img:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.equipe-container .prenom {
  font-weight: 700;
  margin-bottom: 0px;
}

.metier {
  font-weight: 500;
  font-style: italic;
  font-size: 14px;
}

/* LIEU  */
.lieu {
    display: flex;
    justify-content: center;
}

.lieu_titre {
    margin-top: 0.75rem;
    padding: 0px 20px;
}

.lieu_div {
    padding: 20px 50px;
    background-color: #caae8c;
}

.lieu_div ul {
    text-align: center;
}

.lieu_text {
    margin-bottom: 15px;
}

/* CONTACT  */
.contact {
  max-width: 500px;
  margin: 50px auto;
  padding: 20px;
  background-color: #caae8c;
}

.contact h2 {
  text-align: center;
  margin-bottom: 20px;
}

.contact form label {
  display: block;
  margin-top: 10px;
}

.contact form input,
.contact form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.contact form button {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background-color: #1e90ff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.contact form button:hover {
  background-color: #007acc;
}

/* PAGE CABINET et PILATES  */

.cabinet, .pilates {
  padding: 0px 10% 30px 10%;
  text-align: center;
}

.cabinet h2, .pilates h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.cabinet-text, .pilates-text {
  max-width: 800px;
  margin: auto;
  margin-bottom: 20px;
  line-height: 1.6;
}

.pilates-text a {
  color:#0d6efd;
  text-decoration: underline;
}

/* galerie */

.cabinet-galerie, .pilates-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.cabinet-galerie img, .pilates-galerie img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s;
}

.cabinet-galerie img:hover, .pilates-galerie img:hover{
  transform: scale(1.05);
}

.lien-reservation {
  margin-bottom: 20px;
}



/* PAGE PILATES FORMULAIRE  */

#contact {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact form {
  background: white;
  padding: 40px;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contact h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 28px;
}

#contact label {
  font-weight: 500;
  font-size: 14px;
}

#contact input,
#contact textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: border 0.2s, box-shadow 0.2s;
}

#contact input:focus,
#contact textarea:focus {
  outline: none;
  border: 1px solid #0d6efd;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}

#contact textarea {
  resize: vertical;
  min-height: 120px;
}

#contact button {
  margin-top: 10px;
  padding: 14px;
  background: #0d6efd;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

#contact button:hover {
  background: #0b5ed7;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

#contact button:active {
  transform: scale(0.98);
}


/* FOOTER  */

.footer{
  background-color: #caae8c;
}

.footer h3, .footer h2 {
    text-align: center;
}






/* DESKTOP  */

@media (min-width:768px){
.hero{
    height:600px;
}
}

@media (min-width:768px){

.services, .equipe{
    padding: 0px 150px;
}

.lieu{
    display: block;
}

.lieu ul {
    display: flex;
    justify-content: space-around;
}

.lieu_titre {
    margin-top: 0.75rem;
    padding: 0px 150px;
}

}