/*
Theme Name: Bulle d'O
Author: Bulle d'O
Description: Thème vitrine sur mesure pour Bulle d'O, entreprise de nettoyage de copropriétés et de remise en état de logements à Strasbourg et dans l'Eurométropole.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bulledo
*/

/* ==========================================================================
   1. Variables et base
   ========================================================================== */

:root {
  /* Palette issue du logotype Bulle d'O */
  --bd-cyan: #67c6ee;          /* cyan du wordmark et des bulles */
  --bd-cyan-clair: #bfe5f7;    /* reflets des bulles */
  --bd-cyan-pale: #e3f2fb;     /* halo très clair */
  --bd-bleu: #006d9c;          /* bleu profond du cercle */
  --bd-bleu-fonce: #0a5377;    /* déclinaison plus sombre pour le texte sur fond clair */
  --bd-navy: #16242f;          /* navy du visuel intérieur, pied de page */
  --bd-encre: #243845;         /* texte courant */
  --bd-encre-douce: #4a6373;   /* texte secondaire */

  /* Fonds : jamais de blanc pur, toujours teinté bleu */
  --bd-fond: #eef6fa;
  --bd-fond-2: #e0eef7;
  --bd-carte: #f6fafd;
  --bd-bord: #cfe3ef;

  --bd-rayon: 14px;
  --bd-ombre: 0 6px 24px rgba(0, 109, 156, 0.10);
  --bd-ombre-haute: 0 10px 32px rgba(0, 109, 156, 0.16);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--bd-encre);
  background-color: var(--bd-fond);
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--bd-bleu-fonce);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1em; }

a { color: var(--bd-bleu); }
a:hover, a:focus { color: var(--bd-bleu-fonce); }

ul { padding-left: 1.3em; }

.conteneur {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section { padding: 64px 0; }
.section--teintee { background: var(--bd-fond-2); }

.section-intro {
  max-width: 720px;
  margin-bottom: 36px;
}
.section-intro p { color: var(--bd-encre-douce); }

.surtitre {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bd-bleu);
  background: var(--bd-cyan-pale);
  border: 1px solid var(--bd-cyan-clair);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bd-bleu);
  color: #f6fafd;
  padding: 10px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #f6fafd; }

/* ==========================================================================
   2. En-tête et navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 250, 253, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bd-bord);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}

.logo-lien {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-lien img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.logo-texte {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--bd-bleu);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-principale .menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-principale a {
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: var(--bd-encre);
}
.nav-principale a:hover,
.nav-principale a:focus,
.nav-principale .current-menu-item > a,
.nav-principale .current_page_item > a {
  background: var(--bd-cyan-pale);
  color: var(--bd-bleu-fonce);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 42px;
  padding: 0 11px;
  background: var(--bd-carte);
  border: 1px solid var(--bd-bord);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--bd-bleu);
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-principale {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bd-carte);
    border-bottom: 1px solid var(--bd-bord);
    box-shadow: var(--bd-ombre);
  }
  .nav-principale.est-ouverte { display: block; }
  .nav-principale .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 4%;
  }
  .nav-principale a { border-radius: 10px; padding: 13px 16px; }
}

/* ==========================================================================
   3. Boutons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid var(--bd-bleu);
  background: var(--bd-bleu);
  color: #f2f9fd;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover, .btn:focus {
  background: var(--bd-bleu-fonce);
  border-color: var(--bd-bleu-fonce);
  color: #f2f9fd;
  transform: translateY(-1px);
}

.btn--secondaire {
  background: transparent;
  color: var(--bd-bleu);
}
.btn--secondaire:hover, .btn--secondaire:focus {
  background: var(--bd-cyan-pale);
  color: var(--bd-bleu-fonce);
}

.groupe-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

/* ==========================================================================
   4. Héros
   ========================================================================== */

.heros {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bd-fond-2) 0%, var(--bd-cyan-pale) 55%, var(--bd-fond) 100%);
  padding: 72px 0 84px;
}

.heros-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.heros h1 { margin-bottom: 0.5em; }
.heros .accroche {
  font-size: 1.13rem;
  color: var(--bd-encre-douce);
  max-width: 56ch;
}

