/* Camille's Bakery House — compléments au thème Flatsome Block Theme.
   Couleurs, polices et tailles de titres : theme.json. Ici, seulement ce que les attributs de blocs
   n'expriment pas (en-tête, menu mobile, photos, carte, formulaire). Maquettes : handoff/maquettes. */

:root {
  --cm-noir: #231F20;
  --cm-creme: #F8F6F1;
  --cm-bronze: #B79B72;
  --cm-bronze-texte: #7A6244;
  --cm-bronze-clair: #C9AE86;
  --cm-sable: #E9E4DA;
  --cm-filet: #DDD6C8;
  --cm-doux: #4F4A45;
  --cm-champ: #8A8478;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
p, h1, h2, h3 { text-wrap: pretty; }
.cm-anchor { display: block; position: relative; top: -100px; visibility: hidden; height: 0; }
:where(a, button, input, textarea, select):focus-visible { outline: 2px solid var(--cm-bronze-texte); outline-offset: 3px; }

/* ---------------------------------------------------------------- En-tête */
.cm-header .fs-block-header-main__logo { display: none !important; }
.cm-announce p { margin: 0; }
.cm-announce .fs-block-header-column:first-child { flex: 1 1 100%; justify-content: center; }
.cm-announce .fs-block-header-column:not(:first-child) { display: none; }
.cm-announce .fs-block-flex { width: 100%; }
.cm-logo { display: block; line-height: 0; }
.cm-logo img { height: 48px; width: auto; display: block; }
.cm-nav .fs-nav-item > a, .cm-nav .fs-nav-item > .fs-nav-item__link {
  padding-block: 14px; border: 0; border-bottom: 2px solid transparent; border-radius: 0 !important;
  color: var(--cm-noir); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 500; white-space: nowrap;
}
.cm-nav .fs-nav-item:hover > a,
.cm-nav .fs-nav-item.is-current > a, .cm-nav .fs-nav-item.current-menu-item > a,
.cm-nav a[aria-current="page"] { border-bottom-color: var(--cm-bronze-texte); color: var(--cm-noir); }
.cm-cta { white-space: nowrap; }
.cm-burger { width: 48px; height: 48px; color: var(--cm-noir); }

@media (min-width: 960px) {
  .cm-burger { display: none !important; }
}
@media (max-width: 959.98px) {
  .cm-desk { display: none !important; }
  .cm-mainbar { min-height: 72px !important; height: 72px !important; }
  .cm-logo img { height: 32px; }
  .cm-announce .fs-block-flex { gap: 2px 16px !important; font-size: 11px !important; letter-spacing: 0.08em !important; padding-block: 8px; }
  .cm-announce .fs-button { font-size: 11px !important; letter-spacing: 0.08em !important; }
}
@media (min-width: 960px) and (max-width: 1099.98px) {
  .cm-nav .fs-nav { gap: 20px !important; --fs-nav-gap: 20px; }
}

/* Menu mobile plein écran, fond noir */
.fs-block-nav-overlay__popover .fs-block-popover__close { color: var(--cm-creme) !important; width: 48px; height: 48px; }
.cm-mnav-logo { display: block; width: 96px; height: 96px; margin: 8px auto 24px; }
.cm-macc { width: 100%; padding: 8px 0; }
.cm-macc > li.is-root { border-bottom: 1px solid #3D3839; min-height: 64px; align-items: center; }
.cm-macc > li.is-root > .fs-nav-link {
  font-family: 'Cormorant Garamond', Garamond, Georgia, serif; font-size: 34px; font-weight: 500; line-height: 1.2;
  color: var(--cm-creme) !important; padding-block: 12px; background: transparent !important;
}
.cm-mnav-contact { margin-top: auto; width: 100%; padding: 28px 0 8px; }
.cm-mnav-contact p { margin: 0; }

/* ---------------------------------------------------------------- Composants */
.cm-photo, .cm-photo img { width: 100%; }
/* Flatsome pose --fs-height sans l'appliquer à la figure : hauteur fixe des maquettes, image en cover. */
.cm-photo { height: var(--fs-height, auto); }
.cm-photo .fs-block-image__media { height: 100%; }
.cm-photo img { height: 100%; object-fit: cover; display: block; }
.cm-photo--noir, .cm-photo--noir img { background: #000; }
.cm-ph { width: 100%; box-sizing: border-box; }
.cm-ph p { margin: 0; }
.cm-tlink { white-space: nowrap; }

/* Hero : pastille du logo qui déborde sous la photo */
.cm-hero-media { position: relative; display: flex; justify-content: center; }
.cm-hero-photo { max-width: 500px; margin-inline: auto; }
.cm-hero-badge { position: absolute; left: 24px; bottom: -36px; width: 140px; height: 140px; }
@media (max-width: 959.98px) {
  .cm-hero-badge { left: 16px; bottom: -32px; width: 108px; height: 108px; }
  .cm-hero-photo { max-width: none; }
}
.cm-band p { margin: 0; }

/* Cartes « À la carte » */
.cm-card { color: inherit; text-decoration: none; }
.cm-card h3, .cm-card p { margin: 0; }
.cm-card .cm-photo img, .cm-card .cm-ph { transition: opacity .3s ease; }
.cm-card:hover .cm-photo img { opacity: .9; }
.cm-card:hover h3 { color: var(--cm-bronze-texte); }

/* Notre maison */
.cm-pillar { margin: 0; border-top: 1px solid var(--cm-bronze-clair); padding-top: 14px; }

/* Horaires */
.cm-hours { width: 100%; }
.cm-hours p { margin: 0; }
.cm-hrow { width: 100%; }

/* Plan d'accès (SVG) et liens vers la fiche Google */
.fs-block-html:has(> .cm-plan) { width: 100%; align-self: stretch; }
.cm-plan { margin: 0; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.cm-plan__img { display: block; line-height: 0; background: #ECEFE0; }
.cm-plan__svg { width: 100%; height: auto; aspect-ratio: 12 / 7; display: block; }
.cm-plan__img:hover .cm-plan__svg { opacity: .94; }
.cm-plan__links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.cm-plan__links a {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--cm-bronze-texte);
  padding: 12px 0; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}
.cm-plan__links a::after { content: " →"; white-space: pre; }
.cm-plan__links a:hover { color: var(--cm-noir); }

/* La carte : filet entre les rubriques, prix sur une ligne */
.cm-carte-sec { border-top: 1px solid var(--cm-filet); }
.cm-item { width: 100%; }
.cm-item p { margin: 0; }
.cm-price { white-space: nowrap; }

/* Formulaire de contact */
.cm-form label, .cm-form .fs-form-field__label {
  font-weight: 500; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cm-noir);
}
.cm-form input[type="text"], .cm-form input[type="email"], .cm-form textarea {
  border: 1px solid var(--cm-champ) !important; border-radius: 2px !important; background: #fff !important;
  font-family: 'Jost', sans-serif; font-size: 16px; color: var(--cm-noir); min-height: 50px; padding: 0 16px !important;
}
.cm-form textarea { min-height: 150px; padding: 12px 16px !important; resize: vertical; }

/* Pied de page */
.cm-footer p { margin: 0; }
.cm-flogo { width: 150px; height: 150px; display: block; }
@media (max-width: 959.98px) { .cm-flogo { width: 120px; height: 120px; } }

/* WPML ajoute un sélecteur de langue en pied de page : le site est en français seulement. */
.wpml-ls-statics-footer { display: none !important; }
