/* Reset & variables */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
  font-family: "Raleway", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.6; 
  color: #333;
}

:root {
  --bleu: #0063a5;
  --orange: #e97f00;
  --fond: #fdfaf7;
  --texte: #243046;
}

/* GLOBAL */
/* Fond inspiré flyer */
body {
  margin: 0;
  color: var(--texte);
  background-color: var(--fond);
}

main {
  background-image: url(../images/fond.png);
  background-attachment: fixed; /* L'image reste immobile au scroll */
  background-size: cover;       /* Couvre toute la zone */
  background-position: center;  /* Centrée */
  background-repeat: no-repeat;
  min-height: 100vh;
}

h1, h2, h3 {
  font-weight: 600; /* ou 700 pour plus d'impact */
}
strong {
  font-weight: 600;
}
/* HEADER */
/* Header qui se cache */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: transform 0.3s ease;
  overflow: visible;
}
.header.hidden { transform: translateY(-100%); }

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--bleu);
}

.nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav a { 
  color: var(--bleu); 
  text-decoration: none; 
  transition: color 0.3s;
}
.nav a:hover { color: var(--orange); }

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* INTRO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--bleu);
  padding: 2rem;
}

.hero-content {
  max-width: 75%; 
  width: 100%;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
}
.hero p { 
  font-size: 1.3rem; 
  max-width: 600px;
  margin: 0 auto 2rem;
}

.liste-fleches {
  list-style: none;
  padding-left: 0.5rem;      
  margin: 0.5rem 0 0;    
}

.liste-fleches li {
  position: relative;
  margin: 0;
  padding-left: 1.5rem;        
}

.liste-fleches li::before {
  content: "➜";               
  position: absolute;
  left: 0;
  top: 0;
  color: #444;              
  font-weight: 600;
}

/* BOUTONS */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  border: 2px solid;
}
.btn-primary {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}
.btn-primary:hover {
  background: white;
  color: var(--orange);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: black;
  border-color: var(--orange);
  margin: 1rem auto ;
}

/* SECTIONS */
.section {
  padding: 8rem 0;
  background: rgba(255,255,255,0.9);
  margin: 8rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--bleu);
}

/* QUI JE SUIS */
.qui-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}
.portrait-placeholder img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 20px;
}

/* OFFRES */
.offres-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.offre-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: transform 0.5s;
  background: whitesmoke;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.offre-card:hover { 
  transform: translateY(-10px); 
}

.offre-card.is-expanded {
  grid-row: span 2;
  height: auto;
}

.card-front {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 490px;
}

.offre-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  /*justify-content: space-between;*/
  gap: 1rem;
  padding: 0 2rem 2rem 2rem;
}

.offre-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--orange);
  margin-top: auto;
  height: 2rem;
  display: flex;
  align-items: center;
}

.offre-cpf {
  display: flex;
  flex-direction: row;
  align-items:center;
  text-decoration: none;
  height: 60px;
  justify-content: center;
}

.offre-cpf img {
  max-width: 60px;
  margin-right: 10px;
}

.card-flip {
  margin: 1.5rem auto 1rem; /* centre horizontalement */
  background: var(--orange);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  width: fit-content;
  transition: all 0.2s;
}

.card-flip:hover {
  background: #d96a00;
  transform: translateY(-1px);
}

.card-flip[aria-expanded="true"] {
  background: #666;
}

.card-flip[aria-expanded="true"]:hover {
  background: #555;
}

.card-back {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid #eee;
}

.card-back[hidden] {
  display: none; /* Remplace hidden pour être sûr */
}
/* Carousel */
.carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.carousel-track {
  display: flex;
  overflow: hidden;
  scroll-snap-type: x mandatory;
}

.testimonial {
  display: none;
  flex: 0 0 100%;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
  min-height: 400px;
  scroll-snap-align: center;
}

.testimonial.actif {
  display: flex;
}

.testimonial img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.testimonial-content p {
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: var(--texte);
  position: relative;
  padding: 0 1rem;
}

.testimonial-content p::before {
  content: '"';
  font-size: 4rem;
  color: var(--orange);
  position: absolute;
  left: -0.5rem;
  top: -0.5rem;
  line-height: 1;
}

.testimonial-content p::after {
  content: '"';
  font-size: 4rem;
  color: var(--orange);
  position: absolute;
  right: -0.5rem;
  bottom: -1.5rem;
  line-height: 1;
}