.heros-visuel { text-align: center; }
.heros-visuel img {
  width: min(340px, 80%);
  filter: drop-shadow(0 14px 30px rgba(0, 109, 156, 0.25));
}

/* Bulles décoratives */
.bulle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--bd-cyan-clair);
  background: radial-gradient(circle at 30% 28%, rgba(246, 250, 253, 0.9), rgba(103, 198, 238, 0.18));
  pointer-events: none;
  z-index: 1;
}
.bulle--1 { width: 120px; height: 120px; top: 8%;  right: 6%; }
.bulle--2 { width: 56px;  height: 56px;  top: 30%; right: 18%; }
.bulle--3 { width: 84px;  height: 84px;  bottom: 10%; left: 3%; }
.bulle--4 { width: 38px;  height: 38px;  bottom: 26%; left: 11%; }

.heros--page { padding: 56px 0; }
.heros--page .accroche { margin-bottom: 0; }

@media (max-width: 880px) {
  .heros-grille { grid-template-columns: 1fr; gap: 28px; }
  .heros-visuel { order: -1; }
  .heros-visuel img { width: min(220px, 60%); }
}

/* ==========================================================================
   5. Cartes et grilles
   ========================================================================== */

.grille {
  display: grid;
  gap: 24px;
}
.grille--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .grille--3, .grille--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grille--2, .grille--3, .grille--4 { grid-template-columns: 1fr; }
}

.carte {
  background: var(--bd-carte);
  border: 1px solid var(--bd-bord);
  border-radius: var(--bd-rayon);
  padding: 28px;
  box-shadow: var(--bd-ombre);
}
.carte h3 { margin-top: 0; }
.carte ul { margin: 0; padding-left: 1.15em; }
.carte li { margin-bottom: 0.45em; }
.carte p:last-child, .carte ul:last-child { margin-bottom: 0; }

.carte--mise-en-avant {
  border: 2px solid var(--bd-cyan);
  box-shadow: var(--bd-ombre-haute);
}

.carte-icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, var(--bd-cyan-pale), var(--bd-cyan-clair));
  border: 1.5px solid var(--bd-cyan);
  font-size: 1.5rem;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bd-bleu-fonce);
  background: var(--bd-cyan-clair);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 10px;
}

/* Étapes « comment ça marche » */
.etape { position: relative; padding-top: 8px; }
.etape-numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bd-bleu);
  color: #f2f9fd;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

/* Liste de communes (zone d'intervention) */
.liste-communes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.liste-communes li {
  background: var(--bd-carte);
  border: 1px solid var(--bd-bord);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bd-bleu-fonce);
}

/* Listes à puces avec gouttes */
.liste-coche {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.liste-coche li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.55em;
}
.liste-coche li::before {
  content: "\1F4A7"; /* goutte d'eau */
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.95rem;
}

/* Bande d'appel à l'action */
.bande-cta {
  background: linear-gradient(135deg, var(--bd-bleu) 0%, #0e85bb 70%, var(--bd-cyan) 130%);
  border-radius: var(--bd-rayon);
  padding: 44px 40px;
  color: #eaf5fb;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--bd-ombre-haute);
}
.bande-cta h2 { color: #f6fbfe; margin: 0 0 6px; }
.bande-cta p { margin: 0; color: #d4ebf7; }
.bande-cta .btn {
  background: #f6fafd;
  border-color: #f6fafd;
  color: var(--bd-bleu-fonce);
}
.bande-cta .btn:hover, .bande-cta .btn:focus {
  background: var(--bd-cyan-clair);
  border-color: var(--bd-cyan-clair);
}

/* ==========================================================================
   6. FAQ
   ========================================================================== */

.faq-item {
  background: var(--bd-carte);
  border: 1px solid var(--bd-bord);
  border-radius: var(--bd-rayon);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 24px;
  font-weight: 700;
  color: var(--bd-bleu-fonce);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bd-cyan);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-reponse { padding: 0 24px 18px; color: var(--bd-encre-douce); }
.faq-item .faq-reponse p:last-child { margin-bottom: 0; }

/* ==========================================================================
   7. Formulaires
   ========================================================================== */

.formulaire-bloc {
  background: var(--bd-carte);
  border: 1px solid var(--bd-bord);
  border-radius: var(--bd-rayon);
  padding: 34px;
  box-shadow: var(--bd-ombre);
}

.champ { margin-bottom: 18px; }
.champ label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--bd-bleu-fonce);
}
.champ .optionnel {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--bd-encre-douce);
}

