/* ===== 1. POLICE LATO ===== */
@font-face { font-family: "Lato"; src: url("../fonts/Lato-Light.ttf");   font-weight: 300; }
@font-face { font-family: "Lato"; src: url("../fonts/Lato-Regular.ttf"); font-weight: 400; }
@font-face { font-family: "Lato"; src: url("../fonts/Lato-Bold.ttf");    font-weight: 700; }

/* ===== 2. COULEURS DE LA CHARTE ===== */
:root {
  --noir:      #0D0D16;  /* Noir charbon */
  --gris:      #5A5E6B;  /* Gris ardoise */
  --perle:     #F2F2F2;  /* Gris perle */
  --sarcelle:  #006666;  /* Sarcelle foncé */
  --turquoise: #01C0A6;  /* Turquoise vert */
  --ivoire:    #FBFFE6;  /* Blanc ivoire */
}

/* ===== 3. BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Lato", sans-serif; color: var(--noir); line-height: 1.6; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 2rem; color: var(--sarcelle); margin-bottom: 1.5rem; }
.container { width: 90%; max-width: 1100px; margin: 0 auto; }

/* ===== 4. BOUTONS ===== */
.btn {
  display: inline-block; padding: .9rem 2rem; border-radius: 50px;
  background: var(--turquoise); color: white; font-weight: 700;
  transition: background .3s;
}
.btn:hover { background: var(--sarcelle); }
.btn--small { padding: .5rem 1.2rem; }
.btn--light { background: white; color: var(--sarcelle); }

