/* =========================================================
   DENTALINE — CSS FINAL STABLE & NETTOYÉ
   ========================================================= */

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

/* ---------- BASE ---------- */
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f6f6f7;
  color: #2f2f2f;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- VARIABLES ---------- */
:root {
  --rose-bg: #fde1ea;
  --rose: #d36b8a;
  --rose-dark: #b94f6f;
  --surface: #ffffff;
  --muted: #666;
  --line: rgba(0,0,0,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.06);
  --shadow-soft: 0 6px 18px rgba(0,0,0,0.05);
  --radius: 18px;
  --container: 1240px;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.site-content {
  padding-top: 32px;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  background: var(--rose-bg);
}

.site-header .header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* LOGO */
.site-header .logo {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.site-header .logo img {
  height: 180px;
  width: auto;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  align-items: center;
  margin-left: 40px;
}

.main-nav a {
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid var(--rose);
  color: var(--rose);
  font-size: 16px;
  font-weight: 600;
  background: transparent;
  transition: all 0.25s ease;
}

.main-nav a:hover {
  background: var(--rose);
  color: #ffffff;
}

.main-nav a.btn {
  background: var(--rose);
  color: #ffffff;
  font-weight: 700;
}

.main-nav a.btn:hover {
  background: var(--rose-dark);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  max-width: 1040px;
  margin: 40px auto 48px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero .hero-text {
  position: absolute;
  left: 32px;
  bottom: 10px;
  max-width: 55%;
}

.hero .hero-text h1 {
  font-size: 26px;
  margin: 0 0 3px;
  line-height: 1.2;
}

.hero .hero-text p {
  font-size: 15px;
  margin: 0;
  line-height: 1.3;
  opacity: 0.9;
}

/* =========================================================
   CARDS
   ========================================================= */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   IMAGE DANS CARD (RÈGLE UNIQUE ET SAINE)
   ========================================================= */

.img-card {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 14px;
  margin-bottom: 14px;
  object-fit: cover;
}

/* =========================================================
   GRILLES
   ========================================================= */

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

/* =========================================================
   TARIFS
   ========================================================= */

.tarif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0 48px;
}

.tarif-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.tarif-card h3 {
  color: var(--rose);
  font-size: 20px;
  margin-bottom: 6px;
}

.tarif-card p {
  font-size: 15px;
  color: #555;
  margin-bottom: 12px;
}

.tarif-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--rose-dark);
}

/* =========================================================
   FORMULAIRE
   ========================================================= */