.champ input[type="text"],
.champ input[type="email"],
.champ input[type="tel"],
.champ select,
.champ textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--bd-encre);
  background: var(--bd-fond);
  border: 1.5px solid var(--bd-bord);
  border-radius: 10px;
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: 3px solid var(--bd-cyan-clair);
  border-color: var(--bd-cyan);
}

.champ-cache {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mention-formulaire {
  font-size: 0.85rem;
  color: var(--bd-encre-douce);
  margin-top: 14px;
}

.notice {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 22px;
  font-weight: 600;
}
.notice--succes {
  background: #e2f4e8;
  border: 1.5px solid #74c08e;
  color: #1d5c34;
}
.notice--erreur {
  background: #fdeaea;
  border: 1.5px solid #dd8f8f;
  color: #8c2f2f;
}

/* ==========================================================================
   8. Page contact : coordonnées et carte
   ========================================================================== */

.contact-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grille { grid-template-columns: 1fr; }
}

.coordonnees p { margin-bottom: 0.7em; }
.coordonnees strong { color: var(--bd-bleu-fonce); }

.carte-maps {
  position: relative;
  border-radius: var(--bd-rayon);
  overflow: hidden;
  border: 1px solid var(--bd-bord);
  box-shadow: var(--bd-ombre);
  aspect-ratio: 16 / 8;
  min-height: 320px;
  background: linear-gradient(150deg, var(--bd-fond-2), var(--bd-cyan-pale));
}
.carte-maps iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.carte-maps-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
}
.carte-maps-placeholder p {
  max-width: 52ch;
  margin: 0;
  font-size: 0.9rem;
  color: var(--bd-encre-douce);
}

/* ==========================================================================
   9. Pages légales et contenu standard
   ========================================================================== */

.contenu-page {
  max-width: 800px;
}
.contenu-page h2 {
  margin-top: 1.6em;
  padding-bottom: 0.25em;
  border-bottom: 2px solid var(--bd-cyan-clair);
}
.contenu-page mark {
  background: #fdf0d4;
  border-radius: 4px;
  padding: 1px 6px;
}

/* ==========================================================================
   10. Pied de page
   ========================================================================== */

.site-footer {
  background: var(--bd-navy);
  color: #c4d9e6;
  padding: 56px 0 28px;
  margin-top: 64px;
}
.footer-grille {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(196, 217, 230, 0.18);
}
@media (max-width: 880px) {
  .footer-grille { grid-template-columns: 1fr; }
}
.site-footer h3 {
  color: #eaf5fb;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9em;
}
.site-footer a { color: var(--bd-cyan); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: var(--bd-cyan-clair); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55em; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-logo img { width: 48px; height: 48px; object-fit: contain; }
.footer-logo span { font-size: 1.2rem; font-weight: 800; color: #eaf5fb; }
.footer-bas {
  padding-top: 22px;
  font-size: 0.85rem;
  color: #8fa9ba;
  text-align: center;
}

/* ==========================================================================
   11. Bandeau RGPD
   ========================================================================== */

.bandeau-rgpd {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 150;
  max-width: 400px;
  width: calc(100% - 36px);
  background: var(--bd-carte);
  border: 1.5px solid var(--bd-cyan);
  border-radius: var(--bd-rayon);
  box-shadow: var(--bd-ombre-haute);
  padding: 20px 22px;
}
.bandeau-rgpd p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--bd-encre);
}
.bandeau-rgpd .btn {
  padding: 9px 22px;
  font-size: 0.92rem;
}
.bandeau-rgpd[hidden] { display: none; }

/* ==========================================================================
   12. Divers
   ========================================================================== */

.texte-centre { text-align: center; }

::selection {
  background: var(--bd-cyan-clair);
  color: var(--bd-navy);
}
