/* Comptes Clairs — site vitrine */

:root {
  --fond: #faf6ee;
  --fond-alt: #f1e9d8;
  --carte: #fffdf8;
  --encre: #1c2a24;
  --encre-secondaire: #5b6a61;
  --accent: #d9603b;
  --accent-fonce: #b34a2a;
  --marque: #1f4d3f;
  --marque-claire: #2c6b56;
  --bordure: #e6dcc3;
  --police-titre: "Fraunces", Georgia, serif;
  --police-texte: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 76px;
}

section[id] {
  scroll-margin-top: 76px;
}

body {
  margin: 0;
  font-family: var(--police-texte);
  color: var(--encre);
  background: var(--fond);
  line-height: 1.55;
}

.conteneur {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.conteneur-etroit {
  max-width: 640px;
}

h1, h2, h3 {
  font-family: var(--police-titre);
  color: var(--marque);
  line-height: 1.2;
  font-weight: 500;
}

h2 {
  font-size: 2.1rem;
  margin: 0 0 8px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-fonce);
  margin: 0 0 10px 0;
}

/* En-tête */

.site-header {
  border-bottom: 1px solid var(--bordure);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.entete-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--marque);
}

.logo span {
  color: var(--accent);
}

.site-header nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--encre);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.site-header nav a:hover {
  color: var(--accent-fonce);
}

.bouton-nav {
  background: var(--marque);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 100px;
}

.bouton-nav:hover {
  color: #fff !important;
  background: var(--marque-claire);
}

.site-header nav a.lien-actif {
  color: var(--accent-fonce);
  font-weight: 600;
}

/* Page exemple de rapport */

.exemple-entete {
  padding-bottom: 40px;
}

.exemple-titre {
  font-size: 2.3rem;
  margin: 12px 0 20px 0;
}

.exemple-soustitre {
  color: var(--encre-secondaire);
  font-size: 1.05rem;
}

.exemple-cadre-section {
  padding-top: 48px;
  padding-bottom: 56px;
}

.exemple-cadre {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: 14px;
  box-shadow: 0 24px 48px -28px rgba(28, 42, 36, 0.32);
  overflow: hidden;
}

.exemple-cadre iframe {
  display: block;
  width: 100%;
  height: 80vh;
  min-height: 560px;
  border: none;
}

.exemple-legende {
  text-align: center;
  color: var(--encre-secondaire);
  font-size: 0.85rem;
  margin: 16px 0 0 0;
}

/* Hero */

.hero {
  padding: 88px 0 96px 0;
  overflow: hidden;
}

.hero-grille {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--marque-claire);
  margin: 0 0 18px 0;
}

.hero h1 {
  font-size: 3rem;
  margin: 0 0 24px 0;
}

.hero-souligne {
  position: relative;
  white-space: nowrap;
}

.hero-souligne::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 2px;
  height: 0.32em;
  background: var(--accent);
  opacity: 0.35;
  z-index: -1;
  border-radius: 2px;
}

.hero-soustitre {
  max-width: 480px;
  color: var(--encre-secondaire);
  font-size: 1.12rem;
  margin: 0 0 32px 0;
}

ul.erreur-liste {
  padding-left: 1.2em;
}

ul.erreur-liste li {
  margin-bottom: 8px;
}

.liste-fichiers {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.liste-fichiers li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  background: var(--fond);
  border: 1px solid var(--bordure);
  border-radius: 8px;
  font-size: 0.9rem;
}