.testimonial cite {
  font-size: 1rem;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: white;
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: -2rem; /* Plus à gauche */
}

.carousel-btn.next {
  right: -2rem; /* Plus à droite */
}

/* Contact */
.contact .container {
  position: relative;
  z-index: 1;
}

.contact h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--bleu);
}

.contact-direct {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-direct p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-direct p strong {
  font-size: 1.3rem;
}

.contact-form {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(15px);
  padding: 2.5rem;
  border-radius: 2.5rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 1rem 1.5rem;
  border: 2px solid #e5e5e5;
  border-radius: 1.2rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
  background: rgba(255,255,255,0.8);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(233,127,0,0.1);
  transform: translateY(-1px);
}

.contact-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
  min-height: 120px;
}

.contact-form button[type="submit"] {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* FOOTER */
.site-footer {
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 2rem;
  align-items: start;
  font-size: 0.95rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.footer-brand img {
  width: 60px;
  height: auto;
}

.footer-title .marque {
  display: block;
  font-weight: 600;
  color: var(--bleu);
}

.footer-title .baseline {
  display: block;
  font-size: 0.85rem;
  color: #667085;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.footer-nav a {
  color: var(--texte);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--orange);
  text-decoration: underline;
}

.footer-certifs {
  text-align: right;
  font-size: 0.9rem;
  color: #555;
}

.footer-qualiopi img {
  max-width: 250px;
  height: auto;
  margin-top: 0.2rem;
  background: #fff; /* important pour respecter la charte */
  padding: 0.3rem;
}

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #888;
}

/*********** RESPONSIVE *************/
/* HEADER */
@media (max-width: 768px) {
  .burger { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    z-index: 999;
  }
  .nav.ouvert {
    display: block;
  }
  .nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .nav a {
    font-size: 1.1rem;
    display: block;
    padding: 0.3rem 0;
  }
  .qui-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}

/* PRESENTATION */
@media (max-width: 768px) {
  .hero {
    align-items: flex-start;   /* pousse le contenu vers le haut */
    padding-top: 8rem;         /* espace sous le header fixe */
  }
  .hero-content {
    max-width: 100%;
  }
  .hero h1 {
    font-size: 2rem;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.3); /* ombre plus forte pour lisibilité */
  }
  .hero h2 {
    font-size: 1.4rem;
  }
}

@media (max-height: 740px) {
  .hero {
    align-items: flex-start;
    padding-top: 6rem;
    min-height: auto;
  }
  .hero h1 {
    text-shadow: 2px 2px 3px rgba(0,0,0,0.3);
  }
}


/* OFFRES */
/* Écrans larges (desktop) : 3 colonnes */
@media (min-width: 1200px) {
  .offres-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Écrans moyens (14 pouces, petits laptops) : 2 colonnes */
@media (max-width: 1199px) and (min-width: 768px) {
  .offres-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablettes en paysage : 2 colonnes */
@media (max-width: 1024px) and (min-width: 768px) and (orientation: landscape) {
  .offres-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablettes en portrait et smartphones : 1 colonne */
@media (max-width: 767px) {
  .offres-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card-front {
    min-height: auto;
    padding: 1.5rem;
  }
  
  .offre-bottom {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
  
  .card-back {
    padding: 1.5rem;
  }
}

/* Smartphones en paysage : 1 colonne */
@media (max-width: 767px) and (orientation: landscape) {
  .offres-grid {
    grid-template-columns: 1fr;
  }
}

/* TEMOIGNAGES */
@media (max-width: 768px) {
  .carousel {
    padding: 0 1rem;
  }
  
  .testimonial-content p {
    font-size: 1.2rem;
  }
  
  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}
/* CONTACT */
@media (max-width: 768px) {
  .form-group {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-direct {
    margin-bottom: 2rem;
    padding: 1.2rem;
  }
  
  .contact-form {
    padding: 2rem;
    margin: 0 1rem;
  }
}
/* Très petits écrans */
@media (max-width: 414px) {
  .contact-form {
    padding: 1.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 1.5rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.8rem 1rem;   /* réduit le padding interne */
    font-size: 0.95rem;
  }
}
/* FOOTER */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .footer-certifs {
    justify-content: center;
    text-align: center;
  }

  .footer-nav {
    align-items: center;
    text-align: center;
  }
}