/* ===== 5. EN-TÊTE ===== */
.header { position: sticky; top: 0; background: white; box-shadow: 0 2px 8px rgba(0,0,0,.08); z-index: 10; }
.header__inner { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.header__logo img { height: 75px; }
.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a:not(.btn):hover { color: var(--turquoise); }

/* ===== 6. ACCUEIL ===== */
.hero { background: var(--sarcelle); color: white; text-align: center; padding: 7rem 0; }
.hero h1 { font-size: 3rem; letter-spacing: .3rem; text-transform: uppercase; }
.hero__slogan { font-size: 1.3rem; font-weight: 300; margin: 1rem 0 2.5rem; }

/* ===== 7. SECTIONS ===== */
.section { padding: 5rem 0; }
.section--light { background: var(--perle); }
.section--dark { background: var(--noir); color: var(--ivoire); }
.section--dark h2 { color: var(--turquoise); }
.section--gradient { background: linear-gradient(90deg, var(--ivoire), var(--turquoise), var(--sarcelle)); text-align: center; }
.section--gradient h2 { color: var(--noir); }
.section--gradient p { margin-bottom: 2rem; }

/* ===== 8. CARTES ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,.06); }
.card img { height: 60px; margin-bottom: 1rem; }
.card h3 { color: var(--sarcelle); margin-bottom: .5rem; }
.card cite { display: block; margin-top: 1rem; color: var(--gris); font-size: .9rem; }

/* ===== 8b. CONTACT ===== */
.contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; text-align: left; margin-top: 2rem; }
.contact__infos { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.contact__item { background: rgba(255,255,255,.85); padding: .8rem 1.2rem; border-radius: 8px; font-weight: 700; }
.form { background: white; padding: 2rem; border-radius: 12px; display: flex; flex-direction: column; gap: 1rem; box-shadow: 0 4px 15px rgba(0,0,0,.1); }
.form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 700; font-size: .9rem; color: var(--gris); }
.form input, .form textarea { font: inherit; font-weight: 400; padding: .7rem; border: 1px solid #ccc; border-radius: 6px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--turquoise); border-color: transparent; }
.form .form__rgpd { flex-direction: row; align-items: flex-start; font-weight: 400; }
.form__rgpd input { margin-top: .3rem; }
.form__rgpd a { color: var(--sarcelle); text-decoration: underline; }
.form .btn { border: none; cursor: pointer; font: inherit; font-weight: 700; align-self: flex-start; }
.form__message { font-weight: 700; color: var(--sarcelle); }

/* ===== 8c. AVIS ===== */
/* 1 avis en vedette sur toute la largeur, puis une grille 2 x 2 */
.cards--avis { grid-template-columns: repeat(2, 1fr); }
.avis--vedette { grid-column: 1 / -1; }          /* occupe toutes les colonnes */
.avis--vedette p { font-size: 1.05rem; }
@media (max-width: 768px) { .cards--avis { grid-template-columns: 1fr; } }
.avis { position: relative; font-style: italic; color: var(--noir); border-top: 4px solid var(--turquoise); }
.avis p { font-size: .95rem; }
.avis { display: flex; flex-direction: column; }
.avis cite { font-style: normal; font-weight: 700; color: var(--sarcelle); margin-top: auto; padding-top: 1rem; }  /* margin-top: auto = poussée tout en bas */
.avis cite span { font-weight: 400; color: var(--gris); }

/* ===== 8d. POURQUOI / QUI / PRESTATIONS ===== */
.intro { font-size: 1.1rem; max-width: 800px; }
.cards--4 { grid-template-columns: repeat(2, 1fr); }   /* 4 cartes = 2 x 2, jamais 3 + 1 */
.qui { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: start; }
.qui__photo { width: 100%; border-radius: 12px; border: 4px solid var(--turquoise); }
.qui p + p { margin-top: 1rem; }
.qui__titre { color: var(--turquoise); margin: 2rem 0 1rem; }
/* Frise horizontale : de la plus ancienne (à gauche) à la plus récente (à droite) */
.frise { list-style: none; display: flex; flex-direction: row-reverse; gap: 1rem; border-top: 3px solid var(--turquoise); margin-top: 1.5rem; }
.frise li { position: relative; flex: 1; padding-top: 1.4rem; font-size: .85rem; }
.frise li::before { content: ""; position: absolute; left: 0; top: -.55rem; width: 13px; height: 13px; border-radius: 50%; background: var(--turquoise); border: 3px solid var(--noir); }
.frise__date { display: block; color: var(--turquoise); font-weight: 700; font-size: .9rem; }
.frise em { display: block; color: #aab; font-size: .8rem; }
.presta__titre { color: var(--sarcelle); font-size: 1.4rem; margin: 2.5rem 0 1rem; }
.packs { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pack { border-top: 4px solid var(--turquoise); }
.pack h3 { letter-spacing: .1rem; }
.pack__accroche { font-style: italic; color: var(--gris); min-height: 3.2em; }
.pack__inclus { font-weight: 700; color: var(--turquoise); font-size: .9rem; margin-top: 1rem; }
.pack ul { padding-left: 1.1rem; margin-top: .5rem; font-size: .9rem; }
.pack li { margin-bottom: .4rem; }
.pack li::marker { color: var(--turquoise); }
.contact__petit { font-weight: 400; font-size: .85rem; }
.focus ul { padding-left: 1.2rem; }
.focus li { margin-bottom: .5rem; }
.focus li::marker { color: var(--turquoise); }
.focus__note { margin-top: 1rem; font-style: italic; color: var(--gris); }
.presta__devis { margin-top: 2rem; text-align: center; font-size: 1.1rem; }

/* ===== 8e. TITRE, REMISES, PAGES LÉGALES ===== */
.hero__titre { text-transform: uppercase; letter-spacing: .25rem; font-size: .95rem; color: var(--turquoise); font-weight: 700; margin-top: .8rem; }
.remises { margin-top: 2.5rem; background: var(--ivoire); border: 2px dashed var(--turquoise); border-radius: 12px; padding: 2rem; }
.remises h3 { color: var(--sarcelle); margin-bottom: 1rem; }
.remises__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.remises strong { color: var(--sarcelle); font-size: 1.15rem; }
.legal { max-width: 850px; }
.legal h1 { color: var(--sarcelle); font-size: 2rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.2rem; margin: 2rem 0 .8rem; }
.legal h3 { font-size: 1rem; margin: 1.2rem 0 .5rem; color: var(--sarcelle); }
.legal p, .legal li { margin-bottom: .6rem; }
.legal ol, .legal ul { padding-left: 1.5rem; }
.legal a { color: var(--sarcelle); text-decoration: underline; }

/* ===== 9. FAQ ===== */
.faq__cat { color: var(--turquoise); text-transform: uppercase; letter-spacing: .1rem; font-size: 1rem; margin: 2rem 0 1rem; }
details { background: white; padding: 1rem 1.5rem; border-radius: 8px; margin-bottom: 1rem; }
summary { font-weight: 700; cursor: pointer; }
details p { margin-top: .8rem; color: var(--gris); }

/* ===== 10. PIED DE PAGE ===== */
.footer { background: var(--noir); color: var(--perle); padding: 3rem 0; text-align: center; font-size: .9rem; }
.footer__logo { height: 110px; margin-bottom: 1.5rem; }
.footer nav { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.footer a:hover { color: var(--turquoise); }

/* ===== 11. BOUTON BURGER (caché sur ordinateur) ===== */
.burger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.burger span { display: block; width: 28px; height: 3px; background: var(--sarcelle); margin: 5px 0; border-radius: 2px; transition: .3s; }
/* Animation : les 3 barres se transforment en croix */
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== 12. MOBILE ===== */
@media (max-width: 768px) {
  .burger { display: block; }
  .nav {
    display: none;                       /* menu caché par défaut */
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 1rem;
    background: white; padding: 1.5rem;
    box-shadow: 0 8px 15px rgba(0,0,0,.1);
  }
  .nav.is-open { display: flex; }        /* affiché quand le JS ajoute is-open */
  .hero h1 { font-size: 2rem; }
  .contact { grid-template-columns: 1fr; }
  .qui, .cards--4, .remises__grid { grid-template-columns: 1fr; }
  .header__logo img { height: 55px; }
  /* Sur téléphone, la frise redevient verticale (la plus récente en haut) */
  .frise { flex-direction: column; gap: 0; border-top: none; border-left: 3px solid var(--turquoise); padding-left: 1.5rem; }
  .frise li { padding-top: 0; margin-bottom: 1.2rem; }
  .frise li::before { left: -2.05rem; top: .35rem; }
  .qui__photo { max-width: 250px; }
  h2 { font-size: 1.6rem; }
}
