/*
Theme Name: DTAaM
Theme URI: https://dtaam.com
Author: DTAaM
Description: Thème du site conseil DTAaM (charte marine / jaune, police Inter). Versionné dans le dépôt helmux/dtaam-site.
Version: 1.0.12
Requires at least: 6.6
Requires PHP: 8.0
License: Propriétaire — tous droits réservés DTAAM
Text Domain: dtaam
*/

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:where(section[id], [id].wp-block-group) { scroll-margin-top: 24px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #1E3A8A; outline-offset: 2px; }

/* ---------- En-tête ---------- */
.dtaam-header { border-bottom: 1px solid #E9EDF2; }
.dtaam-header .dtaam-logo img { height: 52px; width: auto; display: block; }
.dtaam-header .wp-block-navigation a { color: #0F2746; font-weight: 600; text-decoration: none; }
.dtaam-header .wp-block-navigation a:hover { color: #1E3A8A; text-decoration: underline; text-underline-offset: 4px; }
.dtaam-header .wp-block-navigation__responsive-container.is-menu-open { background: #FFFFFF; }
.dtaam-btn-accent .wp-block-button__link,
a.dtaam-btn-accent { background: #F4B400 !important; color: #0F2746 !important; font-weight: 700; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.dtaam-btn-accent .wp-block-button__link:hover,
a.dtaam-btn-accent:hover { background: #F0B400 !important; filter: brightness(0.96); }

/* ---------- Pied de page ---------- */
.dtaam-footer { border-top: 1px solid #E9EDF2; }
.dtaam-footer .dtaam-logo img { height: 56px; width: auto; display: block; }
.dtaam-footer a { color: #1E3A8A; }

/* ---------- Pages intérieures ---------- */
.dtaam-page-header { background: #0F2746; color: #FFFFFF; }
.dtaam-page-header h1 { color: #FFFFFF; }
/* Les anciennes pages légales et Services portent leur propre titre : on garde celui du modèle. */
.legal-page > h2:first-child,
.privacy-page > h2:first-child,
.services-section > h2.services-title { display: none; }
.legal-page h3, .privacy-page h3 { margin-top: 2em; color: #0F2746; }

/* Ancienne page Services (en attendant sa refonte) */
.services-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.services-section .service-card { background: #E9EDF2; border-radius: 16px; padding: 24px; }
.services-section .service-card h3 { margin: 0 0 6px; font-size: 19px; color: #0F2746; }
.services-section .service-card p { margin: 0; color: #334155; }
.services-section .service-icon { display: none; }

/* ---------- Formulaire Contact Form 7 ---------- */
.wpcf7 form { display: grid; gap: 4px; }
.wpcf7 label { display: block; font-weight: 600; color: #0F2746; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
  width: 100%; box-sizing: border-box; margin-top: 6px; padding: 12px 14px; font: inherit; color: #0F172A;
  border: 1.5px solid #CBD5E1; border-radius: 8px; background: #FFFFFF;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: #1E3A8A; outline: 3px solid rgba(30, 58, 138, 0.18); }
.wpcf7 textarea { min-height: 160px; }
.wpcf7 input[type="submit"] {
  background: #0F2746; color: #FFFFFF; border: 0; border-radius: 8px; padding: 14px 24px; font: inherit; font-weight: 700;
  min-height: 48px; cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: #1E3A8A; }
.wpcf7 .dtaam-rgpd { color: #475569; margin-top: 8px; }
.wpcf7-not-valid-tip { color: #B42318; font-size: 14px; }
.wpcf7 form .wpcf7-response-output { border-radius: 8px; margin: 12px 0 0; }

/* ---------- Pages de contenu (expertises) ---------- */
.wp-block-post-content h2 { font-size: 28px; margin-top: 2.2em; margin-bottom: 0.5em; }
.wp-block-post-content h3 { font-size: 19px; margin-top: 1.6em; margin-bottom: 0.3em; }
.wp-block-post-content li { margin-bottom: 0.35em; }
.wp-block-post-content > .has-large-font-size:first-child { color: #334155; }