.contact-form {
  max-width: 760px;
  margin: 0 auto 64px;
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.contact-form label {
  display: block;
  margin-top: 18px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #444;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  border-radius: 10px;
  border: 1.5px solid #cfcfd4;
  background: #ffffff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* =====================================================
   FOOTER
===================================================== */
footer{
  background: var(--rose-bg);
  text-align: center;
  padding: 38px;
  font-size: 14px;
  color: #777;
}
/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
  .site-header .header-inner {
    flex-direction: column;
    gap: 24px;
    padding: 48px 24px;
  }

  .main-nav {
    position: static;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 0;
  }

  .site-header .logo img {
    height: 90px;
  }

  .hero {
    margin: 28px 16px 36px;
  }

  .hero .hero-text {
    left: 20px;
    bottom: 18px;
    max-width: 80%;
  }
}

/* =========================================================
   COMMANDE 3D — OK / ERROR
   ========================================================= */

.card-center {
  max-width: 700px;
  margin: 40px auto;
  text-align: center;
}

.success-title { color: #2f7a4f; }
.error-title   { color: #a94442; }

.success-link,
.error-link {
  display: inline-block;
  margin-top: 30px;
  color: #b04a64;
}
/* =========================================================
   BOUTON COMMANDE 3D — ULTRA CIBLÉ index-3d.php
   ========================================================= */

/* cible uniquement le bouton APRES la card cd3 */
.cd3-container + div a[href="/commande-3d/commande-3d.php"] {
  display: inline-block;
  padding: 14px 34px;
  background-color: #d96b87;
  color: #ffffff !important;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(217, 107, 135, 0.25);
}

/* hover doux */
.cd3-container + div a[href="/commande-3d/commande-3d.php"]:hover {
  background-color: #c55f78;
}
/* =========================================================
   FORMULAIRE COMMANDE 3D — FOCUS ROSE (ULTRA CIBLÉ)
   ========================================================= */
form[action="/commande-3d/commande-3d-send.php"] input,
form[action="/commande-3d/commande-3d-send.php"] select,
form[action="/commande-3d/commande-3d-send.php"] textarea {
  border: 1px solid rgba(176, 74, 100, 0.25);
  outline: none;
}

form[action="/commande-3d/commande-3d-send.php"] input:focus,
form[action="/commande-3d/commande-3d-send.php"] select:focus,
form[action="/commande-3d/commande-3d-send.php"] textarea:focus {
  border-color: #b04a64;
  box-shadow: 0 0 0 3px rgba(176, 74, 100, 0.18);
  outline: none;
}

form[action="/commande-3d/commande-3d-send.php"] input:focus-visible,
form[action="/commande-3d/commande-3d-send.php"] select:focus-visible,
form[action="/commande-3d/commande-3d-send.php"] textarea:focus-visible {
  outline: none;
}
/* =========================================================
   FORMULAIRE COMMANDE 3D — TAILLE & LISIBILITÉ (BLINDÉ)
   ========================================================= */

/* champs texte / email / tel */
form[action="/commande-3d/commande-3d-send.php"] input[type="text"],
form[action="/commande-3d/commande-3d-send.php"] input[type="email"],
form[action="/commande-3d/commande-3d-send.php"] input[type="tel"],
form[action="/commande-3d/commande-3d-send.php"] textarea,
form[action="/commande-3d/commande-3d-send.php"] select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 10px;
  line-height: 1.4;
}

/* textarea un peu plus haute */
form[action="/commande-3d/commande-3d-send.php"] textarea {
  min-height: 120px;
  resize: vertical;
}

/* labels plus visibles */
form[action="/commande-3d/commande-3d-send.php"] label {
  display: block;
  margin-bottom: 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: #444;
}

/* espace entre champs */
form[action="/commande-3d/commande-3d-send.php"] .contact-form > * {
  margin-bottom: 18px;
}
/* =========================================================
   FORMULAIRE COMMANDE 3D — HARMONISATION FINALE
   ========================================================= */

/* 1️⃣ Labels plus lisibles */
form[action="/commande-3d/commande-3d-send.php"] label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  color: #333;
}

/* 2️⃣ Champs & selects déjà grands, on homogénéise */
form[action="/commande-3d/commande-3d-send.php"] input[type="text"],
form[action="/commande-3d/commande-3d-send.php"] input[type="email"],
form[action="/commande-3d/commande-3d-send.php"] input[type="tel"],
form[action="/commande-3d/commande-3d-send.php"] select,
form[action="/commande-3d/commande-3d-send.php"] textarea {
  font-size: 16px;
}

/* 3️⃣ Champ fichier (Browse…) plus visible */
form[action="/commande-3d/commande-3d-send.php"] input[type="file"] {
  font-size: 15px;
  padding: 10px 12px;
}

/* 4️⃣ Bouton "Envoyer la commande" — taille pro */
form[action="/commande-3d/commande-3d-send.php"] button[type="submit"] {
  margin-top: 20px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  background-color: #d96b87;
  color: #fff;
  border: none;
  cursor: pointer;
}

form[action="/commande-3d/commande-3d-send.php"] button[type="submit"]:hover {
  background-color: #c55f78;
}
/* ===== FOOTER — CORRECTIONS MINIMALES DEMANDÉES ===== */

/* 1️⃣ Supprimer uniquement le titre "Liens rapides" */
.footer-links h4,
.footer-links .footer-title {
  display: none !important;
}

/* 2️⃣ Agrandir légèrement l'adresse */
.footer-address,
.footer-left address,
footer address {
  font-size: 15.5px;
  line-height: 1.7;
}
/* =========================================================
   FOOTER — SUPPRIMER LIENS RAPIDES (SANS :has)
   ========================================================= */

/* Masque TOUS les liens du footer */
.site-footer a {
  display: none;
}

/* Réautorise l’email */
.site-footer a[href^="mailto:"] {
  display: inline;
}

/* Réautorise WhatsApp */
.site-footer a[href^="https://wa.me"],
.site-footer a[href^="http://wa.me"] {
  display: inline;
}
/* ===== FOOTER — ESPACEMENT DES LIGNES ===== */
.site-footer {
  line-height: 1.7;   /* au lieu de ~1.7 / 1.8 */
}

.site-footer p,
.site-footer div,
.site-footer span,
.site-footer strong {
  margin-bottom: 6px;
}
/* ===== FORMULAIRE CONTACT — UN PEU PLUS VISIBLE ===== */

.contact-form input,
.contact-form textarea,
.contact-form select {
  min-height: 60px;     /* ↑ un cran de plus */
  padding: 16px 18px;   /* ↑ plus confortable */
  font-size: 17px;      /* ↑ plus lisible */
  border-radius: 12px;
}

.contact-form textarea {
  min-height: 170px;    /* ↑ zone message plus visible */
}

.contact-form label {
  font-size: 16.5px;    /* ↑ labels plus présents */
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-form button {
  padding: 16px 34px;   /* ↑ bouton plus “présent” */
  font-size: 17px;
  font-weight: 600;
}
/* =========================================================
   BOUTON CONTACT — MÊME STYLE QUE COMMANDE 3D
   ========================================================= */

.contact-form .btn-submit {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 34px;
  background-color: #d96b87;   /* même rose que commande 3D */
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(217, 107, 135, 0.25);
}

.contact-form .btn-submit:hover {
  background-color: #c55f78;
}
/* =========================
   LIENS D’ACTION – DENTALINE
   FR / NL / EN
   (PAS DE BOUTONS HTML)
   ========================= */

/* Liens d’action principaux */
a.btn,
a.btn-submit,
a.success-link,
a.error-link,
.card-center a {
  background-color: #b04a64; /* rose Dentaline */
  color: #ffffff !important;
  border: none;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.25s ease, transform 0.15s ease;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(176, 74, 100, 0.25);
}

/* Hover */
a.btn:hover,
a.btn-submit:hover,
a.success-link:hover,
a.error-link:hover,
.card-center a:hover {
  background-color: #933b53;
  transform: translateY(-1px);
}

/* Active */
a.btn:active,
a.btn-submit:active {
  transform: translateY(0);
}
/* =========================
   LANG SWITCH (FR / NL / EN)
   ========================= */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
}

.lang-switch .lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;

  border-radius: 999px;
  border: 1px solid #d47a8c;
  color: #b04a64;
  background: transparent;

  text-decoration: none;
  white-space: nowrap;
}

.lang-switch .lang-btn:hover {
  background: #f4c6cf;
}

.lang-switch .lang-btn.active {
  background: #b04a64;
  color: #fff;
}
/* Forcer une vraie séparation entre Commande 3D et langues */
.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Les langues sont poussées à droite */
.lang-switch {
  margin-left: 40px;        /* décalage fort */
  display: flex;
  gap: 6px;
  flex-shrink: 0;           /* empêche l’écrasement */
}

/* Priorité visuelle au bouton Commande 3D */
.main-nav .btn {
  flex-shrink: 0;           /* ne se casse jamais sur 2 lignes */
}