.liste-fichiers li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liste-fichiers li button {
  flex-shrink: 0;
  border: none;
  background: none;
  color: var(--encre-secondaire);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.liste-fichiers li button:hover {
  color: var(--accent);
}

.bouton-principal {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 15px 30px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.bouton-principal:hover {
  background: var(--accent-fonce);
  transform: translateY(-1px);
}

.hero-visuel {
  position: relative;
  min-height: 320px;
}

.forme-organique {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 380px;
  height: 380px;
  transform: translate(-50%, -50%);
  background: var(--fond-alt);
  border-radius: 42% 58% 63% 37% / 45% 39% 61% 55%;
  z-index: -1;
}

.carte-flottante {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 18px 38px -18px rgba(28, 42, 36, 0.28);
  display: flex;
  align-items: center;
  gap: 14px;
  position: absolute;
}

.carte-flottante strong {
  display: block;
  font-size: 0.95rem;
}

.carte-flottante span {
  display: block;
  font-size: 0.82rem;
  color: var(--encre-secondaire);
}

.carte-1 {
  top: 12px;
  left: 8%;
  width: 260px;
}

.carte-2 {
  bottom: 8px;
  right: 4%;
  width: 260px;
}

.pastille {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.pastille-ok {
  background: #e4f1ea;
  color: var(--marque);
}

/* Sections generiques */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--fond-alt);
}

.section h2 {
  max-width: 560px;
  margin-bottom: 40px;
}

/* Apparition au defilement */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Grilles */

.grille-trois {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.grille-deux {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.carte-simple {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: 14px;
  padding: 28px 24px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carte-simple:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px -22px rgba(28, 42, 36, 0.35);
}

.numero-fantome {
  display: block;
  font-family: var(--police-titre);
  font-size: 2.1rem;
  color: var(--bordure);
  margin-bottom: 4px;
}

.carte-simple h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.carte-simple p, .grille-deux p {
  color: var(--encre-secondaire);
  margin-bottom: 0;
}

.grille-deux h3 {
  font-size: 1.2rem;
}

/* Etapes */

.etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.etape-numero {
  width: 44px;
  height: 44px;
  line-height: 44px;
  background: var(--marque);
  color: #fff;
  border-radius: 50%;
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 16px;
}

.etape h3 {
  font-size: 1.1rem;
}

.etape p {
  color: var(--encre-secondaire);
}

/* Tarif */

#tarif {
  text-align: center;
  padding-top: 88px;
}

.tarif-montant {
  font-family: var(--police-titre);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--marque);
  margin: 0 0 20px 0;
}

.tarif-montant span {
  font-family: var(--police-texte);
  font-size: 1rem;
  font-weight: normal;
  color: var(--encre-secondaire);
}

/* Contact */

#contact {
  padding-top: 24px;
}

/* Formulaire */

.formulaire-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 24px;
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: 14px;
  padding: 32px;
}

.formulaire-contact label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 14px;
}

.formulaire-contact input,
.formulaire-contact textarea {
  padding: 11px 12px;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--fond);
}

.formulaire-contact input:focus,
.formulaire-contact textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.formulaire-contact button {
  margin-top: 22px;
  align-self: flex-start;
}

.offre-choix {
  margin-top: 14px;
  padding: 0;
  border: none;
}

.offre-choix legend {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0;
  margin-bottom: 8px;
}

.offre-choix label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  margin-top: 8px;
}

.formulaire-contact .offre-choix input[type="radio"] {
  width: auto;
  padding: 0;
  border: none;
  background: none;
}

/* Panneau d'attente (affiche pendant le traitement du formulaire cote serveur -
   verification/lecture des fichiers joints - pour eviter que la page ne semble figee) */

.panneau-attente {
  position: fixed;
  inset: 0;
  background: rgba(28, 42, 36, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

/* Sans cette regle, l'attribut HTML "hidden" (display: none, specificite equivalente a une
   classe) perd contre le display: flex ci-dessus - bug reel constate le 14/09/2026, panneau
   affiche en permanence des le chargement de la page. [hidden] combine a la classe a une
   specificite plus elevee, garantit que l'etat cache l'emporte. */
.panneau-attente[hidden] {
  display: none;
}

.panneau-attente-contenu {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: 16px;
  padding: 32px 36px;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.panneau-attente-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 18px;
  border: 4px solid var(--bordure);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: tourner 0.8s linear infinite;
}

@keyframes tourner {
  to {
    transform: rotate(360deg);
  }
}

.panneau-attente-contenu p {
  margin: 0;
}

.panneau-attente-detail {
  margin-top: 8px !important;
  font-size: 0.85rem;
  color: var(--encre-secondaire);
}

/* Pied de page */

.site-footer {
  border-top: 1px solid var(--bordure);
  padding: 28px 0;
  text-align: center;
  color: var(--encre-secondaire);
  font-size: 0.9rem;
}

.footer-societe {
  margin-top: 14px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--encre-secondaire);
}

.footer-societe a {
  color: var(--encre-secondaire);
}

/* Responsive */

@media (max-width: 820px) {
  .hero-grille {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-visuel {
    min-height: 220px;
  }

  .carte-1, .carte-2 {
    position: static;
    width: 100%;
    margin-bottom: 12px;
  }

  .forme-organique {
    display: none;
  }
}
