.photo-import-page{width:min(1120px,calc(100% - 2rem));margin:2rem auto 5rem;color:#f5ead7}.photo-import-heading{margin-bottom:1.6rem}.photo-import-back{display:inline-block;margin-bottom:1.6rem;color:#f3bc35;text-decoration:none}.photo-import-card,.photo-import-result{background:#24221d;border:1px solid #494029;border-radius:22px;padding:clamp(1.1rem,3vw,2rem);box-shadow:0 14px 38px #0003}.photo-import-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.photo-import-toolbar strong{font-size:1.15rem}.photo-import-toolbar p{margin:.45rem 0 0;color:#c5b9a1}.photo-import-credit{padding:.8rem 1rem;border:1px solid #725c29;border-radius:12px;color:#f8cb66;font-weight:700;white-space:nowrap}.photo-import-drop{border:2px dashed #77602f;border-radius:16px;min-height:175px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.7rem;padding:1.3rem;text-align:center;cursor:pointer;background:#2b2922;transition:border-color .2s,background .2s}.photo-import-drop:hover,.photo-import-drop.dragging{border-color:#efb92d;background:#352f1f}.photo-import-drop span{color:#b8ac96}.photo-import-camera{font-size:2rem}.photo-import-drop input{position:absolute;width:1px;height:1px;opacity:0}.photo-import-thumbnails{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1rem}.photo-import-thumb{display:flex;align-items:center;gap:.75rem;background:#36332b;border-radius:12px;padding:.4rem .8rem;color:#e9d5ab}.photo-import-thumb img{width:70px;height:68px;object-fit:cover;border-radius:8px}.photo-import-actions,.photo-import-result-actions{display:flex;align-items:center;flex-wrap:wrap;gap:1rem;margin-top:1.5rem}.photo-import-actions>span{color:#c8bda6;font-size:.85rem}.photo-import-primary,.photo-import-secondary{font:inherit;font-weight:700;border-radius:12px;cursor:pointer;padding:.85rem 1.2rem}.photo-import-primary{background:#f1b82b;color:#251d10;border:1px solid #f1b82b}.photo-import-primary:disabled{opacity:.5;cursor:not-allowed}.photo-import-secondary{background:transparent;color:#ffcf6e;border:1px solid #8c6e35}.photo-import-error{padding:1rem;background:#5b2927;color:#fff0df;border-radius:10px;margin:1rem 0 0}.photo-import-result{margin-top:1.8rem;scroll-margin-top:8rem}.photo-import-result-heading{display:flex;align-items:center;justify-content:space-between;color:#ffc849;font-size:.75rem;font-weight:800;letter-spacing:.08em}.photo-import-result-heading strong{color:#dfd1b2;font-size:.72rem}.photo-import-result h2{font-family:Georgia,serif;font-size:clamp(1.65rem,3vw,2.6rem);line-height:1.15;margin:1.2rem 0 .5rem}.photo-import-result>p{color:#cabeab}.photo-import-facts{display:flex;gap:.6rem;flex-wrap:wrap;margin:1.25rem 0}.photo-import-facts span{border:1px solid #4d422f;background:#302c23;padding:.5rem .8rem;border-radius:30px;font-size:.84rem}.photo-import-recipe-columns{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1.6rem 0}.photo-import-recipe-section{min-width:0;border:1px solid #4c422e;border-radius:18px;padding:1.25rem;background:#201f1b}.photo-import-recipe-section .cm-ingredient-display{margin-top:1.5rem}.photo-import-step{display:flex;gap:.85rem;margin:1rem 0;align-items:flex-start;line-height:1.55}.photo-import-step p{margin:0}.photo-import-step-number{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border:1px solid #8c712e;background:#383020;border-radius:50%;color:#f5c949;font-weight:700}.photo-import-warning{padding:.8rem 1rem;background:#393020;border-radius:12px;border:1px solid #685128;color:#f2d5a3!important}.photo-import-saving-note{font-size:.84rem}.photo-import-result[hidden],.photo-import-error[hidden]{display:none!important}
@media(max-width:700px){.photo-import-page{width:min(100% - 1.25rem,1120px)}.photo-import-toolbar{align-items:flex-start;flex-direction:column}.photo-import-credit{white-space:normal}.photo-import-recipe-columns{grid-template-columns:1fr}.photo-import-result-actions>*{width:100%}}

.photo-import-drop{cursor:default}.photo-import-choices{display:flex;justify-content:center;flex-wrap:wrap;gap:.7rem;margin:.3rem 0}.photo-import-choices label{cursor:pointer;display:inline-flex;align-items:center}.photo-import-hidden-file{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}.photo-import-drop small{color:#c1b29b}.photo-import-remove{background:#524025;color:#f5d48b;border:1px solid #997032;border-radius:8px;cursor:pointer;font-size:1.2rem;min-width:32px;min-height:32px}.photo-import-choices .photo-import-secondary:hover{border-color:#f0bb3d;background:#42331e}

.photo-import-privacy{font-size:.79rem;color:#c7b99e;margin:.8rem 0 .2rem}

/* Option facultative et photographie choisie par l'IA. */
.photo-import-enhance{margin-top:1.15rem;padding:1rem 1.15rem;border:1px solid #685637;background:#302c23;border-radius:14px;display:flex;justify-content:space-between;gap:1rem;align-items:center}
.photo-import-enhance[hidden],.photo-import-illustration[hidden]{display:none!important}
.photo-import-enhance label{display:flex;gap:.75rem;align-items:flex-start;cursor:pointer}
.photo-import-enhance input{accent-color:#eebd39;width:19px;height:19px;margin-top:.18rem}
.photo-import-enhance label span{display:flex;flex-direction:column;gap:.3rem}
.photo-import-enhance small{font-size:.84rem;color:#c3b69d}
#photo-import-enhance-price{font-weight:800;color:#f7c44b;white-space:nowrap}
.photo-import-regional{margin:.65rem 0 0 1.3rem;padding:.8rem 1rem;border-left:3px solid #c89b36;background:#28251f;border-radius:0 12px 12px 0}
.photo-import-regional[hidden],#photo-import-confirm-regional-row[hidden]{display:none!important}
.photo-import-regional label{display:flex;align-items:flex-start;gap:.75rem;cursor:pointer}
.photo-import-regional input{accent-color:#eebd39;width:18px;height:18px;margin-top:.2rem;flex-shrink:0}
.photo-import-regional label span{display:flex;flex-direction:column;gap:.35rem}
.photo-import-regional strong{color:#f6edd9;font-size:.92rem}
.photo-import-regional strong em{font-style:normal;color:#f4c34f;font-size:.8rem}
.photo-import-regional small{color:#c3b69d;font-size:.83rem;line-height:1.5}
.photo-import-price-summary{color:#e4cf9e;font-weight:700;margin:1rem .2rem .3rem}
.photo-import-illustration{margin:1.35rem 0 1rem}
.photo-import-illustration img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px;border:1px solid #655331}
.photo-import-illustration figcaption{color:#bfb198;font-size:.8rem;margin-top:.35rem}
@media(max-width:600px){.photo-import-enhance{align-items:flex-start;flex-direction:column}}

/* Retour d'activité pendant un appel IA : animation indéterminée, jamais de faux pourcentage. */
.photo-import-processing{display:flex;align-items:center;gap:1.2rem;margin-top:1.25rem;padding:1.25rem 1.4rem;border:1px solid #977333;border-radius:16px;background:linear-gradient(115deg,#302b20,#27251f);box-shadow:0 0 0 1px #342b1c inset}
.photo-import-processing[hidden]{display:none!important}
.photo-import-processing-symbol{position:relative;width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center}
.photo-import-processing-spinner{width:46px;height:46px;display:block;border:3px solid #69542d;border-top-color:#f4bf3b;border-right-color:#f4bf3b;border-radius:50%;animation:cm-photo-spin 1.15s linear infinite}
.photo-import-processing-stars{position:absolute;font-size:1.2rem;color:#ffcf58;animation:cm-photo-glow 1.8s ease-in-out infinite}
.photo-import-processing-info{min-width:0;flex:1}
.photo-import-processing-info strong{display:block;font-size:1.1rem;line-height:1.4;color:#fff0d0}
.photo-import-processing-info p{margin:.3rem 0 .75rem;color:#d9c9aa;font-size:.91rem;line-height:1.55}
.photo-import-processing-info small{display:block;margin-top:.5rem;color:#b9aa90;font-size:.8rem}
.photo-import-processing-indicator{height:5px;border-radius:20px;background:#4b4130;overflow:hidden;position:relative}
.photo-import-processing-indicator span{display:block;position:absolute;top:0;bottom:0;width:35%;border-radius:20px;background:linear-gradient(90deg,#ad8126,#ffca43,#ad8126);animation:cm-photo-progress 2.1s ease-in-out infinite}
.photo-import-card[aria-busy="true"] .photo-import-drop{opacity:.65}
@keyframes cm-photo-spin{to{transform:rotate(360deg)}}
@keyframes cm-photo-glow{50%{opacity:.45;transform:scale(.75)}}
@keyframes cm-photo-progress{0%{left:-35%}100%{left:100%}}
@media(max-width:520px){.photo-import-processing{padding:1rem;gap:.9rem}.photo-import-processing-symbol{width:42px;height:42px;flex-basis:42px}.photo-import-processing-spinner{width:38px;height:38px}.photo-import-processing-info strong{font-size:1rem}}
@media(prefers-reduced-motion:reduce){.photo-import-processing-spinner,.photo-import-processing-stars,.photo-import-processing-indicator span{animation:none}.photo-import-processing-indicator span{left:0;width:100%}}


/* Vitrine publique de l'import photo : aucun formulaire ni appel IA hors administration. */
.photo-import-teaser{width:min(1140px,calc(100% - 2rem));margin:2.1rem auto 5rem;padding:clamp(1.1rem,3.3vw,2.7rem);border-radius:24px;border:1px solid #524329;background:radial-gradient(ellipse at 84% 9%,#3a3020 0%,#24221d 54%,#1d1c19 100%);color:#f7e9d2;box-shadow:0 24px 60px #0004}
.photo-import-teaser-intro{max-width:850px}
.photo-import-teaser-kicker{display:inline-flex;gap:.5rem;align-items:center;color:#f5c34f;letter-spacing:.11em;font-weight:800;font-size:.76rem}
.photo-import-teaser-kicker>span{font-size:1.3rem}
.photo-import-teaser h1{font-family:Georgia,serif;font-size:clamp(2rem,4.7vw,3.7rem);line-height:1.12;letter-spacing:-.035em;margin:.8rem 0 1rem}
.photo-import-teaser h1 em{font-style:normal;color:#f4c352}
.photo-import-teaser-lead{font-size:clamp(.99rem,1.4vw,1.12rem);line-height:1.7;color:#d8c9ae;max-width:755px}
.photo-import-teaser-status{display:flex;gap:.8rem;align-items:flex-start;padding:1rem 1.2rem;margin:1.6rem 0;border-radius:14px;border:1px solid #95712e;background:#3c311d;color:#f5dc9e;max-width:790px}
.photo-import-teaser-status>span{font-size:1.6rem;line-height:1;color:#ffca56}
.photo-import-teaser-status strong,.photo-import-teaser-status div span{display:block}
.photo-import-teaser-status strong{font-size:1rem;margin-bottom:.26rem}
.photo-import-teaser-status div span{font-size:.88rem;line-height:1.6;color:#ead6a5}
.photo-import-teaser-demo{display:grid;grid-template-columns:minmax(0,.84fr) 54px minmax(0,1.2fr);align-items:center;gap:1.15rem;margin:2.2rem 0 .6rem}
.photo-import-teaser-example{min-width:0;margin:0;position:relative;border-radius:18px;border:1px solid #5c4a2d;background:#1b1a18;padding:.6rem;box-shadow:0 12px 32px #0005}
.photo-import-teaser-example img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px}
.photo-import-teaser-source img{object-fit:contain;background:linear-gradient(120deg,#201d18,#4c3b25)}
.photo-import-teaser-example figcaption{display:flex;align-items:center;gap:.6rem;color:#f3dcab;font-size:.87rem;font-weight:700;padding:.8rem .3rem .25rem}
.photo-import-teaser-example figcaption span{color:#fbc84e;font-weight:900}
.photo-import-teaser-arrow{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#eeb72f;color:#2b200d;font-size:1.75rem;font-weight:900}
.photo-import-teaser-disclaimer{color:#a99f8c;font-size:.78rem;text-align:right;margin:.35rem 0 1.9rem}
.photo-import-teaser-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.photo-import-teaser-benefits>div{border:1px solid #4d422c;background:#28261f;border-radius:16px;padding:1.3rem}
.photo-import-teaser-benefits>div>span{font-size:1.6rem;display:block;margin-bottom:.6rem}
.photo-import-teaser-benefits strong{display:block;color:#fff2d6;font-size:1rem}
.photo-import-teaser-benefits p{color:#c7b8a1;line-height:1.55;font-size:.9rem;margin:.5rem 0 0}
.photo-import-teaser-footer{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:1.7rem;border-top:1px solid #4e432e;padding-top:1.4rem;color:#d4c4a4}
.photo-import-teaser-footer a{display:inline-flex;border-radius:10px;padding:.75rem 1.2rem;border:1px solid #8f6d2d;color:#f7ca61;text-decoration:none;font-weight:700}
.photo-import-teaser-footer a:hover{background:#3e3421;border-color:#edba3f}
@media(max-width:800px){.photo-import-teaser-demo{grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr);gap:.65rem}.photo-import-teaser-arrow{width:38px;height:38px;font-size:1.35rem}.photo-import-teaser-benefits{gap:.65rem}.photo-import-teaser-benefits>div{padding:1rem}}
@media(max-width:630px){.photo-import-teaser{width:calc(100% - 1.25rem)}.photo-import-teaser-demo{display:flex;flex-direction:column;gap:.9rem}.photo-import-teaser-example{width:100%}.photo-import-teaser-arrow{transform:rotate(90deg)}.photo-import-teaser-benefits{grid-template-columns:1fr}.photo-import-teaser-disclaimer{text-align:left}.photo-import-teaser-footer{align-items:flex-start;flex-direction:column}}


/* Confirmation de crédits : modale HTML native, cohérente avec le thème Carnet Miam. */
.photo-import-confirm{box-sizing:border-box;width:min(510px,calc(100vw - 2rem));max-width:none;max-height:min(92vh,760px);overflow-y:auto;margin:auto;padding:0;border:1px solid #947239;border-radius:22px;background:#25231e;color:#f5ebd9;box-shadow:0 24px 90px #000b}
.photo-import-confirm:not([open]),.photo-import-confirm-enhance[hidden],#photo-import-confirm-enhance-row[hidden]{display:none!important}
.photo-import-confirm::backdrop{background:rgba(11,10,8,.78);backdrop-filter:blur(3px)}
.photo-import-confirm-inner{padding:clamp(1.2rem,3vw,2rem)}
.photo-import-confirm-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;color:#2e220d;background:#f2bf3e;font-size:1.6rem;margin-bottom:1rem}
.photo-import-confirm-kicker{margin:0 0 .6rem;color:#f6c34a;letter-spacing:.1em;font-size:.72rem;font-weight:800}
.photo-import-confirm h2{font-family:Georgia,serif;color:#fff1d8;line-height:1.2;font-size:clamp(1.55rem,4vw,2rem);margin:0 0 .65rem}
.photo-import-confirm-description{margin:0 0 1.3rem;line-height:1.55;color:#d4c5ae}
.photo-import-confirm-breakdown{background:#302c24;border:1px solid #53432a;padding:1rem 1.1rem;border-radius:14px}
.photo-import-confirm-line,.photo-import-confirm-total,.photo-import-confirm-balance{display:flex;align-items:baseline;justify-content:space-between;gap:1rem}
.photo-import-confirm-line{padding:.35rem 0;color:#e0d4c0;font-size:.91rem}
.photo-import-confirm-line strong{color:#fff3d9;white-space:nowrap}
.photo-import-confirm-total{border-top:1px solid #695532;margin-top:.7rem;padding-top:.9rem;font-weight:800}
.photo-import-confirm-total strong{font-size:1.35rem;color:#f6c34a;white-space:nowrap}
.photo-import-confirm-balance{margin:1rem .1rem;color:#d8c8aa;font-size:.9rem}
.photo-import-confirm-balance strong{color:#fff3d9;white-space:nowrap}
.photo-import-confirm-note{color:#c9b895;font-size:.82rem;line-height:1.6;margin:1rem 0 1.2rem}
.photo-import-confirm-actions{display:flex;justify-content:flex-end;gap:.7rem;flex-wrap:wrap}
.photo-import-confirm button:focus-visible{outline:3px solid #f5cc64;outline-offset:3px}
@media(max-width:480px){.photo-import-confirm-actions{flex-direction:column-reverse}.photo-import-confirm-actions button{width:100%}.photo-import-confirm-total strong{font-size:1.1rem}}
@media(prefers-reduced-motion:reduce){.photo-import-confirm::backdrop{backdrop-filter:none}}
